rpc-ic

rpc-ic — Helper functions to communicate with ic.

Synopsis




void        (*ICConnectedNotifyCb)          (gpointer user_data);
void        ic_wait_connection              (ICConnectedNotifyCb cb,
                                             gpointer user_data);
void        ic_unwait_connection            (ICConnectedNotifyCb cb,
                                             gpointer user_data);

Description

Here there be helper functions that can be used to get conncetivity status from ic.

Details

ICConnectedNotifyCb ()

void        (*ICConnectedNotifyCb)          (gpointer user_data);

Callback to be called when a connection is connected.

user_data : user data set when the signal handler was connected.

ic_wait_connection ()

void        ic_wait_connection              (ICConnectedNotifyCb cb,
                                             gpointer user_data);

Waits for internet connection and calls cb when one comes.

cb : Callback to call when a connection is established.
user_data : User data to pass to the cb.

ic_unwait_connection ()

void        ic_unwait_connection            (ICConnectedNotifyCb cb,
                                             gpointer user_data);

Stopds waiting for internet connection for given callback and data.

cb : Callback that should be removed.
user_data : user daata for callback that should be removed.