Changeset 4324:08c67c699868 in roaraudio
- Timestamp:
- 09/07/10 22:53:10 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r4323 r4324 45 45 int add_output (char * drv, char * dev, char * opts, int prim, int count); 46 46 47 #ifdef DEBUG 48 void dbg_notify_cb(struct roar_notify_core * core, struct roar_event * event, void * userdata) { 49 char buf[1024] = ""; 50 51 if ( event->flags & ROAR_EVENT_FLAG_PROXYEVENT ) { 52 snprintf(buf, sizeof(buf)-1, ".event_proxy=0x%.8x, ", (int)event->event_proxy); 53 buf[sizeof(buf)-1] = 0; 54 } 55 56 ROAR_DBG("dbg_notify_cb(core=%p, event=%p{.flags=0x%.8x, event=0x%.8x, %s.emitter=%i, .target=%i, .target_type=%i, .arg0=%i, .arg1=%i, .arg2=%p}, userdata=%p) = (void)", 57 core, event, 58 (int)event->flags, 59 (int)event->event, 60 buf, 61 event->emitter, 62 event->target, 63 event->target_type, 64 event->arg0, 65 event->arg1, 66 event->arg2, 67 userdata); 68 } 69 70 void dbg_notify_cb_register (void) { 71 struct roar_event event; 72 73 memset(&event, 0, sizeof(event)); 74 75 event.event = ROAR_EGRP_ANY_EVENT; 76 77 event.emitter = -1; 78 event.target = -1; 79 event.target_type = -1; 80 81 roar_notify_core_subscribe(NULL, &event, dbg_notify_cb, NULL); 82 } 83 #endif 84 47 85 #ifdef ROAR_HAVE_MAIN_ARGS 48 86 void usage (void) { … … 1342 1380 } 1343 1381 1382 if ( roar_notify_core_register_proxy(NULL, roar_notify_proxy_std, NULL) == -1 ) { 1383 ROAR_ERR("Can not init notify core!"); 1384 return 1; 1385 } 1386 1387 #ifdef DEBUG 1388 dbg_notify_cb_register(); 1389 #endif 1390 1344 1391 #ifdef ROAR_SUPPORT_LISTEN 1345 1392 if ( init_listening() == -1 ) {
Note: See TracChangeset
for help on using the changeset viewer.