summaryrefslogtreecommitdiffstats
path: root/branches/1.0/tinyMSRP/src/tmsrp_event.c
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
committerMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
commit631fffee8a28b1bec5ed1f1d26a20e0135967f99 (patch)
tree74afe3bf3efe15aa82bcd0272b2b0f4d48c2d837 /branches/1.0/tinyMSRP/src/tmsrp_event.c
parent7908865936604036e6f200f1b5e069f8752f3a3a (diff)
downloaddoubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip
doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz
-
Diffstat (limited to 'branches/1.0/tinyMSRP/src/tmsrp_event.c')
-rw-r--r--branches/1.0/tinyMSRP/src/tmsrp_event.c89
1 files changed, 0 insertions, 89 deletions
diff --git a/branches/1.0/tinyMSRP/src/tmsrp_event.c b/branches/1.0/tinyMSRP/src/tmsrp_event.c
deleted file mode 100644
index 1a37e6d..0000000
--- a/branches/1.0/tinyMSRP/src/tmsrp_event.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
-* Copyright (C) 2009 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file tmsrp_event.c
- * @brief MSRP/MSRPS Event.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#include "tinymsrp/tmsrp_event.h"
-
-#include "tsk_debug.h"
-
-tmsrp_event_t* tmsrp_event_create(const void* callback_data, tsk_bool_t outgoing, tmsrp_event_type_t type, tmsrp_message_t* message)
-{
- tmsrp_event_t* _event;
- if((_event = tsk_object_new(tmsrp_event_def_t))){
- _event->callback_data = callback_data;
- _event->outgoing = outgoing;
- _event->type = type;
- _event->message = tsk_object_ref(message);
- }
- else{
- TSK_DEBUG_ERROR("Faile to create new MSRP event");
- }
-
- return _event;
-}
-
-//========================================================
-// MSRP Event definition
-//
-
-/**@ingroup tmsrp_event_group
-*/
-static tsk_object_t* tmsrp_event_ctor(tsk_object_t *self, va_list * app)
-{
- tmsrp_event_t *_event = self;
- if(_event){
- }
- else{
- TSK_DEBUG_ERROR("Failed to create new MSRP Event");
- }
- return self;
-}
-
-/**@ingroup tmsrp_event_group
-*/
-static tsk_object_t* tmsrp_event_dtor(tsk_object_t *self)
-{
- tmsrp_event_t *_event = self;
- if(_event){
- TSK_OBJECT_SAFE_FREE(_event->message);
- }
- else{
- TSK_DEBUG_ERROR("Null MSRP Event");
- }
-
- return self;
-}
-
-static const tsk_object_def_t tmsrp_event_def_s =
-{
- sizeof(tmsrp_event_t),
- tmsrp_event_ctor,
- tmsrp_event_dtor,
- tsk_null
-};
-const tsk_object_def_t *tmsrp_event_def_t = &tmsrp_event_def_s;
OpenPOWER on IntegriCloud