Add notification privilege and log
[platform/core/connectivity/net-popup.git] / include / net-popup.h
1 /*
2 *  net-popup
3 *
4 * Copyright 2012  Samsung Electronics Co., Ltd
5 *
6 * Licensed under the Flora License, Version 1.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.tizenopensource.org/license
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20 #ifndef __DEF_NET_POPUP_H__
21 #define __DEF_NET_POPUP_H__
22
23 #include <dlog.h>
24 #include <Elementary.h>
25
26 #define PACKAGE         "net-popup"
27 #define ALERT_STR_LEN_MAX       1024
28
29 #define NET_POPUP       "NET_POPUP"
30 #define log_print(MID, format, args...) \
31         SLOG(LOG_INFO, MID, "\033[0m[%s:%d]\033[0m " format, __func__, __LINE__, ##args)
32
33 #define secure_log_print(tag, format, args...) SECURE_SLOG(LOG_DEBUG, \
34                         tag, "%s:%d "format, __func__, __LINE__, ##args)
35
36 #endif /* __DEF_NET_POPUP_H__ */