Merge branch 'autotools'
[umurmur.git] / src / voicetarget.h
index 0d2f05106d0c5da0acb58813cbf5efa0daeca5c2..ec7aa2ed4fe30c339069b066a51c8e6cf9103bb3 100644 (file)
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009-2010, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2010, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2011, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2011, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -28,6 +28,7 @@
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
+
 #ifndef VOICETARGET_H_98762439875
 #define VOICETARGET_H_98762439875
 
 #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 +55,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);