#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>
Include dependency graph for su_os_nw.h:
Go to the source code of this file.
Defines | |
#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. |
#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 <su_os_nw.h>, for example,
#define SU_NETWORK_CHANGED_MAGIC_T struct context #include <su_os_nw.h>
typedef void( su_network_changed_f)(su_network_changed_magic_t *, su_root_t *) |
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 <su_os_nw.h>, for example,
#define SU_NETWORK_CHANGED_MAGIC_T struct context #include <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 | |||
) |
int su_root_remove_network_changed | ( | su_network_changed_t * | snc | ) |