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:
jp9000
2013-11-20 15:00:16 -07:00
parent 5e33707f6a
commit 409b011a8e
18 changed files with 3155 additions and 327 deletions

View File

@@ -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) */