Changeset 5937:99bf6b3b3ebe in roaraudio for plugins/roard
- Timestamp:
- 09/12/13 05:17:10 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/roard/dmx-strobe.c
r5936 r5937 51 51 #define __set_XXX(type) \ 52 52 static void __set_##type (uint8_t val) { \ 53 ROAR_DBG("__set_%s(val=%i): channel=%li", #type, val, (long int)g_state->channel_##type); \ 53 54 if ( g_state->channel_##type != -1 ) \ 54 55 light_dmxchannel_set(g_state->channel_##type, val); \ … … 111 112 112 113 static void cb_event(struct roar_notify_core * core, struct roar_event * event, void * userdata) { 114 struct state * old = g_state; 115 113 116 (void)core, (void)userdata; 117 118 g_state = userdata; 119 114 120 __handle_event(event->arg0); 121 122 g_state = old; 115 123 } 116 124 … … 127 135 event.target_type = ROAR_OT_STREAM; 128 136 129 g_state->subscription_event = roar_notify_core_subscribe(NULL, &event, cb_event, NULL);137 g_state->subscription_event = roar_notify_core_subscribe(NULL, &event, cb_event, g_state); 130 138 131 139 return 0;
Note: See TracChangeset
for help on using the changeset viewer.