summaryrefslogtreecommitdiffstats
path: root/tinySMS/include/tinysms/rpdu/tsms_rpdu.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinySMS/include/tinysms/rpdu/tsms_rpdu.h')
-rwxr-xr-xtinySMS/include/tinysms/rpdu/tsms_rpdu.h54
1 files changed, 25 insertions, 29 deletions
diff --git a/tinySMS/include/tinysms/rpdu/tsms_rpdu.h b/tinySMS/include/tinysms/rpdu/tsms_rpdu.h
index 4c2b704..c73ca84 100755
--- a/tinySMS/include/tinysms/rpdu/tsms_rpdu.h
+++ b/tinySMS/include/tinysms/rpdu/tsms_rpdu.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,16 +37,15 @@
TSMS_BEGIN_DECLS
/** @a RP-DATA as per 3GPP TS 24.011 section 7.3.1. */
-typedef struct tsms_rpdu_data_s
-{
- TSMS_DECLARE_RPDU_MESSAGE;
-
- // section 8.2.5.1
- tsms_address_t *oa;
- //section 8.2.5.2
- tsms_address_t *da;
- // section 8.2.5.3
- tsk_buffer_t* udata;
+typedef struct tsms_rpdu_data_s {
+ TSMS_DECLARE_RPDU_MESSAGE;
+
+ // section 8.2.5.1
+ tsms_address_t *oa;
+ //section 8.2.5.2
+ tsms_address_t *da;
+ // section 8.2.5.3
+ tsk_buffer_t* udata;
}
tsms_rpdu_data_t;
@@ -101,9 +100,8 @@ TINYSMS_API tsms_rpdu_data_t* tsms_rpdu_data_create(uint8_t mr, const tsms_addre
TINYSMS_GEXTERN const tsk_object_def_t *tsms_rpdu_data_def_t;
/** RP-SMMA as per 3GPP TS 24.011 section 7.3.2. */
-typedef struct tsms_rpdu_smma_s
-{
- TSMS_DECLARE_RPDU_MESSAGE;
+typedef struct tsms_rpdu_smma_s {
+ TSMS_DECLARE_RPDU_MESSAGE;
}
tsms_rpdu_smma_t;
@@ -128,12 +126,11 @@ TINYSMS_API tsms_rpdu_smma_t* tsms_rpdu_smma_create(uint8_t mr);
TINYSMS_GEXTERN const tsk_object_def_t *tsms_rpdu_smma_def_t;
/** RP-ACK as per 3GPP TS 24.011 section 7.3.3. */
-typedef struct tsms_rpdu_ack_s
-{
- TSMS_DECLARE_RPDU_MESSAGE;
+typedef struct tsms_rpdu_ack_s {
+ TSMS_DECLARE_RPDU_MESSAGE;
- // section 8.2.5.3
- tsk_buffer_t* udata;
+ // section 8.2.5.3
+ tsk_buffer_t* udata;
}
tsms_rpdu_ack_t;
@@ -184,14 +181,13 @@ TINYSMS_API tsms_rpdu_ack_t* tsms_rpdu_ack_create(uint8_t mr, const tsms_tpdu_me
TINYSMS_GEXTERN const tsk_object_def_t *tsms_rpdu_ack_def_t;
/** RP-ERROR as per 3GPP TS 24.011 section 7.3.4. */
-typedef struct tsms_rpdu_error_s
-{
- TSMS_DECLARE_RPDU_MESSAGE;
-
- // section 8.2.5.4
- uint8_t cause [3]; //2-3o
- // section 8.2.5.3
- tsk_buffer_t* udata;
+typedef struct tsms_rpdu_error_s {
+ TSMS_DECLARE_RPDU_MESSAGE;
+
+ // section 8.2.5.4
+ uint8_t cause [3]; //2-3o
+ // section 8.2.5.3
+ tsk_buffer_t* udata;
}
tsms_rpdu_error_t;
OpenPOWER on IntegriCloud