Loading...
Searching...
No Matches
su_os_nw.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SU_OS_NW_H
#define SU_OS_NW_H
/* ---------------------------------------------------------------------- */
/* Includes */
#ifndef SU_H
#include "sofia-sip/su.h"
#endif
#ifndef SU_TIME_H
#include "sofia-sip/su_time.h"
#endif
#ifndef SU_ALLOC_H
#include "sofia-sip/su_alloc.h"
#endif
#ifndef SU_WAIT_H
#include "sofia-sip/su_wait.h"
#endif
#if SU_HAVE_POLL
#include <sys/poll.h>
#endif
SOFIA_BEGIN_DECLS
/* ---------------------------------------------------------------------- */
/* network-changed callback */
#ifndef SU_NETWORK_CHANGED_MAGIC_T
#define SU_NETWORK_CHANGED_MAGIC_T void
#endif
typedef SU_NETWORK_CHANGED_MAGIC_T su_network_changed_magic_t;
typedef struct su_network_changed_s su_network_changed_t;
typedef void (su_network_changed_f)(su_network_changed_magic_t *, su_root_t *);
/* ---------------------------------------------------------------------- */
/* Functions */
/* Network-changed */
SOFIAPUBFUN 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 *);
SOFIAPUBFUN int su_root_remove_network_changed(su_network_changed_t *);
SOFIA_END_DECLS
#endif /* SU_OS_NW_H */
su.h
Socket and network address interface.
su_alloc.h
Home-based memory management interface.
su_home_t
SU_HOME_T su_home_t
Memory home type.
Definition su_alloc.h:50
SOFIAPUBFUN
#define SOFIAPUBFUN
SOFIAPUBFUN declares an exported function.
Definition su_config.h:66
su_root_remove_network_changed
int su_root_remove_network_changed(su_network_changed_t *)
Remove a callback registered for the network change event.
Definition su_os_nw.c:284
su_network_changed_magic_t
SU_NETWORK_CHANGED_MAGIC_T su_network_changed_magic_t
Root context pointer type.
Definition su_os_nw.h:97
su_network_changed_f
void su_network_changed_f(su_network_changed_magic_t *, su_root_t *)
Function prototype for network-changed callback .
Definition su_os_nw.h:106
SU_NETWORK_CHANGED_MAGIC_T
#define SU_NETWORK_CHANGED_MAGIC_T
Default type of application context for network_changed function.
Definition su_os_nw.h:82
su_root_add_network_changed
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.
Definition su_os_nw.c:250
su_time.h
Time types and functions.
su_wait.h
Syncronization and threading interface.

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.