cleaned up main internal data structure design, changed to reference counting for sources to ensure safe destruction of source objects from all parts of the system, added some service-related stuff for testing
This commit is contained in:
@@ -20,10 +20,15 @@
|
||||
struct service_data;
|
||||
|
||||
struct service_info {
|
||||
const char *(*getname)(const char *locale);
|
||||
|
||||
void *(*create)(const char *settings, struct service_data *service);
|
||||
void (*destroy)(void *data);
|
||||
void (*config)(void *data, const char *settings);
|
||||
|
||||
|
||||
/* optional */
|
||||
const char *(*getdata)(const char *attribute);
|
||||
|
||||
/* get stream url/key */
|
||||
/* get (viewers/etc) */
|
||||
/* send (current game/title/activate commercial/etc) */
|
||||
|
Reference in New Issue
Block a user