summaryrefslogtreecommitdiffstats
path: root/include/cne/cne.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cne/cne.h')
-rw-r--r--include/cne/cne.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/include/cne/cne.h b/include/cne/cne.h
index 0b94945..2b66be8 100644
--- a/include/cne/cne.h
+++ b/include/cne/cne.h
@@ -90,6 +90,8 @@
#define CNE_MAX_SSID_LEN 32
#define CNE_MAX_SCANLIST_SIZE 20
#define CNE_MAX_IPADDR_LEN 32
+#define CNE_SERVICE_DISABLED 0
+#define CNE_SERVICE_ENABLED 1
/*----------------------------------------------------------------------------
@@ -176,6 +178,14 @@ typedef enum // correspond to network State defined in NetworkInfo.java
} cne_network_state_enum_type;
+typedef enum
+{
+ CNE_IPROUTE2_ADD_DEFAULT = 0,
+ CNE_IPROUTE2_DELETE_DEFAULT,
+ CNE_IPROUTE2_DELETE_DEFAULT_FROM_MAIN,
+ CNE_IPROUTE2_CHANGE_DEFAULT_FROM_MAIN
+} cne_iproute2_cmd_enum_type;
+
/** Role Id Type. */
typedef int32_t cne_role_id_type;
/** Registration Id Type. */
@@ -451,6 +461,7 @@ typedef union {
} CneRatInfoType;
typedef struct {
+ int32_t type;
int32_t status;
int32_t rssi;
char *ssid;
@@ -486,6 +497,13 @@ typedef struct {
char *ipAddr;
} CneRatStatusType;
+typedef struct {
+ int32_t cmd;
+ char *ifName;
+ char *ipAddr;
+ char *gatewayAddr;
+} CneIpRoute2CmdType;
+
/*----------------------------------------------------------------------------
* Function Declarations and Documentation
* -------------------------------------------------------------------------*/
@@ -495,10 +513,10 @@ typedef struct {
This functions needs to be called only once at the power up.
@param None
@see None
- @return None
+*@return int to indicate if cne service enabled
*/
-void cne_svc_init();
+int cne_svc_init(void);