summaryrefslogtreecommitdiffstats
path: root/tinyMSRP/include/tinymsrp/session
diff options
context:
space:
mode:
Diffstat (limited to 'tinyMSRP/include/tinymsrp/session')
-rwxr-xr-xtinyMSRP/include/tinymsrp/session/tmsrp_config.h21
-rwxr-xr-xtinyMSRP/include/tinymsrp/session/tmsrp_data.h45
-rwxr-xr-xtinyMSRP/include/tinymsrp/session/tmsrp_receiver.h27
-rwxr-xr-xtinyMSRP/include/tinymsrp/session/tmsrp_sender.h19
4 files changed, 53 insertions, 59 deletions
diff --git a/tinyMSRP/include/tinymsrp/session/tmsrp_config.h b/tinyMSRP/include/tinymsrp/session/tmsrp_config.h
index 48472b2..f9bbe8b 100755
--- a/tinyMSRP/include/tinymsrp/session/tmsrp_config.h
+++ b/tinyMSRP/include/tinymsrp/session/tmsrp_config.h
@@ -2,19 +2,19 @@
* 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.
*
@@ -43,16 +43,15 @@ TMSRP_BEGIN_DECLS
# define TMSRP_MAX_CHUNK_SIZE 2048
#endif
-typedef struct tmsrp_config_s
-{
- TSK_DECLARE_OBJECT;
+typedef struct tmsrp_config_s {
+ TSK_DECLARE_OBJECT;
- tmsrp_header_To_Path_t* To_Path;
- tmsrp_header_From_Path_t* From_Path;
+ tmsrp_header_To_Path_t* To_Path;
+ tmsrp_header_From_Path_t* From_Path;
- tsk_bool_t Failure_Report;
- tsk_bool_t Success_Report;
- tsk_bool_t OMA_Final_Report;
+ tsk_bool_t Failure_Report;
+ tsk_bool_t Success_Report;
+ tsk_bool_t OMA_Final_Report;
}
tmsrp_config_t;
diff --git a/tinyMSRP/include/tinymsrp/session/tmsrp_data.h b/tinyMSRP/include/tinymsrp/session/tmsrp_data.h
index c24cdd8..2868d32 100755
--- a/tinyMSRP/include/tinymsrp/session/tmsrp_data.h
+++ b/tinyMSRP/include/tinymsrp/session/tmsrp_data.h
@@ -2,19 +2,19 @@
* 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.
*
@@ -42,40 +42,37 @@ TMSRP_BEGIN_DECLS
#define TMSRP_DATA_IS_OUTGOING(self) (TMSRP_DATA(self)->outgoing)
-typedef struct tmsrp_data_s
-{
- TSK_DECLARE_OBJECT;
-
- tsk_bool_t outgoing;
- tsk_bool_t isOK;
-
- char* id;
- char* ctype;
- char* wctype;
+typedef struct tmsrp_data_s {
+ TSK_DECLARE_OBJECT;
+
+ tsk_bool_t outgoing;
+ tsk_bool_t isOK;
+
+ char* id;
+ char* ctype;
+ char* wctype;
}
tmsrp_data_t;
#define TMSRP_DECLARE_DATA tmsrp_data_t data
typedef tsk_list_t tmsrp_datas_L_t;
-typedef struct tmsrp_data_in_s
-{
- TMSRP_DECLARE_DATA;
+typedef struct tmsrp_data_in_s {
+ TMSRP_DECLARE_DATA;
- tsk_buffer_t* buffer;
+ tsk_buffer_t* buffer;
}
tmsrp_data_in_t;
int tmsrp_data_in_put(tmsrp_data_in_t* self, const void* pdata, tsk_size_t size);
tmsrp_message_t* tmsrp_data_in_get(tmsrp_data_in_t* self);
-typedef struct tmsrp_data_out_s
-{
- TMSRP_DECLARE_DATA;
-
- FILE* file;
- tsk_buffer_t* message;
- tsk_size_t size; // File/message size
+typedef struct tmsrp_data_out_s {
+ TMSRP_DECLARE_DATA;
+
+ FILE* file;
+ tsk_buffer_t* message;
+ tsk_size_t size; // File/message size
}
tmsrp_data_out_t;
diff --git a/tinyMSRP/include/tinymsrp/session/tmsrp_receiver.h b/tinyMSRP/include/tinymsrp/session/tmsrp_receiver.h
index 932ab8b..a4afdb5 100755
--- a/tinyMSRP/include/tinymsrp/session/tmsrp_receiver.h
+++ b/tinyMSRP/include/tinymsrp/session/tmsrp_receiver.h
@@ -2,19 +2,19 @@
* 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.
*
@@ -42,19 +42,18 @@
TMSRP_BEGIN_DECLS
-typedef struct tmsrp_receiver_s
-{
- TSK_DECLARE_OBJECT;
+typedef struct tmsrp_receiver_s {
+ TSK_DECLARE_OBJECT;
- tmsrp_data_in_t* data_in;
- tmsrp_config_t* config;
- tnet_fd_t fd;
- tsk_buffer_t* buffer;
+ tmsrp_data_in_t* data_in;
+ tmsrp_config_t* config;
+ tnet_fd_t fd;
+ tsk_buffer_t* buffer;
- struct {
- tmsrp_event_cb_f func;
- const void* data;
- } callback;
+ struct {
+ tmsrp_event_cb_f func;
+ const void* data;
+ } callback;
}
tmsrp_receiver_t;
diff --git a/tinyMSRP/include/tinymsrp/session/tmsrp_sender.h b/tinyMSRP/include/tinymsrp/session/tmsrp_sender.h
index f0a814f..8e50c70 100755
--- a/tinyMSRP/include/tinymsrp/session/tmsrp_sender.h
+++ b/tinyMSRP/include/tinymsrp/session/tmsrp_sender.h
@@ -2,19 +2,19 @@
* 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.
*
@@ -41,14 +41,13 @@
TMSRP_BEGIN_DECLS
-typedef struct tmsrp_sender_s
-{
- TSK_DECLARE_RUNNABLE;
+typedef struct tmsrp_sender_s {
+ TSK_DECLARE_RUNNABLE;
- tmsrp_datas_L_t* outgoingList;
- tmsrp_config_t* config;
- tnet_fd_t fd;
- uint64_t chunck_duration;
+ tmsrp_datas_L_t* outgoingList;
+ tmsrp_config_t* config;
+ tnet_fd_t fd;
+ uint64_t chunck_duration;
}
tmsrp_sender_t;
OpenPOWER on IntegriCloud