Changeset 5311:778a3e7b2b66 in roaraudio for libroar


Ignore:
Timestamp:
11/29/11 12:54:54 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_notify_core_swap_global() wich can be used to create diffrent global contextes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/notify.c

    r5151 r5311  
    183183} 
    184184 
     185struct roar_notify_core * roar_notify_core_swap_global(struct roar_notify_core * core) { 
     186 struct roar_notify_core * ret = _libroar_notify_core; 
     187 
     188 if ( core != NULL ) 
     189  if ( roar_notify_core_ref(core) == -1 ) 
     190   return NULL; 
     191 
     192 _libroar_notify_core = core; 
     193 
     194 return ret; 
     195} 
     196 
    185197int roar_notify_core_register_proxy(struct roar_notify_core * core, void (*cb)(struct roar_notify_core * core, struct roar_event * event, void * userdata), void * userdata) { 
    186198 _CKICORE(); 
Note: See TracChangeset for help on using the changeset viewer.