Classes | |
struct | test_module_struct |
Enumerations | |
enum | test_module_state { TEST_MODULE_IDLING, TEST_MODULE_SCANNING, TEST_MODULE_FAKING_ACTIVE } |
Functions | |
static gboolean | test_report_scan (gpointer data) |
static gboolean | test_ip_up_callback (gpointer data) |
static void | test_ip_up (const gchar *network_type, const guint network_attrs, const gchar *network_id, const gchar *interface_name, icd_nw_ip_up_cb_fn ip_up_cb, const gpointer ip_up_cb_token, gpointer *private) |
static gboolean | test_link_post_up_callback (gpointer data) |
static void | test_link_post_up (const gchar *network_type, const guint network_attrs, const gchar *network_id, const gchar *interface_name, icd_nw_link_post_up_cb_fn link_post_up_cb, const gpointer link_post_up_cb_token, gpointer *private) |
static gboolean | test_link_up_callback (gpointer data) |
static void | test_link_up (const gchar *network_type, const guint network_attrs, const gchar *network_id, icd_nw_link_up_cb_fn link_up_cb, const gpointer link_up_cb_token, gpointer *private) |
gboolean | icd_nw_init (struct icd_nw_api *network_api, icd_nw_watch_pid_fn watch_cb, gpointer watch_cb_token, icd_nw_close_fn close_cb, gpointer close_cb_token) |
Variables | |
static gchar * | test_type [2] |
static gchar | test_name [4] |
static gchar | test_id [4] |
enum test_module_state |
gboolean icd_nw_init | ( | struct icd_nw_api * | network_api, | |
icd_nw_watch_pid_fn | watch_cb, | |||
gpointer | watch_cb_token, | |||
icd_nw_close_fn | close_cb, | |||
gpointer | close_cb_token | |||
) |
Initialize testing module
network_api | the api to fill in | |
watch_cb | function to inform ICd that a child process is to be monitored for exit status | |
watch_cb_token | token to pass to the watch pid function | |
close_cb | function to inform ICd that the network connection is to be closed | |
close_cb_token | token to pass to the close function |
static void test_ip_up | ( | const gchar * | network_type, | |
const guint | network_attrs, | |||
const gchar * | network_id, | |||
const gchar * | interface_name, | |||
icd_nw_ip_up_cb_fn | ip_up_cb, | |||
const gpointer | ip_up_cb_token, | |||
gpointer * | private | |||
) | [static] |
Fake ip_up function
network_type | network type | |
network_attrs | attributes | |
network_id | IAP name or local id, e.g. SSID | |
interface_name | name of the interface | |
ip_up_cb | the callback function to call when the link is up | |
ip_up_cb_token | token to pass to the callback function | |
private | a reference to the icd_nw_api private memeber |
static gboolean test_ip_up_callback | ( | gpointer | data | ) | [static] |
Timeout callback for the ip_up function
data | test structure |
static void test_link_post_up | ( | const gchar * | network_type, | |
const guint | network_attrs, | |||
const gchar * | network_id, | |||
const gchar * | interface_name, | |||
icd_nw_link_post_up_cb_fn | link_post_up_cb, | |||
const gpointer | link_post_up_cb_token, | |||
gpointer * | private | |||
) | [static] |
Fake link_post_up function
network_type | network type | |
network_attrs | attributes | |
network_id | IAP name or local id, e.g. SSID | |
interface_name | name of the interface | |
link_post_up_cb | the callback function to call when the link is up | |
link_post_up_cb_token | token to pass to the callback function | |
private | a reference to the icd_nw_api private memeber |
static gboolean test_link_post_up_callback | ( | gpointer | data | ) | [static] |
Timeout callback for the link_post_up function
data | test structure |
static void test_link_up | ( | const gchar * | network_type, | |
const guint | network_attrs, | |||
const gchar * | network_id, | |||
icd_nw_link_up_cb_fn | link_up_cb, | |||
const gpointer | link_up_cb_token, | |||
gpointer * | private | |||
) | [static] |
Fake link_up function
network_type | network type | |
network_attrs | attributes | |
network_id | IAP name or local id, e.g. SSID | |
link_up_cb | the callback function to call when the link is up | |
link_up_cb_token | token to pass to the callback function | |
private | a reference to the icd_nw_api private memeber |
static gboolean test_link_up_callback | ( | gpointer | data | ) | [static] |
Timeout callback for the link_up function
data | test structure |
static gboolean test_report_scan | ( | gpointer | data | ) | [static] |
Callback for the search function.
data | private data |
gchar test_id[4] [static] |
dummy network id
gchar test_name[4] [static] |
dummy network name
gchar* test_type[2] [static] |
Initial value:
{ "TEST", "TEST_TYPE_2" }