X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fvoicetarget.h;h=1bd2d17961e53cb310912f2557ecff2be4837f7b;hb=f1a666fa49ec318684c76148912a734a01e194a7;hp=0d2f05106d0c5da0acb58813cbf5efa0daeca5c2;hpb=46d18f60766f997d0ca37c5937f58c0c06477932;p=umurmur.git diff --git a/src/voicetarget.h b/src/voicetarget.h index 0d2f051..1bd2d17 100644 --- a/src/voicetarget.h +++ b/src/voicetarget.h @@ -37,9 +37,15 @@ #define TARGET_MAX_CHANNELS 16 #define TARGET_MAX_SESSIONS 32 +typedef struct { + int channel; + bool_t linked; + bool_t children; +} channeltarget_t; + typedef struct { int id; - int channels[TARGET_MAX_CHANNELS]; + channeltarget_t channels[TARGET_MAX_CHANNELS]; int sessions[TARGET_MAX_SESSIONS]; struct dlist node; } voicetarget_t; @@ -48,7 +54,8 @@ void Voicetarget_add_id(client_t *client, int targetId); void Voicetarget_del_id(client_t *client, int targetId); void Voicetarget_add_session(client_t *client, int targetId, int sessionId); -void Voicetarget_add_channel(client_t *client, int targetId, int channelId); +void Voicetarget_add_channel(client_t *client, int targetId, int channelId, + bool_t linked, bool_t children); voicetarget_t *Voicetarget_get_id(client_t *client, int targetId); void Voicetarget_free_all(client_t *client);