#endif
#include <glib.h>
+#include <gio/gio.h>
+#include <glib-object.h>
+
+#include "neterror.h"
#define NETCONFIG_ADD_FOUND_AP_NOTI "add_found_ap_noti"
#define NETCONFIG_DEL_FOUND_AP_NOTI "del_found_ap_noti"
#define NETCONFIG_ADD_PORTAL_NOTI "add_portal_noti"
#define NETCONFIG_DEL_PORTAL_NOTI "del_portal_noti"
+struct wifi_authentication_data {
+ int auth_result;
+ int resp_length;
+ int authentication_key_length;
+ int cipher_length;
+ int integrity_length;
+ char *resp_data;
+ char *authentication_key;
+ char *cipher_data;
+ char *integrity_data;
+};
+
struct netconfig_headed_plugin_t {
void(*pop_device_picker) (void);
gboolean(*send_notification_to_net_popup) (const char *, const char *);
void(*pop_wifi_connected_poppup) (const char *);
};
+struct netconfig_telephony_plugin_t {
+ void(*get_telephony_network_type) (int *svctype, int *pstype);
+ gboolean(*wifi_get_sim_imsi) (void *wifi, GDBusMethodInvocation *context);
+ netconfig_error_e(*wifi_req_aka_auth) (GArray *rand_data, GArray *autn_data,
+ GDBusMethodInvocation *context, struct wifi_authentication_data **data);
+ gboolean(*wifi_req_sim_auth) (GArray *rand_data,
+ GDBusMethodInvocation *context, struct wifi_authentication_data **data);
+ gboolean(*tapi_check_sim_state) (void);
+ gboolean(*wifi_get_aka_authdata) (void *wifi,
+ GDBusMethodInvocation *context, struct wifi_authentication_data **data);
+ gboolean(*wifi_get_sim_authdata) (void *wifi,
+ GDBusMethodInvocation *context, struct wifi_authentication_data **data);
+};
+
typedef enum {
SYS_EVT_NETWORK_STATUS = 0,
SYS_EVT_WIFI_STATE = 1,
EVAL_WIFI_OFF = 27,
} sys_evt_t;
+void netconfig_complete_get_sim_imsi(void *wifi, GDBusMethodInvocation *context, char *imsi);
+void netconfig_complete_get_aka_auth(void *wifi, GDBusMethodInvocation *context, GArray *array);
+void netconfig_complete_get_sim_auth(void *wifi, GDBusMethodInvocation *context, GArray *array);
+void netconfig_wifi_power_on();
+
#ifdef __cplusplus
}
#endif