summaryrefslogtreecommitdiff
path: root/src/lib/emix.h
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-06-16 23:22:25 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-14 23:33:17 -0300
commit7c4bf1e07ef110b187965f5806a3658ff21f840c (patch)
tree27dd0f1fd013332c0e868a04e121edc638036f00 /src/lib/emix.h
parentef84767e8dadef00d29b043a1be4e72dc4280e6c (diff)
emix: Adding callbacks for events
Adding callbacks to be used for the backends when they need to inform that an event happened (new sink available, new sink input, ...).
Diffstat (limited to '')
-rw-r--r--src/lib/emix.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/emix.h b/src/lib/emix.h
index a9c6cfb..06638b1 100644
--- a/src/lib/emix.h
+++ b/src/lib/emix.h
@@ -39,9 +39,17 @@ typedef enum _Emix_Event_Type {
39 EMIX_EVENT_REMOVED 39 EMIX_EVENT_REMOVED
40} Emix_Event_Type; 40} Emix_Event_Type;
41 41
42typedef void (*sink_event_cb)(Emix_Sink *sink, Emix_Event_Type type);
43typedef void (*sink_input_event_cb)(Emix_Sink_Input *input,
44 Emix_Event_Type type);
45typedef void (*source_event_cb)(Emix_Source *source, Emix_Event_Type type);
46typedef void (*disconnect_event_cb)(void);
42 47
43typedef struct _Emix_Backend { 48typedef struct _Emix_Backend {
44 void (*ebackend_init)(void); 49 void (*ebackend_init)(sink_event_cb sink_cb,
50 sink_input_event_cb input_cb,
51 source_event_cb source_cb,
52 disconnect_event_cb disconnect_cb);
45 void (*ebackend_shutdown)(void); 53 void (*ebackend_shutdown)(void);
46 54
47 const Eina_List* (*ebackend_sinks_get)(void); 55 const Eina_List* (*ebackend_sinks_get)(void);