Change file name
[platform/core/system/setup-adaptor.git] / include / sa_types.h
index e73a1d9..939e4b7 100644 (file)
 #define SA_CONFIG_NETWORKDATA_HTTPPROXYHOST                    "httpProxyHost"
 #define SA_CONFIG_NETWORKDATA_HTTPPROXYPORT                    "httpProxyPort"
 
+#define SA_MESSAGE_QID 0x00000001
+
+/**
+ * @brief  This enum contains docker interface command type
+ *
+ * The sa_msgq_cmd_type_e indicates what command is set
+ *
+ */
+typedef enum {
+       SA_FILE_CHANGE = 0x10,
+       SA_WIFI_CALLBACK = 0x11,
+} sa_msgq_cmd_type_e;
+
+/**
+ * @struct sa_msgq_buf_s
+ * @brief  This struct contains message queue information
+ *
+ * The sa_msgq_buf_s encapsulate the mtype, *event_data, cmd in the one data
+ *
+ */
+typedef struct {
+       long mtype;
+       char *event_data;
+       sa_msgq_cmd_type_e cmd;
+} sa_msgq_buf_s;
+
+
 /**
  * @brief  This enum contains setup-adaptor error information
  *
@@ -60,9 +87,9 @@ typedef enum {
  *
  */
 typedef enum {
-       SA_NETWORK_TYPE_WIFI = 0,       /**< wifi */
-       SA_NETWORK_TYPE_ETH,            /**< eth */
-       SA_NETWORK_TYPE_UNKNOWN,        /**< UNKNOWN  */
+       SA_NETWORK_TYPE_NONE = 0,               /**< none */
+       SA_NETWORK_TYPE_ETH,                    /**< eth */
+       SA_NETWORK_TYPE_WIFI,                   /**< wifi  */
 } sa_network_type_e;
 
 /**
@@ -72,7 +99,7 @@ typedef enum {
  *
  */
 typedef enum {
-       SA_NETWORK_STATE_DISCONNECTED = 0,              /**< Successful */
+       SA_NETWORK_STATE_DISCONNECTED = 0,              /**< Disconnected */
        SA_NETWORK_STATE_PROGRESSING,                   /**< Connecting/Association/Configuration */
        SA_NETWORK_STATE_CONNECTED,                             /**< connected */
        SA_NETWORK_STATE_UNKNOWN,                               /**< UNKNOWN  */
@@ -86,11 +113,11 @@ typedef enum {
  *
  */
 typedef struct {
-       char *ipAddress;
-       char *netmask;
-       char *defaultGateway;
-       char *primaryDnsServer;
-       char *secondaryDnsServer;
+       char ipAddress[255+1];
+       char netmask[255+1];
+       char defaultGateway[255+1];
+       char primaryDnsServer[255+1];
+       char secondaryDnsServer[255+1];
 } sa_network_static_s;
 
 /**
@@ -103,8 +130,8 @@ typedef struct {
 typedef struct {
        int enabled;
        int dhcpEnabled;
-       char *ssid;
-       char *password;
+       char ssid[255+1];
+       char password[255+1];
        sa_network_static_s *staticInfo;
 } sa_wifi_s;
 
@@ -131,7 +158,7 @@ typedef struct {
 typedef struct {
        sa_wifi_s *wifi;
        sa_eth_s *eth;
-       char *httpProxyHost;
+       char httpProxyHost[255+1];
        int httpProxyPort;
 } sa_network_s;
 
@@ -155,7 +182,7 @@ typedef struct {
  *
  */
 typedef struct {
-       char *deviceName;
+       char deviceName[255+1];
 } sa_systemdata_s;
 
 /**
@@ -166,8 +193,8 @@ typedef struct {
  *
  */
 typedef struct {
-       char *version;
-       sa_network_s *network;
+       char version[127+1];
+       sa_network_s *networkData;
        sa_systemdata_s *systemData;
 } sa_config_s;