Testing module for the network api
[Testing componenets]


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]

Enumeration Type Documentation

enum test_module_state

the internal status for the test module

Enumerator:
TEST_MODULE_IDLING  idling
TEST_MODULE_SCANNING  scanning
TEST_MODULE_FAKING_ACTIVE  active


Function Documentation

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

Parameters:
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
Returns:
TRUE

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

Parameters:
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

Parameters:
data test structure
Returns:
FALSE

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

Parameters:
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

Parameters:
data test structure
Returns:
FALSE

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

Parameters:
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

Parameters:
data test structure
Returns:
FALSE

static gboolean test_report_scan ( gpointer  data  )  [static]

Callback for the search function.

Parameters:
data private data
Returns:
TRUE to continue sending reports, FALSE to stop


Variable Documentation

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"
}
dummy network types


Generated on Tue Feb 24 16:21:36 2009 for ICd2 by  doxygen 1.5.1