summaryrefslogtreecommitdiffstats
path: root/tinyMSRP/include/tinymsrp/headers
diff options
context:
space:
mode:
Diffstat (limited to 'tinyMSRP/include/tinymsrp/headers')
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header.h50
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Authorization.h43
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Byte-Range.h21
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Content-Type.h21
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Dummy.h19
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Expires.h17
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Failure-Report.h26
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_From-Path.h19
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Max-Expires.h17
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Message-ID.h17
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Min-Expires.h17
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Status.h21
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Success-Report.h15
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_To-Path.h19
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_Use-Path.h19
-rwxr-xr-xtinyMSRP/include/tinymsrp/headers/tmsrp_header_WWW-Authenticate.h33
16 files changed, 178 insertions, 196 deletions
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header.h
index ad574a4..20bf236 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header.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.
*
@@ -49,34 +49,32 @@ typedef int (*tmsrp_header_value_tostring_f)(const struct tmsrp_header_s* header
*
* @brief List of all supported headers.
**/
-typedef enum tmsrp_header_type_e
-{
- tmsrp_htype_Authentication_Info,
- tmsrp_htype_Authorization,
- tmsrp_htype_Byte_Range,
- tmsrp_htype_Content_Type,
- tmsrp_htype_Dummy,
- tmsrp_htype_Expires,
- tmsrp_htype_Failure_Report,
- tmsrp_htype_From_Path,
- tmsrp_htype_Max_Expires,
- tmsrp_htype_Message_ID,
- tmsrp_htype_Min_Expires,
- tmsrp_htype_Status,
- tmsrp_htype_Success_Report,
- tmsrp_htype_To_Path,
- tmsrp_htype_Use_Path,
- tmsrp_htype_WWW_Authenticate
+typedef enum tmsrp_header_type_e {
+ tmsrp_htype_Authentication_Info,
+ tmsrp_htype_Authorization,
+ tmsrp_htype_Byte_Range,
+ tmsrp_htype_Content_Type,
+ tmsrp_htype_Dummy,
+ tmsrp_htype_Expires,
+ tmsrp_htype_Failure_Report,
+ tmsrp_htype_From_Path,
+ tmsrp_htype_Max_Expires,
+ tmsrp_htype_Message_ID,
+ tmsrp_htype_Min_Expires,
+ tmsrp_htype_Status,
+ tmsrp_htype_Success_Report,
+ tmsrp_htype_To_Path,
+ tmsrp_htype_Use_Path,
+ tmsrp_htype_WWW_Authenticate
}
tmsrp_header_type_t;
/*================================
*/
-typedef struct tmsrp_header_s
-{
- TSK_DECLARE_OBJECT;
- tmsrp_header_type_t type;
- tmsrp_header_value_tostring_f tostring;
+typedef struct tmsrp_header_s {
+ TSK_DECLARE_OBJECT;
+ tmsrp_header_type_t type;
+ tmsrp_header_value_tostring_f tostring;
}
tmsrp_header_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Authorization.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Authorization.h
index f671129..6340b9a 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Authorization.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Authorization.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.
*
@@ -36,7 +36,7 @@
TMSRP_BEGIN_DECLS
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP header 'Authorization' as per RFC 3261 subclause .
///
@@ -56,34 +56,33 @@ TMSRP_BEGIN_DECLS
/// dresponse = "response" EQUAL request-digest
/// request-digest = LDQUOT 32LHEX RDQUOT
/// auth-request-uri = not-defined
-///
+///
/// auth-param = auth-param-name EQUAL ( token / quoted-string )
/// auth-param-name = token
-///
+///
/// other-response = auth-scheme LWS auth-param *(COMMA auth-param)
/// auth-scheme = token
/// auts = "auts" EQUAL auts-param
/// auts-param = LDQUOT auts-value RDQUOT
/// auts-value = <base64 encoding of AUTS>
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Authorization_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_Authorization_s {
+ TMSRP_DECLARE_HEADER;
- char* scheme;
- char* username;
- char* realm;
- char* nonce;
- char* uri;
- char* response;
- char* algorithm;
- char* cnonce;
- char* opaque;
- char* qop;
- char* nc;
+ char* scheme;
+ char* username;
+ char* realm;
+ char* nonce;
+ char* uri;
+ char* response;
+ char* algorithm;
+ char* cnonce;
+ char* opaque;
+ char* qop;
+ char* nc;
- tsk_params_L_t *params;
+ tsk_params_L_t *params;
}
tmsrp_header_Authorization_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Byte-Range.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Byte-Range.h
index f3db0e2..7612d31 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Byte-Range.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Byte-Range.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.
*
@@ -40,23 +40,22 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_BYTE_RANGE_IS_VALID(self) ((self) && (self)->start > 0 && (self)->end > 0 && (self)->end > (self)->start)
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Byte-Range' header.
///
/// @par ABNF : Byte-Range = "Byte-Range:" SP range-start "-" range-end "/" total
/// range-start = 1*DIGIT
/// range-end = 1*DIGIT / "*"
-/// total = 1*DIGIT / "*"
+/// total = 1*DIGIT / "*"
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Byte_Range_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_Byte_Range_s {
+ TMSRP_DECLARE_HEADER;
- int64_t start;
- int64_t end;
- int64_t total;
+ int64_t start;
+ int64_t end;
+ int64_t total;
}
tmsrp_header_Byte_Range_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Content-Type.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Content-Type.h
index 465bb80..9c8cfcd 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Content-Type.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Content-Type.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.
*
@@ -38,7 +38,7 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_CONTENT_TYPE_VA_ARGS(type) tmsrp_header_Content_Type_def_t, (const char*)type
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP header 'Content-Type'.
/// @author Mamadou
@@ -50,15 +50,14 @@ TMSRP_BEGIN_DECLS
/// subtype = token
/// gen-param = pname [ "=" pval ]
/// pname = token
-/// pval = token / quoted-string
-///
+/// pval = token / quoted-string
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Content_Type_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_Content_Type_s {
+ TMSRP_DECLARE_HEADER;
- char* value;
- tsk_params_L_t *params;
+ char* value;
+ tsk_params_L_t *params;
}
tmsrp_header_Content_Type_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Dummy.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Dummy.h
index 6c01856..d813487 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Dummy.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Dummy.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.
*
@@ -38,19 +38,18 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_DUMMY_VA_ARGS(name, value) tmsrp_header_Dummy_def_t, (const char*)name, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP Dummy header.
///
/// @par ABNF : hname ":" SP hval CRLF
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Dummy_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_Dummy_s {
+ TMSRP_DECLARE_HEADER;
- char *name;
- char *value;
+ char *name;
+ char *value;
}
tmsrp_header_Dummy_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Expires.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Expires.h
index de715d7..565a1ba 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Expires.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Expires.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.
*
@@ -38,18 +38,17 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_EXPIRES_VA_ARGS(value) tmsrp_header_Expires_def_t, (int64_t)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Expires' header.
///
/// @par ABNF : Expires = "Expires:" SP 1*DIGIT
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Expires_s
-{
- TMSRP_DECLARE_HEADER;
-
- int64_t value;
+typedef struct tmsrp_header_Expires_s {
+ TMSRP_DECLARE_HEADER;
+
+ int64_t value;
}
tmsrp_header_Expires_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Failure-Report.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Failure-Report.h
index 04360e8..b39b2ed 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Failure-Report.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Failure-Report.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.
*
@@ -39,26 +39,24 @@ TMSRP_BEGIN_DECLS
/** Failure report type;
*/
-typedef enum tmsrp_freport_type_e
-{
- freport_yes,
- freport_no,
- freport_partial
+typedef enum tmsrp_freport_type_e {
+ freport_yes,
+ freport_no,
+ freport_partial
}
tmsrp_freport_type_t;
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Failure-Report' header.
///
-/// @par ABNF : "Failure-Report:" ( "yes" / "no" / "partial" )
+/// @par ABNF : "Failure-Report:" ( "yes" / "no" / "partial" )
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Failure_Report_s
-{
- TMSRP_DECLARE_HEADER;
- tmsrp_freport_type_t type;
+typedef struct tmsrp_header_Failure_Report_s {
+ TMSRP_DECLARE_HEADER;
+ tmsrp_freport_type_t type;
}
tmsrp_header_Failure_Report_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_From-Path.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_From-Path.h
index cc994aa..7998eed 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_From-Path.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_From-Path.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.
*
@@ -40,19 +40,18 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_FROM_PATH_VA_ARGS(uri) tmsrp_header_From_Path_def_t, (const tmsrp_uri_t*)uri
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'From-Path' header.
///
/// @par ABNF : "To-Path:" SP MSRP-URI *( SP MSRP-URI )
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_From_Path_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_From_Path_s {
+ TMSRP_DECLARE_HEADER;
- tmsrp_uri_t *uri;
- tmsrp_uris_L_t *otherURIs;
+ tmsrp_uri_t *uri;
+ tmsrp_uris_L_t *otherURIs;
}
tmsrp_header_From_Path_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Max-Expires.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Max-Expires.h
index 07c0adf..c990c12 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Max-Expires.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Max-Expires.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.
*
@@ -38,18 +38,17 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_MAX_EXPIRES_VA_ARGS(value) tmsrp_header_Max_Expires_def_t, (int64_t)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Max-Expires' header.
///
/// @par ABNF : Max-Expires = "Max-Expires:" SP 1*DIGIT
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Max_Expires_s
-{
- TMSRP_DECLARE_HEADER;
-
- int64_t value;
+typedef struct tmsrp_header_Max_Expires_s {
+ TMSRP_DECLARE_HEADER;
+
+ int64_t value;
}
tmsrp_header_Max_Expires_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Message-ID.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Message-ID.h
index 4862d58..8b9078a 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Message-ID.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Message-ID.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.
*
@@ -38,7 +38,7 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_MESSAGE_ID_VA_ARGS(value) tmsrp_header_Message_ID_def_t, (const char*)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Message-Id' header.
///
@@ -47,11 +47,10 @@ TMSRP_BEGIN_DECLS
/// ident-char = ALPHANUM / "." / "-" / "+" / "%" / "="
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Message_ID_s
-{
- TMSRP_DECLARE_HEADER;
-
- char *value;
+typedef struct tmsrp_header_Message_ID_s {
+ TMSRP_DECLARE_HEADER;
+
+ char *value;
}
tmsrp_header_Message_ID_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Min-Expires.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Min-Expires.h
index 7607d71..5c07f44 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Min-Expires.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Min-Expires.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.
*
@@ -38,18 +38,17 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_MIN_EXPIRES_VA_ARGS(value) tmsrp_header_Min_Expires_def_t, (int64_t)value
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Min-Expires' header.
///
/// @par ABNF : Min-Expires = "Min-Expires:" SP 1*DIGIT
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Min_Expires_s
-{
- TMSRP_DECLARE_HEADER;
-
- int64_t value;
+typedef struct tmsrp_header_Min_Expires_s {
+ TMSRP_DECLARE_HEADER;
+
+ int64_t value;
}
tmsrp_header_Min_Expires_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Status.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Status.h
index f571a69..d992b68 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Status.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Status.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.
*
@@ -38,22 +38,21 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_STATUS_VA_ARGS(namespace, code, reason) tmsrp_header_Status_def_t, (short)namespace, (short)code, (const char*)reason
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Status' header.
///
/// @par ABNF : Status = "Status:" SP namespace SP status-code [SP text-reason]
/// namespace = 3(DIGIT) ; "000" for all codes defined in RFC 4975
-/// text-reason = utf8text
+/// text-reason = utf8text
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Status_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_Status_s {
+ TMSRP_DECLARE_HEADER;
- short _namespace;
- short code;
- char* reason;
+ short _namespace;
+ short code;
+ char* reason;
}
tmsrp_header_Status_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Success-Report.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Success-Report.h
index 4b79372..19f58a2 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Success-Report.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Success-Report.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.
*
@@ -38,17 +38,16 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_SUCCESS_REPORT_VA_ARGS(isSuccess) tmsrp_header_Success_Report_def_t, (tsk_bool_t)isSuccess
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Success-Report' header.
///
/// @par ABNF : "Success-Report:" ( "yes" / "no" )
///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Success_Report_s
-{
- TMSRP_DECLARE_HEADER;
- unsigned yes:1;
+typedef struct tmsrp_header_Success_Report_s {
+ TMSRP_DECLARE_HEADER;
+ unsigned yes:1;
}
tmsrp_header_Success_Report_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_To-Path.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_To-Path.h
index 59e0c56..0f4b967 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_To-Path.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_To-Path.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.
*
@@ -40,19 +40,18 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_TO_PATH_VA_ARGS(uri) tmsrp_header_To_Path_def_t, (const tmsrp_uri_t*)uri
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'To-Path' header.
///
/// @par ABNF : "To-Path:" SP MSRP-URI *( SP MSRP-URI )
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_To_Path_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_To_Path_s {
+ TMSRP_DECLARE_HEADER;
- tmsrp_uri_t *uri;
- tmsrp_uris_L_t *otherURIs;
+ tmsrp_uri_t *uri;
+ tmsrp_uris_L_t *otherURIs;
}
tmsrp_header_To_Path_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Use-Path.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Use-Path.h
index b819724..2c9237e 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Use-Path.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_Use-Path.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.
*
@@ -40,19 +40,18 @@ TMSRP_BEGIN_DECLS
#define TMSRP_HEADER_USE_PATH_VA_ARGS(uri) tmsrp_header_Use_Path_def_t, (const tmsrp_uri_t*)uri
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP 'Use-Path' header.
///
/// @par ABNF : "Use-Path:" SP MSRP-URI *( SP MSRP-URI )
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_Use_Path_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_Use_Path_s {
+ TMSRP_DECLARE_HEADER;
- tmsrp_uri_t *uri;
- tmsrp_uris_L_t *otherURIs;
+ tmsrp_uri_t *uri;
+ tmsrp_uris_L_t *otherURIs;
}
tmsrp_header_Use_Path_t;
diff --git a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_WWW-Authenticate.h b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_WWW-Authenticate.h
index d620928..6d4cfc8 100755
--- a/tinyMSRP/include/tinymsrp/headers/tmsrp_header_WWW-Authenticate.h
+++ b/tinyMSRP/include/tinymsrp/headers/tmsrp_header_WWW-Authenticate.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.
*
@@ -37,7 +37,7 @@ TMSRP_BEGIN_DECLS
////////////////////////////////////////////////////////////////////////////////////////////////////
-/// @struct
+/// @struct
///
/// @brief MSRP header 'WWW-Authenticate'.
///
@@ -53,22 +53,21 @@ TMSRP_BEGIN_DECLS
/// stale = "stale" EQUAL ( "true" / "false" )
/// qop-options = "qop" EQUAL LDQUOT qop-value *("," qop-value) RDQUOT
/// qop-value = "auth" / "auth-int" / token
-///
+///
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct tmsrp_header_WWW_Authenticate_s
-{
- TMSRP_DECLARE_HEADER;
+typedef struct tmsrp_header_WWW_Authenticate_s {
+ TMSRP_DECLARE_HEADER;
- char* scheme;
- char* realm;
- char* domain;
- char* nonce;
- char* opaque;
- unsigned stale:1;
- char* algorithm;
- char* qop;
+ char* scheme;
+ char* realm;
+ char* domain;
+ char* nonce;
+ char* opaque;
+ unsigned stale:1;
+ char* algorithm;
+ char* qop;
- tsk_params_L_t* params;
+ tsk_params_L_t* params;
}
tmsrp_header_WWW_Authenticate_t;
OpenPOWER on IntegriCloud