summaryrefslogtreecommitdiffstats
path: root/tinySDP/include
diff options
context:
space:
mode:
Diffstat (limited to 'tinySDP/include')
-rwxr-xr-xtinySDP/include/tinysdp.h6
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header.h58
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_A.h23
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_B.h23
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_C.h25
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_Dummy.h19
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_E.h21
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_I.h21
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_K.h21
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_M.h73
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_O.h95
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_P.h19
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_R.h27
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_S.h19
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_T.h25
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_U.h19
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_V.h19
-rwxr-xr-xtinySDP/include/tinysdp/headers/tsdp_header_Z.h32
-rwxr-xr-xtinySDP/include/tinysdp/parsers/tsdp_parser_message.h6
-rwxr-xr-xtinySDP/include/tinysdp/tsdp_message.h41
-rwxr-xr-xtinySDP/include/tinysdp_config.h12
-rwxr-xr-xtinySDP/include/tsdp.h6
22 files changed, 295 insertions, 315 deletions
diff --git a/tinySDP/include/tinysdp.h b/tinySDP/include/tinysdp.h
index 96883de..cc615c4 100755
--- a/tinySDP/include/tinysdp.h
+++ b/tinySDP/include/tinysdp.h
@@ -2,19 +2,19 @@
* Copyright (C) 2009 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header.h b/tinySDP/include/tinysdp/headers/tsdp_header.h
index ce669b5..64ba7d4 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -72,38 +72,36 @@ typedef struct tsdp_header_s* (*tsdp_header_clone_f)(const struct tsdp_header_s*
*
* @brief List of all supported headers.
**/
-typedef enum tsdp_header_type_e
-{
- tsdp_htype_A,
- tsdp_htype_B,
- tsdp_htype_C,
- tsdp_htype_Dummy,
- tsdp_htype_E,
- tsdp_htype_I,
- tsdp_htype_K,
- tsdp_htype_M,
- tsdp_htype_O,
- tsdp_htype_P,
- tsdp_htype_R,
- tsdp_htype_S,
- tsdp_htype_T,
- tsdp_htype_U,
- tsdp_htype_V,
- tsdp_htype_Z
+typedef enum tsdp_header_type_e {
+ tsdp_htype_A,
+ tsdp_htype_B,
+ tsdp_htype_C,
+ tsdp_htype_Dummy,
+ tsdp_htype_E,
+ tsdp_htype_I,
+ tsdp_htype_K,
+ tsdp_htype_M,
+ tsdp_htype_O,
+ tsdp_htype_P,
+ tsdp_htype_R,
+ tsdp_htype_S,
+ tsdp_htype_T,
+ tsdp_htype_U,
+ tsdp_htype_V,
+ tsdp_htype_Z
}
tsdp_header_type_t;
/*================================
*/
-typedef struct tsdp_header_s
-{
- TSK_DECLARE_OBJECT;
- tsdp_header_type_t type;
- //! Because all SDP headers shall appear in a fixed order, the rank is used to place each header.
- // Info: RFC 4566 - 5. SDP Specification.
- uint8_t rank;
- tsdp_header_value_tostring_f tostring;
- tsdp_header_clone_f clone;
+typedef struct tsdp_header_s {
+ TSK_DECLARE_OBJECT;
+ tsdp_header_type_t type;
+ //! Because all SDP headers shall appear in a fixed order, the rank is used to place each header.
+ // Info: RFC 4566 - 5. SDP Specification.
+ uint8_t rank;
+ tsdp_header_value_tostring_f tostring;
+ tsdp_header_clone_f clone;
}
tsdp_header_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_A.h b/tinySDP/include/tinysdp/headers/tsdp_header_A.h
index 04aff7f..0ea59bb 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_A.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_A.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_A_H_
#define _TSDP_HEADER_A_H_
@@ -40,22 +40,21 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_A(self) ((tsdp_header_A_t*)(self))
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "a=" header (Attributes).
///
/// @par ABNF : a=attribute
/// attribute = (att-field ":" att-value) / att-field
/// att-field = token
-/// att-value = byte-string
-///
+/// att-value = byte-string
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_A_s
-{
- TSDP_DECLARE_HEADER;
+typedef struct tsdp_header_A_s {
+ TSDP_DECLARE_HEADER;
- char* field;
- char* value;
+ char* field;
+ char* value;
}
tsdp_header_A_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_B.h b/tinySDP/include/tinysdp/headers/tsdp_header_B.h
index 360d3d7..46bbe87 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_B.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_B.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_B_H_
#define _TSDP_HEADER_B_H_
@@ -39,21 +39,20 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_B_VA_ARGS(bwtype, bandwidth) tsdp_header_B_def_t, (const char*)bwtype, (uint32_t)bandwidth
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "b=" header (Bandwidth).
///
/// @par ABNF : b=<bwtype> HCOLON <bandwidth>
-/// bwtype = token
+/// bwtype = token
/// bandwidth = 1*DIGIT
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_B_s
-{
- TSDP_DECLARE_HEADER;
+typedef struct tsdp_header_B_s {
+ TSDP_DECLARE_HEADER;
- char* bwtype;
- uint32_t bandwidth;
+ char* bwtype;
+ uint32_t bandwidth;
}
tsdp_header_B_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_C.h b/tinySDP/include/tinysdp/headers/tsdp_header_C.h
index e5c5399..c11a23c 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_C.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_C.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_C_H_
#define _TSDP_HEADER_C_H_
@@ -38,7 +38,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_C_VA_ARGS(nettype, addrtype, addr) tsdp_header_C_def_t, (const char*)(nettype), (const char*)(addrtype), (const char*)(addr)
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "c=" header (Connection Data).
/// A session description MUST contain either at least one "c=" field in
@@ -46,18 +46,17 @@ TSDP_BEGIN_DECLS
/// It MAY contain a single session-level "c=" field and additional "c="
/// field(s) per media description, in which case the per-media values
/// override the session-level settings for the respective media.
-///
+///
///
///
/// @par ABNF : c= nettype SP addrtype SP connection-address
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_C_s
-{
- TSDP_DECLARE_HEADER;
- char* nettype;
- char* addrtype;
- char* addr;
+typedef struct tsdp_header_C_s {
+ TSDP_DECLARE_HEADER;
+ char* nettype;
+ char* addrtype;
+ char* addr;
}
tsdp_header_C_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_Dummy.h b/tinySDP/include/tinysdp/headers/tsdp_header_Dummy.h
index e9ec9b5..4191507 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_Dummy.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_Dummy.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -38,18 +38,17 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_DUMMY_VA_ARGS(name, value) tsdp_header_Dummy_def_t, (char)name, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP Dummy header.
///
/// @par ABNF : alpha SP* "=" SP*<: any*
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_Dummy_s
-{
- TSDP_DECLARE_HEADER;
- char name;
- char *value;
+typedef struct tsdp_header_Dummy_s {
+ TSDP_DECLARE_HEADER;
+ char name;
+ char *value;
}
tsdp_header_Dummy_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_E.h b/tinySDP/include/tinysdp/headers/tsdp_header_E.h
index a024b6a..23e1c7a 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_E.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_E.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_E_H_
#define _TSDP_HEADER_E_H_
@@ -38,7 +38,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_E_VA_ARGS(value) tsdp_header_E_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "e=" header (Email Address).
///
@@ -46,13 +46,12 @@ TSDP_BEGIN_DECLS
/// responsible for the conference. This is not necessarily the same
/// person that created the conference announcement.
///
-/// @par ABNF : e= email-address
-///
+/// @par ABNF : e= email-address
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_E_s
-{
- TSDP_DECLARE_HEADER;
- char* value;
+typedef struct tsdp_header_E_s {
+ TSDP_DECLARE_HEADER;
+ char* value;
}
tsdp_header_E_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_I.h b/tinySDP/include/tinysdp/headers/tsdp_header_I.h
index 5f5d4fd..875ccfb 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_I.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_I.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_I_H_
#define _TSDP_HEADER_I_H_
@@ -38,17 +38,16 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_I_VA_ARGS(value) tsdp_header_I_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "i=" header (Session Information).
///
-/// @par ABNF : i=text
-///
+/// @par ABNF : i=text
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_I_s
-{
- TSDP_DECLARE_HEADER;
- char* value;
+typedef struct tsdp_header_I_s {
+ TSDP_DECLARE_HEADER;
+ char* value;
}
tsdp_header_I_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_K.h b/tinySDP/include/tinysdp/headers/tsdp_header_K.h
index 5ca090f..5709b5d 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_K.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_K.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_K_H_
#define _TSDP_HEADER_K_H_
@@ -38,7 +38,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_K_VA_ARGS(value) tsdp_header_K_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "k=" header (Encryption Key).
///
@@ -48,13 +48,12 @@ TSDP_BEGIN_DECLS
/// base64 = *base64-unit [base64-pad]
/// base64-unit = 4base64-char
/// base64-pad = 2base64-char "==" / 3base64-pad "="
-/// base64-char = ALPHA / DIGIT / "+" / "/"
-///
+/// base64-char = ALPHA / DIGIT / "+" / "/"
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_K_s
-{
- TSDP_DECLARE_HEADER;
- char* value;
+typedef struct tsdp_header_K_s {
+ TSDP_DECLARE_HEADER;
+ char* value;
}
tsdp_header_K_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_M.h b/tinySDP/include/tinysdp/headers/tsdp_header_M.h
index fad13b0..212be67 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_M.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_M.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_M_H_
#define _TSDP_HEADER_M_H_
@@ -61,7 +61,7 @@ TINYSDP_API tsdp_fmt_t* tsdp_fmt_create(const char* fmt);
//#define TSDP_HEADER_M_SET_NULL() (int)0x00
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "m=" header (Media Descriptions).
///
@@ -72,44 +72,43 @@ TINYSDP_API tsdp_fmt_t* tsdp_fmt_create(const char* fmt);
/// key-field
/// attribute-fields)
///
-/// media-field = %x6d "=" media SP port ["/" integer] SP proto 1*(SP fmt) CRLF
-/// media = token
+/// media-field = %x6d "=" media SP port ["/" integer] SP proto 1*(SP fmt) CRLF
+/// media = token
/// port = 1*DIGIT
-/// proto = token *("/" token)
-/// fmt = token
-///
+/// proto = token *("/" token)
+/// fmt = token
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_M_s
-{
- TSDP_DECLARE_HEADER;
-
- char* media;
- uint32_t port;
- uint32_t nports; /**< <number of ports> */
- char* proto;
- tsk_fmts_L_t* FMTs;
-
- // Fields below will be set by the message parser.
- tsdp_header_I_t* I;
- tsdp_header_C_t* C;
- tsdp_headers_B_L_t* Bandwidths; // (zero or more bandwidth information lines)
- tsdp_header_K_t* K; // (encryption key)
- tsdp_headers_A_L_t* Attributes; // (zero or more media attribute lines)
+typedef struct tsdp_header_M_s {
+ TSDP_DECLARE_HEADER;
+
+ char* media;
+ uint32_t port;
+ uint32_t nports; /**< <number of ports> */
+ char* proto;
+ tsk_fmts_L_t* FMTs;
+
+ // Fields below will be set by the message parser.
+ tsdp_header_I_t* I;
+ tsdp_header_C_t* C;
+ tsdp_headers_B_L_t* Bandwidths; // (zero or more bandwidth information lines)
+ tsdp_header_K_t* K; // (encryption key)
+ tsdp_headers_A_L_t* Attributes; // (zero or more media attribute lines)
}
tsdp_header_M_t;
typedef enum tsdp_header_M_diff_e {
- tsdp_header_M_diff_none = 0x0000000,
- tsdp_header_M_diff_hold_resume = (0x0000001 << 0),
- tsdp_header_M_diff_index = (0x0000001 << 1),
- tsdp_header_M_diff_codecs = (0x0000001 << 2),
- tsdp_header_M_diff_network_info = (0x0000001 << 3),
- tsdp_header_M_diff_ice_enabled = (0x0000001 << 4),
- tsdp_header_M_diff_ice_restart = (0x0000001 << 5),
- tsdp_header_M_diff_dtls_fingerprint = (0x0000001 << 6),
- tsdp_header_M_diff_sdes_crypto = (0x0000001 << 7),
- tsdp_header_M_diff_media_type = (0x0000001 << 8),
- tsdp_header_M_diff_all = 0xFFFFFFFF
+ tsdp_header_M_diff_none = 0x0000000,
+ tsdp_header_M_diff_hold_resume = (0x0000001 << 0),
+ tsdp_header_M_diff_index = (0x0000001 << 1),
+ tsdp_header_M_diff_codecs = (0x0000001 << 2),
+ tsdp_header_M_diff_network_info = (0x0000001 << 3),
+ tsdp_header_M_diff_ice_enabled = (0x0000001 << 4),
+ tsdp_header_M_diff_ice_restart = (0x0000001 << 5),
+ tsdp_header_M_diff_dtls_fingerprint = (0x0000001 << 6),
+ tsdp_header_M_diff_sdes_crypto = (0x0000001 << 7),
+ tsdp_header_M_diff_media_type = (0x0000001 << 8),
+ tsdp_header_M_diff_all = 0xFFFFFFFF
}
tsdp_header_M_diff_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_O.h b/tinySDP/include/tinysdp/headers/tsdp_header_O.h
index 20a1994..ceda65c 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_O.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_O.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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,7 +43,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_O_SESS_VERSION_DEFAULT 678901
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "o=" header (Origin).
/// The "o=" field gives the originator of the session (her username and
@@ -52,56 +52,55 @@ TSDP_BEGIN_DECLS
/// @par ABNF : u=username SP
/// sess-id SP sess-version SP nettype SP addrtype SP unicast-address
///
-/// username = non-ws-string
+/// username = non-ws-string
/// sess-id = 1*DIGIT
/// sess-version = 1*DIGIT
-/// nettype = token
+/// nettype = token
/// addrtype = token
/// unicast-address = FQDN
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_O_s
-{
- TSDP_DECLARE_HEADER;
+typedef struct tsdp_header_O_s {
+ TSDP_DECLARE_HEADER;
- /** <username> is the user's login on the originating host, or it is "-"
- if the originating host does not support the concept of user IDs.
- The <username> MUST NOT contain spaces.*/
- char* username;
- /** <sess-id>, <nettype>, <addrtype>, and <unicast-address> forms a
- globally unique identifier for the session. The method of
- <sess-id> allocation is up to the creating tool, but it has been
- suggested that a Network Time Protocol (NTP) format timestamp be
- used to ensure uniqueness*/
- uint32_t sess_id;
- /** <sess-version> is a version number for this session description. Its
- usage is up to the creating tool, so long as <sess-version> is
- increased when a modification is made to the session data. Again,
- it is RECOMMENDED that an NTP format timestamp is used.*/
- uint32_t sess_version;
- /** <nettype> is a text string giving the type of network. Initially
- "IN" is defined to have the meaning "Internet", but other values
- MAY be registered in the future (see Section 8 of RFC 4566)*/
- char* nettype;
- /**<addrtype> is a text string giving the type of the address that
- follows. Initially "IP4" and "IP6" are defined, but other values
- MAY be registered in the future (see Section 8 of RFC 4566)*/
- char* addrtype;
- /** <unicast-address> is the address of the machine from which the
- session was created. For an address type of IP4, this is either
- the fully qualified domain name of the machine or the dotted-
- decimal representation of the IP version 4 address of the machine.
- For an address type of IP6, this is either the fully qualified
- domain name of the machine or the compressed textual
- representation of the IP version 6 address of the machine. For
- both IP4 and IP6, the fully qualified domain name is the form that
- SHOULD be given unless this is unavailable, in which case the
- globally unique address MAY be substituted. A local IP address
- MUST NOT be used in any context where the SDP description might
- leave the scope in which the address is meaningful (for example, a
- local address MUST NOT be included in an application-level
- referral that might leave the scope)*/
- char* addr;
+ /** <username> is the user's login on the originating host, or it is "-"
+ if the originating host does not support the concept of user IDs.
+ The <username> MUST NOT contain spaces.*/
+ char* username;
+ /** <sess-id>, <nettype>, <addrtype>, and <unicast-address> forms a
+ globally unique identifier for the session. The method of
+ <sess-id> allocation is up to the creating tool, but it has been
+ suggested that a Network Time Protocol (NTP) format timestamp be
+ used to ensure uniqueness*/
+ uint32_t sess_id;
+ /** <sess-version> is a version number for this session description. Its
+ usage is up to the creating tool, so long as <sess-version> is
+ increased when a modification is made to the session data. Again,
+ it is RECOMMENDED that an NTP format timestamp is used.*/
+ uint32_t sess_version;
+ /** <nettype> is a text string giving the type of network. Initially
+ "IN" is defined to have the meaning "Internet", but other values
+ MAY be registered in the future (see Section 8 of RFC 4566)*/
+ char* nettype;
+ /**<addrtype> is a text string giving the type of the address that
+ follows. Initially "IP4" and "IP6" are defined, but other values
+ MAY be registered in the future (see Section 8 of RFC 4566)*/
+ char* addrtype;
+ /** <unicast-address> is the address of the machine from which the
+ session was created. For an address type of IP4, this is either
+ the fully qualified domain name of the machine or the dotted-
+ decimal representation of the IP version 4 address of the machine.
+ For an address type of IP6, this is either the fully qualified
+ domain name of the machine or the compressed textual
+ representation of the IP version 6 address of the machine. For
+ both IP4 and IP6, the fully qualified domain name is the form that
+ SHOULD be given unless this is unavailable, in which case the
+ globally unique address MAY be substituted. A local IP address
+ MUST NOT be used in any context where the SDP description might
+ leave the scope in which the address is meaningful (for example, a
+ local address MUST NOT be included in an application-level
+ referral that might leave the scope)*/
+ char* addr;
}
tsdp_header_O_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_P.h b/tinySDP/include/tinysdp/headers/tsdp_header_P.h
index ca73886..0824bbb 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_P.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_P.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_P_H_
#define _TSDP_HEADER_P_H_
@@ -38,7 +38,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_P_VA_ARGS(value) tsdp_header_P_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "p=" header (Phone Number).
/// The "p=" line specifies contact information for the person
@@ -47,12 +47,11 @@ TSDP_BEGIN_DECLS
///
///
/// @par ABNF : p= phone-number
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_P_s
-{
- TSDP_DECLARE_HEADER;
- char* value;
+typedef struct tsdp_header_P_s {
+ TSDP_DECLARE_HEADER;
+ char* value;
}
tsdp_header_P_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_R.h b/tinySDP/include/tinysdp/headers/tsdp_header_R.h
index a5277cc..fb486ec 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_R.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_R.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_R_H_
#define _TSDP_HEADER_R_H_
@@ -40,7 +40,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_R_VA_ARGS() tsdp_header_R_def_t
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "r=" header (Repeat Times).
///
@@ -48,17 +48,16 @@ TSDP_BEGIN_DECLS
///
/// @par ABNF : r= repeat-interval SP typed-time 1*(SP typed-time)
/// repeat-interval = POS-DIGIT *DIGIT [fixed-len-time-unit]
-/// typed-time = 1*DIGIT [fixed-len-time-unit]
-/// 1*DIGIT [fixed-len-time-unit]
+/// typed-time = 1*DIGIT [fixed-len-time-unit]
+/// 1*DIGIT [fixed-len-time-unit]
/// fixed-len-time-unit = "d" / "h" / "m" / "s"
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_R_s
-{
- TSDP_DECLARE_HEADER;
- char* repeat_interval;
- char* typed_time;
- tsk_strings_L_t* typed_times;
+typedef struct tsdp_header_R_s {
+ TSDP_DECLARE_HEADER;
+ char* repeat_interval;
+ char* typed_time;
+ tsk_strings_L_t* typed_times;
}
tsdp_header_R_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_S.h b/tinySDP/include/tinysdp/headers/tsdp_header_S.h
index 4f2316a..a573242 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_S.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_S.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -38,17 +38,16 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_S_VA_ARGS(value) tsdp_header_S_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "s=" header (Session Name).
///
-/// @par ABNF : s=text
-///
+/// @par ABNF : s=text
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_S_s
-{
- TSDP_DECLARE_HEADER;
- char* value;
+typedef struct tsdp_header_S_s {
+ TSDP_DECLARE_HEADER;
+ char* value;
}
tsdp_header_S_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_T.h b/tinySDP/include/tinysdp/headers/tsdp_header_T.h
index 596094d..d4cf158 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_T.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_T.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_T_H_
#define _TSDP_HEADER_T_H_
@@ -40,7 +40,7 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_T_VA_ARGS(start, stop) tsdp_header_T_def_t, (uint64_t)start, (uint64_t)stop
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "t=" header (Timing).
/// The "t=" lines specify the start and stop times for a session.
@@ -53,16 +53,15 @@ TSDP_BEGIN_DECLS
/// sequence.
///
///
-/// @par ABNF : t= start-time SP stop-time *( CRLF repeat-fields )
-///
+/// @par ABNF : t= start-time SP stop-time *( CRLF repeat-fields )
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_T_s
-{
- TSDP_DECLARE_HEADER;
- uint64_t start;
- uint64_t stop;
+typedef struct tsdp_header_T_s {
+ TSDP_DECLARE_HEADER;
+ uint64_t start;
+ uint64_t stop;
- tsdp_headers_R_L_t* repeat_fields;
+ tsdp_headers_R_L_t* repeat_fields;
}
tsdp_header_T_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_U.h b/tinySDP/include/tinysdp/headers/tsdp_header_U.h
index d42a503..fc10b23 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_U.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_U.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -38,17 +38,16 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_U_VA_ARGS(value) tsdp_header_U_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "u=" header (URI).
///
-/// @par ABNF : u=uri
-///
+/// @par ABNF : u=uri
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_U_s
-{
- TSDP_DECLARE_HEADER;
- char* value;
+typedef struct tsdp_header_U_s {
+ TSDP_DECLARE_HEADER;
+ char* value;
}
tsdp_header_U_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_V.h b/tinySDP/include/tinysdp/headers/tsdp_header_V.h
index bf3578a..27639b8 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_V.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_V.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -40,19 +40,18 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_V_DEFAULT 0
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "v=" header (Protocol Version).
/// The "v=" field gives the version of the Session Description Protocol.
/// This memo (RFC 4566) defines version 0. There is no minor version number.
///
-/// @par ABNF : v=1*DIGIT
-///
+/// @par ABNF : v=1*DIGIT
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_V_s
-{
- TSDP_DECLARE_HEADER;
- int32_t version;
+typedef struct tsdp_header_V_s {
+ TSDP_DECLARE_HEADER;
+ int32_t version;
}
tsdp_header_V_t;
diff --git a/tinySDP/include/tinysdp/headers/tsdp_header_Z.h b/tinySDP/include/tinysdp/headers/tsdp_header_Z.h
index e962cc8..2ae5da7 100755
--- a/tinySDP/include/tinysdp/headers/tsdp_header_Z.h
+++ b/tinySDP/include/tinysdp/headers/tsdp_header_Z.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -25,7 +25,7 @@
*
* @author Mamadou Diop <diopmamadou(at)doubango[dot]org>
*
- *
+ *
*/
#ifndef _TSDP_HEADER_Z_H_
#define _TSDP_HEADER_Z_H_
@@ -37,13 +37,12 @@ TSDP_BEGIN_DECLS
#define TSDP_HEADER_Z_VA_ARGS(time, shifted_back, typed_time) tsdp_header_Z_def_t, (uint64_t)time, (tsk_bool_t)shifted_back, (const char*)typed_time
-typedef struct tsdp_zone_s
-{
- TSK_DECLARE_OBJECT;
+typedef struct tsdp_zone_s {
+ TSK_DECLARE_OBJECT;
- uint64_t time;
- tsk_bool_t shifted_back;
- char* typed_time;
+ uint64_t time;
+ tsk_bool_t shifted_back;
+ char* typed_time;
}
tsdp_zone_t;
typedef tsk_list_t tsdp_zones_L_t;
@@ -52,7 +51,7 @@ TINYSDP_API tsdp_zone_t* tsdp_zone_create(uint64_t time, tsk_bool_t shifted_back
TINYSDP_API tsdp_zone_t* tsdp_zone_create_null();
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief SDP "z=" header (Time Zones).
///
@@ -60,14 +59,13 @@ TINYSDP_API tsdp_zone_t* tsdp_zone_create_null();
/// *(SP time SP ["-"] typed-time)
/// time = POS-DIGIT 9*DIGIT
/// typed-time = 1*DIGIT [fixed-len-time-unit]
-/// fixed-len-time-unit = "d" / "h" / "m" / "s"
-///
+/// fixed-len-time-unit = "d" / "h" / "m" / "s"
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tsdp_header_Z_s
-{
- TSDP_DECLARE_HEADER;
+typedef struct tsdp_header_Z_s {
+ TSDP_DECLARE_HEADER;
- tsdp_zones_L_t* zones;
+ tsdp_zones_L_t* zones;
}
tsdp_header_Z_t;
diff --git a/tinySDP/include/tinysdp/parsers/tsdp_parser_message.h b/tinySDP/include/tinysdp/parsers/tsdp_parser_message.h
index 811cb86..2e39cdc 100755
--- a/tinySDP/include/tinysdp/parsers/tsdp_parser_message.h
+++ b/tinySDP/include/tinysdp/parsers/tsdp_parser_message.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
diff --git a/tinySDP/include/tinysdp/tsdp_message.h b/tinySDP/include/tinysdp/tsdp_message.h
index 4d7c226..6707ee1 100755
--- a/tinySDP/include/tinysdp/tsdp_message.h
+++ b/tinySDP/include/tinysdp/tsdp_message.h
@@ -1,18 +1,18 @@
/*
* Copyright (C) 2010-2015 Mamadou DIOP.
-*
+*
* 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.
*
@@ -33,12 +33,11 @@
TSDP_BEGIN_DECLS
-typedef struct tsdp_message_s
-{
- TSK_DECLARE_OBJECT;
+typedef struct tsdp_message_s {
+ TSK_DECLARE_OBJECT;
- //! List of @ref tsdp_header_t elements.
- tsdp_headers_L_t* headers;
+ //! List of @ref tsdp_header_t elements.
+ tsdp_headers_L_t* headers;
}
tsdp_message_t;
@@ -51,19 +50,19 @@ TINYSDP_API int tsdp_message_add_headers(tsdp_message_t *self, ...);
#if defined(__SYMBIAN32__) && 0
static void TSDP_MESSAGE_ADD_HEADER(tsdp_message_t *self, ...)
- {
- va_list ap;
- tsdp_header_t *header;
- const tsk_object_def_t *objdef;
-
- va_start(ap, self);
- objdef = va_arg(ap, const tsk_object_def_t*);
- header = (tsdp_header_t *)tsk_object_new_2(objdef, &ap);
- va_end(ap);
-
- tsdp_message_add_header(self, header);
- tsk_object_unref(header);
- }
+{
+ va_list ap;
+ tsdp_header_t *header;
+ const tsk_object_def_t *objdef;
+
+ va_start(ap, self);
+ objdef = va_arg(ap, const tsk_object_def_t*);
+ header = (tsdp_header_t *)tsk_object_new_2(objdef, &ap);
+ va_end(ap);
+
+ tsdp_message_add_header(self, header);
+ tsk_object_unref(header);
+}
#else
#define TSDP_MESSAGE_ADD_HEADER(self, objdef, ...) \
{ \
diff --git a/tinySDP/include/tinysdp_config.h b/tinySDP/include/tinysdp_config.h
index 23ee4c8..ea8a907 100755
--- a/tinySDP/include/tinysdp_config.h
+++ b/tinySDP/include/tinysdp_config.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
@@ -63,13 +63,13 @@
# define TINYSDP_GEXTERN extern
#endif
-/* Guards against C++ name mangling
+/* Guards against C++ name mangling
*/
#ifdef __cplusplus
# define TSDP_BEGIN_DECLS extern "C" {
# define TSDP_END_DECLS }
#else
-# define TSDP_BEGIN_DECLS
+# define TSDP_BEGIN_DECLS
# define TSDP_END_DECLS
#endif
@@ -93,7 +93,7 @@
#endif
#if HAVE_CONFIG_H
- #include <config.h>
+#include <config.h>
#endif
#endif // TINYSDP_CONFIG_H
diff --git a/tinySDP/include/tsdp.h b/tinySDP/include/tsdp.h
index f09e9f4..ba030db 100755
--- a/tinySDP/include/tsdp.h
+++ b/tinySDP/include/tsdp.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]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.
*
OpenPOWER on IntegriCloud