Network change events. More...
#include "sofia-sip/su.h"
#include "sofia-sip/su_time.h"
#include "sofia-sip/su_alloc.h"
#include "sofia-sip/su_wait.h"
#include <sys/poll.h>
Go to the source code of this file.
Defines | |
#define | SU_OS_NW_H |
Defined when <sofia-sip/su_os_nw.h> has been included. | |
#define | SU_NETWORK_CHANGED_MAGIC_T |
Default type of application context for network_changed function. | |
Typedefs | |
typedef SU_NETWORK_CHANGED_MAGIC_T | su_network_changed_magic_t |
Root context pointer type. | |
typedef void( | su_network_changed_f )(su_network_changed_magic_t *, su_root_t *) |
Function prototype for network-changed callback . | |
Functions | |
su_network_changed_t * | su_root_add_network_changed (su_home_t *home, su_root_t *root, su_network_changed_f *, su_network_changed_magic_t *) |
Register a callback for the network change event. | |
int | su_root_remove_network_changed (su_network_changed_t *) |
Remove a callback registered for the network change event. |
Network change events.
#define SU_NETWORK_CHANGED_MAGIC_T |
Default type of application context for network_changed function.
Application may define the typedef su_network_changed_magic_t to appropriate type by defining macro SU_NETWORK_CHANGED_MAGIC_T before including <sofia-sip/su_os_nw.h>, for example,
#define SU_NETWORK_CHANGED_MAGIC_T struct context #include <sofia-sip/su_os_nw.h>
#define SU_OS_NW_H |
Defined when <sofia-sip/su_os_nw.h> has been included.
typedef void( su_network_changed_f)(su_network_changed_magic_t *, su_root_t *) |
Function prototype for network-changed callback .
typedef SU_NETWORK_CHANGED_MAGIC_T su_network_changed_magic_t |
Root context pointer type.
Application may define the typedef su_network_changed_magic_t to appropriate type by defining macro SU_NETWORK_CHANGED_MAGIC_T before including <sofia-sip/su_os_nw.h>, for example,
#define SU_NETWORK_CHANGED_MAGIC_T struct context #include <sofia-sip/su_os_nw.h>
su_network_changed_t* su_root_add_network_changed | ( | su_home_t * | home, | |
su_root_t * | root, | |||
su_network_changed_f * | network_changed_cb, | |||
su_network_changed_magic_t * | magic | |||
) |
Register a callback for the network change event.
int su_root_remove_network_changed | ( | su_network_changed_t * | snc | ) |
Remove a callback registered for the network change event.