Classes | |
| struct | pid_notify |
| struct | icd_network_module |
Defines | |
| #define | ICD_NW_API_PREFIX "libicd_network_" |
| #define | ICD_NW_INIT "icd_nw_init" |
Typedefs | |
| typedef gboolean(*) | icd_network_api_foreach_module_fn (struct icd_network_module *module, gpointer user_data) |
Functions | |
| static struct icd_network_module * | icd_network_api_find_module (gchar *module_name) |
| gboolean | icd_network_api_has_type (struct icd_network_module *module, const gchar *type) |
| icd_network_module * | icd_network_api_foreach_module (struct icd_context *icd_ctx, icd_network_api_foreach_module_fn foreach_fn, gpointer user_data) |
| static gboolean | icd_network_api_foreach_module_pid (struct icd_network_module *module, gpointer user_data) |
| gboolean | icd_network_api_notify_pid (struct icd_context *icd_ctx, const pid_t pid, const gint exit_value) |
| static void | icd_network_api_watch_pid (const pid_t pid, gpointer watch_cb_token) |
| static void | icd_network_api_close (enum icd_nw_status status, const gchar *err_str, const gchar *network_type, const guint network_attrs, const gchar *network_id) |
| static void | icd_network_api_renew (enum icd_nw_layer renew_layer, const gchar *network_type, const guint network_attrs, const gchar *network_id) |
| static void | icd_network_api_status_update (gchar *network_type, guint network_attrs, gchar *network_id) |
| static gboolean | icd_network_api_init_cb (const gchar *module_name, void *handle, gpointer init_function, gpointer data) |
| gboolean | icd_network_api_load_modules (struct icd_context *icd_ctx) |
| void | icd_network_api_unload_modules (struct icd_context *icd_ctx) |
Variables | |
| const gchar * | icd_iap_state_names [ICD_IAP_MAX_STATES] |
| #define ICD_NW_API_PREFIX "libicd_network_" |
prefix for the ICd network API modules
| #define ICD_NW_INIT "icd_nw_init" |
name of the ICd network API init function
| typedef gboolean(*) icd_network_api_foreach_module_fn(struct icd_network_module *module, gpointer user_data) |
Network api callback for going through every network module
| module | the network module | |
| user_data | user data passed to icd_network_api_foreach_module |
| static void icd_network_api_close | ( | enum icd_nw_status | status, | |
| const gchar * | err_str, | |||
| const gchar * | network_type, | |||
| const guint | network_attrs, | |||
| const gchar * | network_id | |||
| ) | [static] |
Function for closing down a connection by request of a network module
| status | reason for closing; ICD_NW_RESTART if the IAP needs to be restarted, success or error will both close the network connection | |
| err_str | NULL if the network was disconnected normally or any ICD_DBUS_ERROR_* from osso-ic-dbus.h on error | |
| network_type | the type of the IAP returned | |
| network_attrs | attributes, such as type of network_id, security, etc. | |
| network_id | IAP name or local id, e.g. SSID |
| static struct icd_network_module* icd_network_api_find_module | ( | gchar * | module_name | ) | [static] |
Find a network module by its name
| module_name | module name |
| struct icd_network_module * icd_network_api_foreach_module | ( | struct icd_context * | icd_ctx, | |
| icd_network_api_foreach_module_fn | foreach_fn, | |||
| gpointer | user_data | |||
| ) |
Iterate over all network modules
| icd_ctx | icd context | |
| foreach_fn | the function to call for each module | |
| user_data | user data to pass to the function |
| static gboolean icd_network_api_foreach_module_pid | ( | struct icd_network_module * | module, | |
| gpointer | user_data | |||
| ) | [static] |
Find the network module that is watching a child process exit
| module | the network module to examine | |
| user_data | the pid notify structure |
| gboolean icd_network_api_has_type | ( | struct icd_network_module * | module, | |
| const gchar * | type | |||
| ) |
Function for checking wheter a modules supports a given type
| module | the module | |
| type | the type to check for |
| static gboolean icd_network_api_init_cb | ( | const gchar * | module_name, | |
| void * | handle, | |||
| gpointer | init_function, | |||
| gpointer | data | |||
| ) | [static] |
Initialize the loaded module
| module_name | module filename without path | |
| handle | module handle; used for unloading | |
| init_function | module init function | |
| data | icd context |
| gboolean icd_network_api_load_modules | ( | struct icd_context * | icd_ctx | ) |
Load all network API modules
| icd_ctx | icd context |
| gboolean icd_network_api_notify_pid | ( | struct icd_context * | icd_ctx, | |
| const pid_t | pid, | |||
| const gint | exit_value | |||
| ) |
Notify a network module that its child process has exited
| icd_ctx | the context | |
| pid | the process id | |
| exit_value | exit value |
| static void icd_network_api_renew | ( | enum icd_nw_layer | renew_layer, | |
| const gchar * | network_type, | |||
| const guint | network_attrs, | |||
| const gchar * | network_id | |||
| ) | [static] |
Request a network module layer to be renewed
| renew_layer | the network module layer to renew | |
| network_type | network type | |
| network_attrs | network_attrs | |
| network_id | network_id |
| static void icd_network_api_status_update | ( | gchar * | network_type, | |
| guint | network_attrs, | |||
| gchar * | network_id | |||
| ) | [static] |
Status of the network has changed while the network has been connected
| network_type | the type of the IAP returned | |
| network_attrs | attributes, such as type of network_id, security, etc. | |
| network_id | IAP name or local id, e.g. SSID |
| void icd_network_api_unload_modules | ( | struct icd_context * | icd_ctx | ) |
Unload all network modules
| icd_ctx | icd context |
| static void icd_network_api_watch_pid | ( | const pid_t | pid, | |
| gpointer | watch_cb_token | |||
| ) | [static] |
Set ICd to watch a child pid
| pid | process id | |
| watch_cb_token | the watch callback token given on initialization |
| const gchar* icd_iap_state_names[ICD_IAP_MAX_STATES] |
names for the different states
1.5.1