Commit 62908a5c authored by Pekka Pessi's avatar Pekka Pessi

su/Makefile.am: do not install <sofia-sip/su_os_nw.h> yet.

darcs-hash:20060926170453-65a35-28011d753123b30f546bedd47defab7e285b1e18.gz
parent a734fcce
......@@ -52,7 +52,7 @@ nobase_include_sofia_HEADERS = \
sofia-sip/su_log.h \
sofia-sip/su_config.h sofia-sip/su_md5.h \
sofia-sip/su_uniqueid.h sofia-sip/su_bm.h \
sofia-sip/tstdef.h sofia-sip/su_os_nw.h
sofia-sip/tstdef.h
nobase_nodist_include_sofia_HEADERS = sofia-sip/su_configure.h
......@@ -61,8 +61,9 @@ libsu_la_SOURCES = \
su_alloc.c su_alloc_lock.c su_strdup.c su_sprintf.c \
su_strlst.c su_vector.c \
su_time.c su_time0.c \
su_wait.c su_os_nw.c su_root.c su_timer.c su_port.c su_port.h \
su_wait.c su_root.c su_timer.c su_port.c su_port.h \
su_localinfo.c \
su_os_nw.c sofia-sip/su_os_nw.h \
su_taglist.c su_tag.c su_tag_io.c \
su_log.c su_global_log.c su_default_log.c su_module_debug.h \
su_md5.c su_uniqueid.c su_bm.c
......
......@@ -35,6 +35,7 @@
* @date Created: Tue Aug 15 09:05:18 EEST 2006 martti.mela@nokia.com
*
* @since Experimental in @VERSION_1_12_2.
* Note that this is expected to change in future releases.
*/
/* ---------------------------------------------------------------------- */
......
......@@ -75,6 +75,7 @@ struct su_network_changed_s {
su_network_changed_magic_t *su_network_changed_magic;
};
#if defined(__APPLE_CC__)
static void su_nw_changed_msg_recv(su_root_magic_t *rm,
su_msg_r msg,
su_network_changed_t *snc)
......@@ -90,7 +91,7 @@ static void su_nw_changed_msg_recv(su_root_magic_t *rm,
return;
}
#if defined(__APPLE_CC__)
void nw_changed_cb(SCDynamicStoreRef store,
CFArrayRef changedKeys,
void *info)
......@@ -221,24 +222,23 @@ CreateIPAddressListChangeCallbackSCF(SCDynamicStoreCallBack callback,
#endif /* __APPLE_CC__ */
#if defined(__APPLE_CC__)
static void *su_start_nw_os_thread(void *ptr)
{
su_network_changed_t *snc = (su_network_changed_t *) ptr;
assert(snc);
#if defined(__APPLE_CC__)
CreateIPAddressListChangeCallbackSCF(nw_changed_cb,
(void *) snc,
snc->su_storeRef,
snc->su_sourceRef);
CFRunLoopRun();
#endif
return NULL;
}
#endif
/** Register a callback for the network change event.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment