blob: 0810f1e9dc190c5173dc9a8505f9e65afdfba025 [file] [log] [blame]
#ifndef __NETMODE_SERVICE_H_
#define __NETMODE_SERVICE_H_
#include <unistd.h>
#include <assert.h>
#include <signal.h>
#include <libubox/blobmsg.h>
#include <libubus.h>
#include <uci.h>
#include <rilutil.h>
#include <ril.h>
#include <include/log.h>
#include <sys/prctl.h>
#include "account_management.h"
#include "version.h"
#include "ussd.h"
#define LOGCAT
#ifdef LOGCAT
#define LOG_OUT(format, args...) RDPRINTF(format, ##args)
#define LOG_OUT_D(format, args...) RDBGMSG(format, ##args)
#define LOG_OUT_E(format, args...) RERRMSG(format, ##args)
#else
#define LOG_OUT(format, args...) fprintf(stderr, "[%s@%s,%d] " format "\r\n", __func__, __FILE__, __LINE__, ## args);
#endif
#ifndef UNUSEDPARAM
#define UNUSEDPARAM(param) (void)param;
#endif
#define WAN_PACKAGE_NAME "wan"
#define NET_MODE_SECTION_DEVICE "net-mode"
#define BGSCAN_TIME_SECTION_DEVICE "bgscan-time"
#define MAX_AUTO_SELECT_TIMEOUT 1000*30
void init_util_wan_server(void);
#endif