summaryrefslogtreecommitdiffstats
path: root/tinySMS
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 /tinySMS
parent7908865936604036e6f200f1b5e069f8752f3a3a (diff)
downloaddoubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip
doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz
-
Diffstat (limited to 'tinySMS')
-rw-r--r--tinySMS/Doxyfile1690
-rw-r--r--tinySMS/Makefile.am34
-rw-r--r--tinySMS/droid-makefile41
-rw-r--r--tinySMS/footer.html7
-rw-r--r--tinySMS/header.html38
-rw-r--r--tinySMS/images/SMS_Architecture.pngbin0 -> 12130 bytes
-rw-r--r--tinySMS/include/tinysms.h33
-rw-r--r--tinySMS/include/tinysms/rpdu/tsms_rpdu.h249
-rw-r--r--tinySMS/include/tinysms/tpdu/tsms_tpdu_command.h134
-rw-r--r--tinySMS/include/tinysms/tpdu/tsms_tpdu_deliver.h126
-rw-r--r--tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h119
-rw-r--r--tinySMS/include/tinysms/tpdu/tsms_tpdu_status_report.h187
-rw-r--r--tinySMS/include/tinysms/tpdu/tsms_tpdu_submit.h130
-rw-r--r--tinySMS/include/tinysms/tsms.h40
-rw-r--r--tinySMS/include/tinysms/tsms_address.h127
-rw-r--r--tinySMS/include/tinysms/tsms_common.h209
-rw-r--r--tinySMS/include/tinysms/tsms_etsi_gsm_03_38.h168
-rw-r--r--tinySMS/include/tinysms/tsms_packing.h49
-rw-r--r--tinySMS/include/tinysms_config.h80
-rw-r--r--tinySMS/installdox.sh1
-rw-r--r--tinySMS/src/rpdu/tsms_rpdu.c611
-rw-r--r--tinySMS/src/tpdu/tsms_tpdu_command.c275
-rw-r--r--tinySMS/src/tpdu/tsms_tpdu_deliver.c263
-rw-r--r--tinySMS/src/tpdu/tsms_tpdu_report.c284
-rw-r--r--tinySMS/src/tpdu/tsms_tpdu_status_report.c327
-rw-r--r--tinySMS/src/tpdu/tsms_tpdu_submit.c317
-rw-r--r--tinySMS/src/tsms.c453
-rw-r--r--tinySMS/src/tsms_address.c249
-rw-r--r--tinySMS/src/tsms_common.c417
-rw-r--r--tinySMS/src/tsms_packing.c343
-rw-r--r--tinySMS/test/droid-makefile28
-rw-r--r--tinySMS/test/stdafx.c26
-rw-r--r--tinySMS/test/stdafx.h41
-rw-r--r--tinySMS/test/targetver.h14
-rw-r--r--tinySMS/test/test.c104
-rw-r--r--tinySMS/test/test.vcproj227
-rw-r--r--tinySMS/test/test_packing.h140
-rw-r--r--tinySMS/test/test_rpdu.h272
-rw-r--r--tinySMS/test/test_tpdu.h250
-rw-r--r--tinySMS/tinySMS.pc.in14
-rw-r--r--tinySMS/tinySMS.sln44
-rw-r--r--tinySMS/tinySMS.tag3104
-rw-r--r--tinySMS/tinySMS.vcproj307
-rw-r--r--tinySMS/version.rc102
-rw-r--r--tinySMS/winrt/tinySMS.sln39
-rw-r--r--tinySMS/winrt/tinySMS.vcxproj185
-rw-r--r--tinySMS/winrt/tinySMS.vcxproj.filters103
47 files changed, 12001 insertions, 0 deletions
diff --git a/tinySMS/Doxyfile b/tinySMS/Doxyfile
new file mode 100644
index 0000000..87ae4d8
--- /dev/null
+++ b/tinySMS/Doxyfile
@@ -0,0 +1,1690 @@
+# Doxyfile 1.7.2
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME = tinySMS
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = 1.0
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = docs
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF = "The $name class" \
+ "The $name widget" \
+ "The $name file" \
+ is \
+ provides \
+ specifies \
+ contains \
+ represents \
+ a \
+ an \
+ the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH = /Users/dimitri/doxygen/mail/1.5.7/doxywizard/
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful if your file system
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 8
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given extension.
+# Doxygen has a built-in mapping, but you can override or extend it using this
+# tag. The format is ext=language, where ext is a file extension, and language
+# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C,
+# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make
+# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C
+# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions
+# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also makes the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter
+# and setter methods for a property. Setting this option to YES (the default)
+# will make doxygen replace the get and set methods by a property in the
+# documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# determine which symbols to keep in memory and which to flush to disk.
+# When the cache is full, less often used symbols will be written to disk.
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penality.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will roughly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespaces are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = YES
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+# will list include files with double quotes in the documentation
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
+# will sort the (brief and detailed) documentation of class members so that
+# constructors and destructors are listed first. If set to NO (the default)
+# the constructors will appear in the respective orders defined by
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or macro consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and macros in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 62
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+# This will remove the Files entry from the Quick Index and from the
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Namespaces page. This will remove the Namespaces entry from the Quick Index
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. The create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option.
+# You can optionally specify a file name after the option, if omitted
+# DoxygenLayout.xml will be used as the name of the layout file.
+
+LAYOUT_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = NO
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# The WARN_NO_PARAMDOC option can be enabled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = src \
+ include
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
+# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
+# *.f90 *.f *.vhd *.vhdl
+
+FILE_PATTERNS = *.c \
+ *.cc \
+ *.cxx \
+ *.cpp \
+ *.c++ \
+ *.java \
+ *.ii \
+ *.ixx \
+ *.ipp \
+ *.i++ \
+ *.inl \
+ *.h \
+ *.hh \
+ *.hxx \
+ *.hpp \
+ *.h++ \
+ *.idl \
+ *.odl \
+ *.cs \
+ *.php \
+ *.php3 \
+ *.inc \
+ *.m \
+ *.mm \
+ *.dox \
+ *.py \
+ *.f90 \
+ *.f \
+ *.vhd \
+ *.vhdl \
+ *.asm
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH = images
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# is applied to all files.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = YES
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code. Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = NO
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header.
+
+HTML_HEADER = header.html
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER = footer.html
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET =
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
+# Doxygen will adjust the colors in the stylesheet and background images
+# according to this color. Hue is specified as an angle on a colorwheel,
+# see http://en.wikipedia.org/wiki/Hue for more information.
+# For instance the value 0 represents red, 60 is yellow, 120 is green,
+# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
+# The allowed range is 0 to 359.
+
+HTML_COLORSTYLE_HUE = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
+# the colors in the HTML output. For a value of 0 the output will use
+# grayscales only. A value of 255 will produce the most vivid colors.
+
+HTML_COLORSTYLE_SAT = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
+# the luminance component of the colors in the HTML output. Values below
+# 100 gradually make the output lighter, whereas values above 100 make
+# the output darker. The value divided by 100 is the actual gamma applied,
+# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
+# and 100 does not change the gamma.
+
+HTML_COLORSTYLE_GAMMA = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP = YES
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded. For this to work a browser that supports
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
+# for more information.
+
+GENERATE_DOCSET = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
+# can be grouped.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify
+# the documentation publisher. This should be a reverse domain-name style
+# string, e.g. com.mycompany.MyDocSet.documentation.
+
+DOCSET_PUBLISHER_ID = org.doxygen.Publisher
+
+# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
+
+DOCSET_PUBLISHER_NAME = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file
+# content.
+
+CHM_INDEX_ENCODING =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated
+# that can be used as input for Qt's qhelpgenerator to generate a
+# Qt Compressed Help (.qch) of the generated HTML documentation.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
+# add. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">
+# Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's
+# filter section matches.
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">
+# Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS =
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
+# .qhp file.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
+# will be generated, which together with the HTML files, form an Eclipse help
+# plugin. To install this plugin and make it available under the help contents
+# menu in Eclipse, the contents of the directory containing the HTML and XML
+# files needs to be copied into the plugins directory of eclipse. The name of
+# the directory within the plugins directory should be the same as
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
+# the help appears.
+
+GENERATE_ECLIPSEHELP = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have
+# this name.
+
+ECLIPSE_DOC_ID = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it.
+
+DISABLE_INDEX = NO
+
+# This tag can be used to set the number of enum values (range [0,1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+# Note that a value of 0 will completely suppress the enum values from
+# appearing in the overview section.
+
+ENUM_VALUES_PER_LINE = 4
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information.
+# If the tag value is set to YES, a side panel will be generated
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+# Windows users are probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW = NO
+
+# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
+# and Class Hierarchy pages using a tree view instead of an ordered list.
+
+USE_INLINE_TREES = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open
+# links to external symbols imported via tag files in a separate window.
+
+EXT_LINKS_IN_WINDOW = NO
+
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE = 10
+
+# Use the FORMULA_TRANPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are
+# not supported properly for IE 6.0, but are supported on all modern browsers.
+# Note that when changing this option you need to delete any form_*.png files
+# in the HTML output before the changes have effect.
+
+FORMULA_TRANSPARENT = YES
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
+# (see http://www.mathjax.org) which uses client side Javascript for the
+# rendering instead of using prerendered bitmaps. Use this if you do not
+# have LaTeX installed or if you want to formulas look prettier in the HTML
+# output. When enabled you also need to install MathJax separately and
+# configure the path to it using the MATHJAX_RELPATH option.
+
+USE_MATHJAX = NO
+
+# When MathJax is enabled you need to specify the location relative to the
+# HTML output directory using the MATHJAX_RELPATH option. The destination
+# directory should contain the MathJax.js script. For instance, if the mathjax
+# directory is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to the
+# mathjax.org site, so you can quickly see the result without installing
+# MathJax, but it is strongly recommended to install a local copy of MathJax
+# before deployment.
+
+MATHJAX_RELPATH = http://www.mathjax.org/mathjax
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box
+# for the HTML output. The underlying search engine uses javascript
+# and DHTML and should work on any modern browser. Note that when using
+# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
+# (GENERATE_DOCSET) there is already a search function so this one should
+# typically be disabled. For large projects the javascript based search engine
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE = NO
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a PHP enabled web server instead of at the web client
+# using Javascript. Doxygen will generate the search PHP script and index
+# file to put on the web server. The advantage of the server
+# based approach is that it scales better to large projects and allows
+# full text search. The disadvantages are that it is more difficult to setup
+# and does not have live searching capabilities.
+
+SERVER_BASED_SEARCH = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+# Note that when enabling USE_PDFLATEX this option is only used for
+# generating bitmaps for formulas in the HTML output, but not in the
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include
+# source code with syntax highlighting in the LaTeX output.
+# Note that which sources are shown also depends on other settings
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
+# does not have to be run to correct the links.
+# Note that each tag file must have a unique name
+# (where the name does NOT include the path)
+# If a tag file is not located in the directory in which doxygen
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES = ../tinySAK/tinySAK.tag=http://doubango.org/API/tinySAK
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE = tinySMS.tag
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = NO
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option also works with HAVE_DOT disabled, but it is recommended to
+# install and use dot, since it yields more powerful graphs.
+
+CLASS_DIAGRAMS = NO
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
+# allowed to run in parallel. When set to 0 (the default) doxygen will
+# base this on the number of processors available in the system. You can set it
+# explicitly to a value larger than 0 to get control over the balance
+# between CPU load and processing speed.
+
+DOT_NUM_THREADS = 0
+
+# By default doxygen will write a font called FreeSans.ttf to the output
+# directory and reference it in all dot files that doxygen generates. This
+# font does not include all possible unicode characters however, so when you need
+# these (or just want a differently looking font) you can specify the font name
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+# which can be done by putting it in a standard location or by setting the
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+# containing the font.
+
+DOT_FONTNAME = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The default size is 10pt.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the output directory to look for the
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+# different font using DOT_FONTNAME you can set the path where dot
+# can find it using this tag.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH = YES
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH = YES
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will generate a graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are png, jpg, or gif.
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the
+# \mscfile command).
+
+MSCFILE_DIRS =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
diff --git a/tinySMS/Makefile.am b/tinySMS/Makefile.am
new file mode 100644
index 0000000..4035844
--- /dev/null
+++ b/tinySMS/Makefile.am
@@ -0,0 +1,34 @@
+lib_LTLIBRARIES = libtinySMS.la
+libtinySMS_la_LIBADD = ../tinySAK/libtinySAK.la
+libtinySMS_la_CPPFLAGS = -I../tinySAK/src -Iinclude
+
+libtinySMS_la_SOURCES = \
+ src/tsms.c\
+ src/tsms_address.c\
+ src/tsms_common.c\
+ src/tsms_packing.c
+
+libtinySMS_la_SOURCES += src/rpdu/tsms_rpdu.c
+
+libtinySMS_la_SOURCES += src/tpdu/tsms_tpdu_command.c\
+ src/tpdu/tsms_tpdu_deliver.c\
+ src/tpdu/tsms_tpdu_report.c\
+ src/tpdu/tsms_tpdu_status_report.c\
+ src/tpdu/tsms_tpdu_submit.c
+
+libtinySMS_la_LDFLAGS = $LDFLAGS -no-undefined
+if TARGET_OS_IS_ANDROID
+libtinySMS_la_LDFLAGS += -static
+endif
+
+_includedir = $(includedir)/tinysms
+_include_HEADERS = include/*.h
+__includedir = $(includedir)/tinysms/tinysms
+__include_HEADERS = include/tinysms/*.h
+rpdu_includedir = $(includedir)/tinysms/tinysms/rpdu
+rpdu_include_HEADERS = include/tinysms/rpdu/*.h
+tpdu_includedir = $(includedir)/tinysms/tinysms/tpdu
+tpdu_include_HEADERS = include/tinysms/tpdu/*.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = tinySMS.pc \ No newline at end of file
diff --git a/tinySMS/droid-makefile b/tinySMS/droid-makefile
new file mode 100644
index 0000000..1fbea1d
--- /dev/null
+++ b/tinySMS/droid-makefile
@@ -0,0 +1,41 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I./include
+LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH)
+
+all: $(APP)
+
+OBJS = \
+ src/tsms.o\
+ src/tsms_address.o\
+ src/tsms_common.o\
+ src/tsms_packing.o
+
+ ### rpdu
+OBJS += src/rpdu/tsms_rpdu.o
+
+ ### tpdu
+OBJS += src/tpdu/tsms_tpdu_command.o\
+ src/tpdu/tsms_tpdu_deliver.o\
+ src/tpdu/tsms_tpdu_report.o\
+ src/tpdu/tsms_tpdu_status_report.o\
+ src/tpdu/tsms_tpdu_submit.o
+
+
+$(APP): $(OBJS)
+ifeq ($(EXT), a)
+ $(AR) rcs $@ $^
+else
+ $(CC) $(LDFLAGS) -o $@ $^
+endif
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb remount
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
diff --git a/tinySMS/footer.html b/tinySMS/footer.html
new file mode 100644
index 0000000..49e8b25
--- /dev/null
+++ b/tinySMS/footer.html
@@ -0,0 +1,7 @@
+<html>
+<head></head>
+<body>
+<hr>
+<b>doubango project - tinySMS 1.0</b> - Copyright (C) 2009-2010 Mamadou DIOP. All rights reserved. Licensed under the terms of the GNU General Public License v3.
+</body>
+</html> \ No newline at end of file
diff --git a/tinySMS/header.html b/tinySMS/header.html
new file mode 100644
index 0000000..05a458f
--- /dev/null
+++ b/tinySMS/header.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>doubango - tinySMS</title>
+ <link rel="stylesheet" href="http://www.doubango.org/css.css" type="text/css" />
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+ <link href="doxygen.css" rel="stylesheet" type="text/css"/>
+ <meta name="Keywords" content="doubango, 3GPP IMS/LTE framework, open source, SIP, RFC 3261, 3GPP TS 24.229, VoIP, MMTel, IPTV, 4G, LTE, XCAP, MSRP, IPSec, SigComp, One Voice " />
+ <meta name="Description" content="cross-platform and open source 3GPP NGN/IMS framework for embedded devices such as Android, Symbian, iPhone, Windows Mobile or uLinux." />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+
+<style type="text/css">
+/*<![CDATA[*/
+ p.c1 {text-align: center;}
+/*]]>*/
+</style>
+</head>
+
+<body>
+ <div id="left">
+ <div id="border">
+ <div id="logo">
+ <p class="companyname">
+ tinySMS</p>
+ </div>
+ <div id="menu">
+ <a href="/index.html" title="Homepage">Home</a> <a href="/gettingstarted.html" title="Getting Started">
+ Getting Started</a> <a href="http://code.google.com/p/doubango/source/checkout" title="Source Code"
+ target="_blank">Source Code</a> <a href="/apiref.html" title="API Reference">API Reference</a> <a href="contact.html" title="Contact">
+ Contact</a>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+
diff --git a/tinySMS/images/SMS_Architecture.png b/tinySMS/images/SMS_Architecture.png
new file mode 100644
index 0000000..ed79b47
--- /dev/null
+++ b/tinySMS/images/SMS_Architecture.png
Binary files differ
diff --git a/tinySMS/include/tinysms.h b/tinySMS/include/tinysms.h
new file mode 100644
index 0000000..d3f69ee
--- /dev/null
+++ b/tinySMS/include/tinysms.h
@@ -0,0 +1,33 @@
+/*
+* 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.
+*
+*/
+#include "tinysms/tsms_packing.h"
+
+// SM-RL
+#include "tinysms/rpdu/tsms_rpdu.h"
+
+// SM-TL
+#include "tinysms/tpdu/tsms_tpdu_submit.h"
+#include "tinysms/tpdu/tsms_tpdu_deliver.h"
+#include "tinysms/tpdu/tsms_tpdu_report.h"
+#include "tinysms/tpdu/tsms_tpdu_command.h"
+#include "tinysms/tpdu/tsms_tpdu_status_report.h"
+
diff --git a/tinySMS/include/tinysms/rpdu/tsms_rpdu.h b/tinySMS/include/tinysms/rpdu/tsms_rpdu.h
new file mode 100644
index 0000000..4c2b704
--- /dev/null
+++ b/tinySMS/include/tinysms/rpdu/tsms_rpdu.h
@@ -0,0 +1,249 @@
+/*
+* 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 tsms_rpdu.h
+ * @brief SMS RPDU encoder/decoder as per 3GPP TS 23.011.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_RPDU_H
+#define TINYSMS_TSMS_RPDU_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_common.h"
+
+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;
+}
+tsms_rpdu_data_t;
+
+/** cast any pointer to @ref tsms_rpdu_data_t* */
+#define TSMS_RPDU_DATA(self) ((tsms_rpdu_data_t*)(self))
+
+TINYSMS_API tsms_rpdu_data_t* tsms_rpdu_data_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_tpdu_message_t* tpdu, tsk_bool_t MobOrig);
+
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_data_create_mo
+* Creates a Mobile Originated @a RP-DATA message.
+* @a RP-DATA messages are use to relay the TPDUs.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.1.
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param smsc The address of the SMSC. e.g. "+331253688".
+* @param tpdu A Pointer to the @a TP-Message to relay.
+* @retval Mobile Originated @a RP-DATA message.
+* @sa @ref tsms_rpdu_data_create_mt<br>@ref tsms_rpdu_data_create
+*
+* See For more information, see @ref tsms_rpdu_group_DATA "RP-DATA".
+*/
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_data_create_mt
+* Creates a Mobile Terminated @a RP-DATA message.
+* @a RP-DATA messages are use to relay the TPDUs.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.1.
+* @param mr RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param smsc The address of the SMSC. e.g. "+331253688".
+* @param tpdu A Pointer to the @a TP-Message to relay.
+* @retval Mobile Terminated RP-DATA message.
+* @sa @ref tsms_rpdu_data_create_mo<br>@ref tsms_rpdu_data_create
+*
+* See For more information, see @ref tsms_rpdu_group_DATA "RP-DATA".
+*/
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_data_serialize
+* Serialize a @a RP-DATA message as binary content.
+* @param self A pointer to the @a RP-DATA message to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @sa @ref tsms_rpdu_message_serialize
+*
+* See For more information, see @ref tsms_rpdu_group_DATA "RP-DATA".
+*/
+#define tsms_rpdu_data_create_mo(mr, smsc, tpdu) tsms_rpdu_data_create(mr, smsc, tpdu, tsk_true)
+#define tsms_rpdu_data_create_mt(mr, smsc, tpdu) tsms_rpdu_data_create(mr, smsc, tpdu, tsk_false)
+#define tsms_rpdu_data_serialize(self, output) tsms_rpdu_message_serialize(TSMS_RPDU_MESSAGE(self), output)
+
+// set tpdu
+
+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;
+}
+tsms_rpdu_smma_t;
+
+/** cast any pointer to @ref tsms_rpdu_smma_t* */
+#define TSMS_RPDU_SMMA(self) ((tsms_rpdu_smma_t*)(self))
+
+TINYSMS_API tsms_rpdu_smma_t* tsms_rpdu_smma_create(uint8_t mr);
+
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_smma_serialize
+* Serialize a @a RP-SMMA message as binary content.
+* @param self A pointer to the @a RP-SMMA message to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @sa @ref tsms_rpdu_message_serialize
+*
+* See For more information, see @ref tsms_rpdu_group_SMMA "RP-SMMA".
+*/
+#define tsms_rpdu_smma_serialize(self, output) tsms_rpdu_message_serialize(TSMS_RPDU_MESSAGE(self), output)
+
+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;
+
+ // section 8.2.5.3
+ tsk_buffer_t* udata;
+}
+tsms_rpdu_ack_t;
+
+/** cast any pointer to @ref tsms_rpdu_ack_t* */
+#define TSMS_RPDU_ACK(self) ((tsms_rpdu_ack_t*)(self))
+
+TINYSMS_API tsms_rpdu_ack_t* tsms_rpdu_ack_create(uint8_t mr, const tsms_tpdu_message_t* tpdu, tsk_bool_t MobOrig);
+
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_ack_create_mo
+* Creates a Mobile Originated @a RP-ACK message.
+* @a RP-ACK is sent between the MSC and the mobile station in both directions and used to relay the acknowledgement of a RP-DATA or RP-SMMA message reception.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.3
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param tpdu A Pointer to the @a TP-Message to include as RP-User data.
+* @retval Mobile Originated @a RP-ACK message.
+* @sa @ref tsms_rpdu_ack_create_mt<br>@ref tsms_rpdu_ack_create
+*
+* See For more information, see @ref tsms_rpdu_group_ACK "RP-ACK".
+*/
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_ack_create_mt
+* Creates a Mobile Terminated @a RP-ACK message.
+* @a RP-ACK is sent between the MSC and the mobile station in both directions and used to relay the acknowledgement of a RP-DATA or RP-SMMA message reception.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.3
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param tpdu A Pointer to the @a TP-Message to include as RP-User data.
+* @retval Mobile Terminated @a RP-ACK message.
+* @sa @ref tsms_rpdu_ack_create_mo<br>@ref tsms_rpdu_ack_create
+*
+* See For more information, see @ref tsms_rpdu_group_ACK "RP-ACK".
+*/
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_ack_serialize
+* Serialize a @a RP-ACK message as binary content.
+* @param self A pointer to the @a RP-ACK message to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @sa @ref tsms_rpdu_message_serialize
+*
+* See For more information, see @ref tsms_rpdu_group_ACK "RP-ACK".
+*/
+#define tsms_rpdu_ack_create_mo(mr, tpdu) tsms_rpdu_ack_create(mr, tpdu, tsk_true)
+#define tsms_rpdu_ack_create_mt(mr, tpdu) tsms_rpdu_ack_create(mr, tpdu, tsk_false)
+#define tsms_rpdu_ack_serialize(self, output) tsms_rpdu_message_serialize(TSMS_RPDU_MESSAGE(self), output)
+
+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;
+}
+tsms_rpdu_error_t;
+
+/** cast any pointer to @ref tsms_rpdu_error_t* */
+#define TSMS_RPDU_ERROR(self) ((tsms_rpdu_error_t*)(self))
+
+TINYSMS_API tsms_rpdu_error_t* tsms_rpdu_error_create(uint8_t mr, const tsms_tpdu_message_t* tpdu, uint8_t cause, tsk_bool_t MobOrig);
+
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_error_create_mo
+* Creates a Mobile Originated @a RP-ERROR message.
+* @a RP-ERROR is sent between the MSC and the mobile station in both directions and used to relay an error cause from an erroneous short message or notification transfer attempt.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.4.
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param tpdu A Pointer to the @a TP-Message to include as RP-User data.
+* @param cause RP-Cause value as per 3GPP TS 24.011 section 8.2.5.4.
+* @retval Mobile Originated @a RP-ERROR message.
+* @sa @ref tsms_rpdu_error_create_mt<br>@ref tsms_rpdu_error_create
+*
+* See For more information, see @ref tsms_rpdu_group_ERROR "RP-ERROR".
+*/
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_error_create_mt
+* Creates a Mobile Terminated @a RP-ERROR message.
+* @a RP-ERROR is sent between the MSC and the mobile station in both directions and used to relay an error cause from an erroneous short message or notification transfer attempt.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.4.
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param tpdu A Pointer to the @a TP-Message to include as RP-User data.
+* @param cause RP-Cause value as per 3GPP TS 24.011 section 8.2.5.4.
+* @retval Mobile Terminated @a RP-ERROR message.
+* @sa @ref tsms_rpdu_error_create_mo<br>@ref tsms_rpdu_error_create
+*
+* See For more information, see @ref tsms_rpdu_group_ERROR "RP-ERROR".
+*/
+/**@ingroup tsms_rpdu_group
+* @def tsms_rpdu_error_serialize
+* Serialize a @a RP-ERROR message as binary content.
+* @param self A pointer to the @a RP-ERROR message to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @sa @ref tsms_rpdu_message_serialize
+*
+* See For more information, see @ref tsms_rpdu_group_ERROR "RP-ERROR".
+*/
+#define tsms_rpdu_error_create_mo(mr, tpdu, cause) tsms_rpdu_error_create(mr, tpdu, cause, tsk_true)
+#define tsms_rpdu_error_create_mt(mr, tpdu, cause) tsms_rpdu_error_create(mr, tpdu, cause, tsk_false)
+#define tsms_rpdu_error_serialize(self, output) tsms_rpdu_message_serialize(TSMS_RPDU_MESSAGE(self), output)
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_rpdu_error_def_t;
+
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_RPDU_H */
diff --git a/tinySMS/include/tinysms/tpdu/tsms_tpdu_command.h b/tinySMS/include/tinysms/tpdu/tsms_tpdu_command.h
new file mode 100644
index 0000000..655dc00
--- /dev/null
+++ b/tinySMS/include/tinysms/tpdu/tsms_tpdu_command.h
@@ -0,0 +1,134 @@
+/*
+* 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 tsms_tpdu_command.h
+ * @brief SMS TPDU SMS-COMMAND message as per 3GPP TS 23.040 section 9.2.2.4.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_TPDU_COMMAND_H
+#define TINYSMS_TSMS_TPDU_COMMAND_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_common.h"
+
+TSMS_BEGIN_DECLS
+
+/** TP-Command-Type (TP-CT) as per 3GPP TS 23.040 section 9.2.3.19.
+* An 8-bit field.
+*/
+typedef enum tsms_tpdu_cmd_e
+{
+ tsms_tpdu_cmd_rel = 0x00, /**< Enquiry relating to previously submitted short message. */
+ tsms_tpdu_cmd_cancel = 0x01, /**< Cancel Status Report Request relating to previously submitted short message. */
+ tsms_tpdu_cmd_delete = 0x02, /**< Delete previously submitted Short Message. */
+ tsms_tpdu_cmd_enable_status = 0x03, /**< Enable Status Report Request relating to previously submitted short message. */
+ /* 00000100..00011111 ==> Reserved */
+ /* 11100000..11111111 ==> Values specific for each SC */
+}
+tsms_tpdu_cmd_t;
+
+
+/** SMS TPDU SMS-COMMAND message as per 3GPP TS 23.040 section 9.2.2.4.
+*/
+typedef struct tsms_tpdu_command_s
+{
+ TSMS_DECLARE_TPDU_MESSAGE;
+
+ tsms_address_t* smsc;
+
+ /** TP-User-Data-Header-Indication (O - 1b)
+ * Parameter indicating that the TP-CD field contains a Header. */
+ unsigned udhi:1;
+ /** TP Status Report Request (O - 1b)
+ * Parameter indicating if the SMS Command is requesting a status report. */
+ unsigned srr:1;
+ /** TP Message Reference (M - I)
+ * Parameter identifying the SMS COMMAND. */
+ uint8_t mr;
+ /** TP Protocol Identifier (M - o)
+ * Parameter identifying the above layer protocol, if any. */
+ //(base)uint8_t pid;
+ /** TP Command Type (M - o)
+ * Parameter specifying which operation is to be performed on a SM.
+ * See section 9.2.3.19 */
+ tsms_tpdu_cmd_t ct;
+ /** TP Message Number (M - o)
+ * Parameter indicating which SM in the SC to operate on.
+ * See section 9.2.3.18 */
+ uint8_t mn;
+ /** TP Destination Address (M - 2-12o)
+ * Parameter indicating the Destination Address to which the TP Command refers. */
+ tsms_address_t* da;
+ /** TP Command Data Length (M - o)
+ * Parameter indicating the length of the TP-CD field in octets. */
+ //(base)uint8_t cdl;
+ /** TP Command Data (O - o)
+ * Parameter containing user data. */
+ //(base)uint8_t cd;
+}
+tsms_tpdu_command_t;
+
+/** cast any pointer to @ref tsms_tpdu_command_t* */
+#define TSMS_TPDU_COMMAND(self) ((tsms_tpdu_command_t*)(self))
+
+TINYSMS_API tsms_tpdu_command_t* tsms_tpdu_command_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest, uint8_t msg_num, tsms_tpdu_cmd_t cmd);
+
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_command_serialize
+* Serializes a @a SMS-COMMAND message as binary content.
+* @param self A pointer to the @a SMS-COMMAND (@ref tsms_tpdu_command_t) message to serialize.
+* @param output A pointer to the output buffer. Should be valid.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_COMMAND "SMS-COMMAND".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_command_tohexastring
+* Serializes a @a SMS-COMMAND message as hexa-string content.
+* @param self A pointer to the @a SMS-COMMAND (@ref tsms_tpdu_command_t) message to serialize.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_COMMAND "SMS-COMMAND".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_command_set_cmddata
+* Sets the content of the @a SMS-COMMAND message.
+* @param self A pointer to the @a SMS-COMMAND (@ref tsms_tpdu_command_t).
+* @param cdata A pointer to the content.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_COMMAND "SMS-COMMAND".
+*/
+#define tsms_tpdu_command_serialize(self, output) tsms_tpdu_message_serialize(TSMS_TPDU_MESSAGE(self), output, tsk_true)
+#define tsms_tpdu_command_tostring(self) tsms_tpdu_message_tostring(TSMS_TPDU_MESSAGE(self), tsk_true)
+#define tsms_tpdu_command_tohexastring(self) tsms_tpdu_message_tohexastring(TSMS_TPDU_MESSAGE(self), tsk_true)
+#define tsms_tpdu_command_set_cmddata(self, cdata) tsms_tpdu_message_set_userdata(TSMS_TPDU_MESSAGE(self), cdata, tsms_alpha_8bit)
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_tpdu_command_def_t;
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_TPDU_COMMAND_H */
diff --git a/tinySMS/include/tinysms/tpdu/tsms_tpdu_deliver.h b/tinySMS/include/tinysms/tpdu/tsms_tpdu_deliver.h
new file mode 100644
index 0000000..6413bda
--- /dev/null
+++ b/tinySMS/include/tinysms/tpdu/tsms_tpdu_deliver.h
@@ -0,0 +1,126 @@
+/*
+* 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 tsms_tpdu_deliver.h
+ * @brief SMS TPDU SMS-DELIVER message as per 3GPP TS 23.040 section 9.2.2.1.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_TPDU_DELIVER_H
+#define TINYSMS_TSMS_TPDU_DELIVER_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_common.h"
+
+
+TSMS_BEGIN_DECLS
+
+/** SMS TPDU SMS-DELIVER message as per 3GPP TS 23.040 section 9.2.2.1.
+*/
+typedef struct tsms_tpdu_deliver_s
+{
+ TSMS_DECLARE_TPDU_MESSAGE;
+
+ tsms_address_t* smsc;
+
+ /** TP More Messages to Send (M - 1b)
+ * Parameter indicating whether or not there are more messages to send. */
+ unsigned mms:1;
+ /** TP-Loop-Prevention (O - 1b)
+ * Parameter indicating that SMS applications should inhibit forwarding or automatic message generation that could cause infinite looping. */
+ unsigned lp:2;
+ /** TP Reply Path (M - 1b)
+ * Parameter indicating the request for Reply Path.
+ Section 9.2.3.28 */
+ unsigned rp:1;
+ /** TP User Data Header Indicator (O - 1b)
+ * Parameter indicating that the TP UD field contains a Header. */
+ unsigned udhi:1;
+ /** TP Status Report Indicator (O - 1b)
+ * Parameter indicating if the SME has requested a status report. */
+ unsigned sri:1;
+ /** TP Originating Address (M - 2-12o)
+ * Address of the originating SME. */
+ tsms_address_t* oa;
+ /** TP Protocol Identifier (M - o)
+ * Parameter identifying the above layer protocol, if any. */
+ //(base)uint8_t pid;
+ /** TP Data Coding Scheme (M - o)
+ * Parameter identifying the coding scheme within the TP-User-Data. */
+ //(base)uint8_t dcs;
+ /** TP Service Centre Time Stamp (M - 7o)
+ * Parameter identifying time when the SC received the message. */
+ uint8_t scts[7];
+ /** TP User Data Length (M - I)
+ * Parameter indicating the length of the TP User Data field to follow. */
+ //(base)uint8_t udl;
+ /** TP User Data (O - v)
+ * User data. */
+ //(base)tsk_buffer_t* ud;
+}
+tsms_tpdu_deliver_t;
+
+/** cast any pointer to @ref tsms_tpdu_deliver_t* */
+#define TSMS_TPDU_DELIVER(self) ((tsms_tpdu_deliver_t*)(self))
+
+TINYSMS_API tsms_tpdu_deliver_t* tsms_tpdu_deliver_create(const tsms_address_string_t smsc, const tsms_address_string_t orig);
+
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_deliver_serialize
+* Serializes a @a SMS-DELIVER message as binary content.
+* @param self A pointer to the @a SMS-DELIVER (@ref tsms_tpdu_deliver_t) message to serialize.
+* @param output A pointer to the output buffer. Should be valid.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_DELIVER "SMS-DELIVER".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_deliver_tohexastring
+* Serializes a @a SMS-DELIVER message as hexa-string content.
+* @param self A pointer to the @a SMS-DELIVER (@ref tsms_tpdu_deliver_t) message to serialize.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_DELIVER "SMS-DELIVER".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_deliver_set_userdata
+* Sets the content of the @a SMS-DELIVER message.
+* @param self A pointer to the @a SMS-DELIVER (@ref tsms_tpdu_deliver_t).
+* @param udata A pointer to the content.
+* @param alpha The alphabet used to encode the content.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_DELIVER "SMS-DELIVER".
+*/
+#define tsms_tpdu_deliver_serialize(self, output) tsms_tpdu_message_serialize(TSMS_TPDU_MESSAGE(self), output, tsk_false)
+#define tsms_tpdu_deliver_tostring(self) tsms_tpdu_message_tostring(TSMS_TPDU_MESSAGE(self), tsk_false)
+#define tsms_tpdu_deliver_tohexastring(self) tsms_tpdu_message_tohexastring(TSMS_TPDU_MESSAGE(self), tsk_false)
+#define tsms_tpdu_deliver_set_userdata(self, udata, alpha) tsms_tpdu_message_set_userdata(TSMS_TPDU_MESSAGE(self), udata, alpha)
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_tpdu_deliver_def_t;
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_TPDU_DELIVER_H */
diff --git a/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h b/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h
new file mode 100644
index 0000000..0eb1874
--- /dev/null
+++ b/tinySMS/include/tinysms/tpdu/tsms_tpdu_report.h
@@ -0,0 +1,119 @@
+/*
+* 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 tsms_tpdu_report.h
+ * @brief SMS TPDU SMS-DELIVER-REPORT and SMS-SUBMIT-REPORT message as per 3GPP TS 23.040 section 9.2.2.1a and 9.2.2.2a.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_TPDU_REPORT_H
+#define TINYSMS_TSMS_TPDU_REPORT_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_common.h"
+
+
+TSMS_BEGIN_DECLS
+
+/** SMS TPDU SMS-DELIVER-REPORT or SMS-SUBMIT-REPORT
+* message as per 3GPP TS 23.040 section 9.2.2.1a or 9.2.2.2a.
+*/
+typedef struct tsms_tpdu_report_s
+{
+ TSMS_DECLARE_TPDU_MESSAGE;
+
+ tsms_address_t* smsc;
+
+ /** Indicates whether the Report is for RP-ERROR or not (RP-ACK).*/
+ tsk_bool_t error;
+
+ /** TP-User-Data-Header-Indication (O - 1b)
+ * Parameter indicating that the TP-UD field contains a Header. */
+ unsigned udhi:1;
+ /** TP Failure Cause (M - I)
+ * Parameter indicating the reason for SMS DELIVER/SUBMIT failure.
+ See clause 9.2.3.22 */
+ uint8_t fcs;
+ /** TP Parameter Indicator (M - o)
+ * Parameter indicating the presence of any of the optional parameters which follow. */
+ uint8_t pi;
+ /** TP Service Centre Time Stamp (M - 7o)
+ * Parameter identifying the time when the SC received the SMS DELIVER/SUBMIT.
+ * See clause 9.2.3.11. */
+ uint8_t scts[7];
+ /** TP Protocol Identifier (O - o)
+ * See clause 9.2.3.9. */
+ //(base)uint8_t pid;
+ /** TP Data Coding Scheme (O - o)
+ * See clause 9.2.3.10. */
+ //(base)uint8_t dcs;
+ /** TP User Data Length (O- o)
+ * See clause 9.2.3.16. */
+ //(base)uint8_t udl;
+ /** TP User Data (O - v)
+ * User data. */
+ //(base)tsk_buffer_t* ud;
+}
+tsms_tpdu_report_t;
+
+/** cast any pointer to @ref tsms_tpdu_report_t* */
+#define TSMS_TPDU_REPORT(self) ((tsms_tpdu_report_t*)(self))
+
+TINYSMS_API tsms_tpdu_report_t* tsms_tpdu_report_create(const tsms_address_string_t smsc, tsk_bool_t submit, tsk_bool_t error);
+TINYSMS_API int tsms_tpdu_report_set_fcs(tsms_tpdu_report_t* self, uint8_t code);
+
+#define TSMS_TPDU_REPORT_IS_MO(self) (TSMS_TPDU_MESSAGE(self)->mti == tsms_tpdu_mti_deliver_report_mo)
+
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_report_serialize
+* Serializes a @a SMS-DELIVER-REPORT or @a SMS-SUBMIT-REPORT message as binary content.
+* @param self A pointer to the @a SMS-DELIVER-REPORT or @a SMS-SUBMIT-REPORT (@ref tsms_tpdu_report_t) message to serialize.
+* @param output A pointer to the output buffer. Should be valid.
+* @retval Zero if succeed and non-zero error code otherwise.
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_report_tohexastring
+* Serializes a @a SMS-DELIVER-REPORT or @a SMS-SUBMIT-REPORT message as hexa-string content.
+* @param self A pointer to the @a SMS-DELIVER-REPORT or @a SMS-SUBMIT-REPORTT (@ref tsms_tpdu_report_t) message to serialize.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_report_set_userdata
+* Sets the content of the @a SMS-DELIVER-REPORT or @a SMS-SUBMIT-REPORT message.
+* @param self A pointer to the @a SMS-DELIVER-REPORT or @a SMS-SUBMIT-REPORT (@ref tsms_tpdu_report_t).
+* @param udata A pointer to the content.
+* @param alpha The alphabet used to encode the content.
+* @retval Zero if succeed and non-zero error code otherwise.
+*/
+#define tsms_tpdu_report_serialize(self, output) tsms_tpdu_message_serialize(TSMS_TPDU_MESSAGE(self), output, TSMS_TPDU_REPORT_IS_MO(self))
+#define tsms_tpdu_report_tostring(self) tsms_tpdu_message_tostring(TSMS_TPDU_MESSAGE(self), TSMS_TPDU_REPORT_IS_MO(self))
+#define tsms_tpdu_report_tohexastring(self) tsms_tpdu_message_tohexastring(TSMS_TPDU_MESSAGE(self), TSMS_TPDU_REPORT_IS_MO(self))
+#define tsms_tpdu_report_set_userdata(self, udata, alpha) tsms_tpdu_message_set_userdata(TSMS_TPDU_MESSAGE(self), udata, alpha)
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_tpdu_report_def_t;
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_TPDU_REPORT_H */
diff --git a/tinySMS/include/tinysms/tpdu/tsms_tpdu_status_report.h b/tinySMS/include/tinysms/tpdu/tsms_tpdu_status_report.h
new file mode 100644
index 0000000..001127d
--- /dev/null
+++ b/tinySMS/include/tinysms/tpdu/tsms_tpdu_status_report.h
@@ -0,0 +1,187 @@
+/*
+* 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 tsms_tpdu_status_report.h
+ * @brief SMS TPDU SMS-STATUS-REPORT message as per 3GPP TS 23.040 section 9.2.2.3.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_TPDU_STATUS_REPORT_H
+#define TINYSMS_TSMS_TPDU_STATUS_REPORT_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_common.h"
+
+
+TSMS_BEGIN_DECLS
+
+/** 3GPP TS 23.040 v910 section 9.2.3.15 (TP-ST).
+* Used in SMS-STATUS-REPORT message.
+*/
+typedef enum tsms_tpdu_status_type_e
+{
+ /*== Short message transaction completed ==*/
+ tsms_tpdu_status_received = 0x00, /**< Short message received by the SME. */
+ tsms_tpdu_status_forwarded = 0x01, /**< Short message forwarded by the SC to the SME but the SC is unable to confirm delivery. */
+ tsms_tpdu_status_replaced = 0x02, /**< Short message replaced by the SC. */
+ /* 0000011..0001111 Reserved */
+ /* 0010000..0011111 Values specific to each SC */
+
+ /*== Temporary error, SC still trying to transfer SM ==*/
+ tsms_tpdu_status_congestion = 0x20, /**< Congestion. */
+ tsms_tpdu_status_busy = 0x21, /**< ME busy. */
+ tsms_tpdu_status_no_response = 0x22, /**< No response from SME. */
+ tsms_tpdu_status_serv_rejected = 0x23, /**< Service rejected. */
+ tsms_tpdu_status_no_qos = 0x24, /**< Quality of service not available. */
+ tsms_tpdu_status_error_in_sme= 0x25, /**< Error in SME. */
+ /* 0100110..0101111 Reserved */
+ /* 0110000..0111111 Values specific to each SC */
+
+ /*== Permanent error, SC is not making any more transfer attempts ==*/
+ tsms_tpdu_status_remote_error = 0x40, /**< Remote procedure error. */
+ tsms_tpdu_status_incompatible_dest = 0x41, /**< Incompatible destination. */
+ tsms_tpdu_status_conn_rejected = 0x42, /**< Connection rejected by SME. */
+ tsms_tpdu_status_not_obtainable = 0x43, /**< Not obtainable. */
+ tsms_tpdu_status_no_qos_2 = 0x44, /**< Quality of service not available. */
+ tsms_tpdu_status_no_inter_avail = 0x45, /**< No interworking available. */
+ tsms_tpdu_status_vp_expired = 0x46, /**< SM Validity Period Expired. */
+ tsms_tpdu_status_deleted_by_orig = 0x47, /**< SM Deleted by originating SME. */
+ tsms_tpdu_status_deleted_by_admin = 0x48, /**< SM Deleted by SC Administration. */
+ tsms_tpdu_status_sm_not_exist = 0x49, /**< SM does not exist (The SM may have previously existed in the SC but the SC no longer has knowledge of it or the SM may never have previously existed in the SC). */
+ /* 1001010..1001111 Reserved */
+ /* 1010000..1011111 Values specific to each SC */
+
+ /*== Temporary error, SC is not making any more transfer attempts ==*/
+ tsms_tpdu_status_congestion_3 = 0x50, /**< Congestion. */
+ tsms_tpdu_status_busy_3 = 0x51, /**< SME busy. */
+ tsms_tpdu_status_no_response_3 = 0x52, /**< No response from SME. */
+ tsms_tpdu_status_serv_rejected_3 = 0x53, /**< Service rejected. */
+ tsms_tpdu_status_temp_no_qos_3 = 0x54, /**< Quality of service not available. */
+ tsms_tpdu_status_error_in_sme_3 = 0x55, /**< Error in SME. */
+ /* 1100110..1101001 Reserved */
+ /* 1101010..1101111 Reserved */
+ /* 1110000..1111111 Values specific to each SC */
+
+}
+tsms_tpdu_status_type_t;
+
+/** SMS TPDU SMS-STATUS-REPORT message as per 3GPP TS 23.040 section 9.2.2.3.
+*/
+typedef struct tsms_tpdu_status_report_s
+{
+ TSMS_DECLARE_TPDU_MESSAGE;
+
+ tsms_address_t* smsc;
+
+ /** TP User Data Header Indicator (O - 1b)
+ * Parameter indicating that the TP UD field contains a Header. */
+ unsigned udhi:1;
+ /** TP More Messages to Send (M - 1b)
+ * Parameter indicating whether or not there are more messages to send. */
+ unsigned mms:1;
+ /** TP-Loop-Prevention (O - 1b)
+ * Parameter indicating that SMS applications should inhibit forwarding or automatic message generation that could cause infinite looping.
+ Section 9.2.3.28 */
+ unsigned lp:1;
+ /** TP Status Report Qualifier (M - 1b)
+ * Parameter indicating whether the previously submitted TPDU was an SMS-SUBMIT or an SMS COMMAND. */
+ unsigned srq:1;
+ /** TP Message Reference (M - I)
+ * Parameter identifying the previously submitted SMS SUBMIT or SMS COMMAND.
+ * See section 9.2.3.26. */
+ unsigned mr;
+ /** TP Recipient Address (M - 2-12o)
+ * Address of the recipient of the previously submitted mobile originated short message. */
+ tsms_address_t* ra;
+ /** TP Service Centre Time Stamp (M - 7o)
+ * Parameter identifying time when the SC received the previously sent SMS SUBMIT. */
+ uint8_t scts[7];
+ /** TP Discharge Time (M 7o)
+ * Parameter identifying the time associated with a particular TP ST outcome. */
+ uint8_t dt[7];
+ /** TP Status (M - o)
+ * Parameter identifying the status of the previously sent mobile originated short message. */
+ tsms_tpdu_status_type_t st;
+ /** TP-Parameter-Indicator (O - o)
+ * Parameter indicating the presence of any of the optional parameters which follow. */
+ uint8_t pi;
+ /** TP Protocol Identifier (O - o)
+ * See clause 9.2.3.9. TP-PID of original SMS-SUBMIT. */
+ //(base)uint8_t pid;
+ /** TP Data Coding Scheme (O - o)
+ * See clause 9.2.3.10. */
+ //(base)uint8_t dcs;
+ /** TP User Data Length (O- o)
+ * See clause 9.2.3.16. */
+ //(base)uint8_t udl;
+ /** TP User Data (O - v)
+ * User data. See clause 9.2.3.24. */
+ //(base)uint8_t* ud;
+}
+tsms_tpdu_status_report_t;
+
+/** cast any pointer to @ref tsms_tpdu_status_report_t* */
+#define TSMS_TPDU_STATUS_REPORT(self) ((tsms_tpdu_status_report_t*)(self))
+
+TINYSMS_API tsms_tpdu_status_report_t* tsms_tpdu_status_report_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t recipient, tsms_tpdu_status_type_t status, tsk_bool_t submit);
+
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_status_report_serialize
+* Serializes a @a SMS-STATUS-REPORT message as binary content.
+* @param self A pointer to the @a SMS-STATUS-REPORT (@ref tsms_tpdu_status_report_t) message to serialize.
+* @param output A pointer to the output buffer. Should be valid.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_STATUS_REPORT "SMS-STATUS-REPORT".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_status_report_tohexastring
+* Serializes a @a SMS-STATUS-REPORT message as hexa-string content.
+* @param self A pointer to the @a SMS-STATUS-REPORT (@ref tsms_tpdu_status_report_t) message to serialize.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_STATUS_REPORT "SMS-STATUS-REPORT".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_status_report_set_userdata
+* Sets the content of the @a SMS-STATUS-REPORT message.
+* @param self A pointer to the @a SMS-STATUS-REPORT (@ref tsms_tpdu_status_report_t).
+* @param udata A pointer to the content.
+* @param alpha The alphabet used to encode the content.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_STATUS_REPORT "SMS-STATUS-REPORT".
+*/
+#define tsms_tpdu_status_report_serialize(self, output) tsms_tpdu_message_serialize(TSMS_TPDU_MESSAGE(self), output, tsk_false)
+#define tsms_tpdu_status_report_tostring(self) tsms_tpdu_message_tostring(TSMS_TPDU_MESSAGE(self), tsk_false)
+#define tsms_tpdu_status_report_tohexastring(self) tsms_tpdu_message_tohexastring(TSMS_TPDU_MESSAGE(self), tsk_false)
+#define tsms_tpdu_status_report_set_userdata(self, udata, alpha) tsms_tpdu_message_set_userdata(TSMS_TPDU_MESSAGE(self), udata, alpha)
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_tpdu_status_report_def_t;
+
+TSMS_END_DECLS
+
+
+#endif /* TINYSMS_TSMS_TPDU_STATUS_REPORT_H */
diff --git a/tinySMS/include/tinysms/tpdu/tsms_tpdu_submit.h b/tinySMS/include/tinysms/tpdu/tsms_tpdu_submit.h
new file mode 100644
index 0000000..4191a8f
--- /dev/null
+++ b/tinySMS/include/tinysms/tpdu/tsms_tpdu_submit.h
@@ -0,0 +1,130 @@
+/*
+* 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 tsms_tpdu_submit.h
+ * @brief SMS TPDU SMS-SUBMIT (MO) message as per 3GPP TS 23.040 section 9.2.2.2.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_TPDU_SUBMIT_H
+#define TINYSMS_TSMS_TPDU_SUBMIT_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_common.h"
+
+TSMS_BEGIN_DECLS
+
+
+/** SMS @a SMS-SUBMIT message as per 3GPP TS 23.040 section 9.2.2.2
+*/
+typedef struct tsms_tpdu_submit_s
+{
+ TSMS_DECLARE_TPDU_MESSAGE;
+
+ tsms_address_t* smsc;
+
+ /** TP Reject Duplicates (M - 1b)
+ * Parameter indicating whether or not the SC shall accept an SMS SUBMIT for an
+ * SM still held in the SC which has the same TP MR and the same TP DA as a
+ * previously submitted SM from the same OA. */
+ unsigned rd:1;
+ /** TP Validity Period Format (M - 2b)
+ * Parameter indicating whether or not the TP VP field is present. */
+ tsms_tpdu_vpf_t vpf;
+ /** TP Reply Path (M - 1b)
+ * Parameter indicating the request for Reply Path. */
+ unsigned rp:1;
+ /** TP User Data Header Indicator (O - 1b)
+ * Parameter indicating that the TP UD field contains a Header. */
+ unsigned udhi:1;
+ /** TP Status Report Request (O - 1b)
+ * Parameter indicating if the MS is requesting a status report. */
+ unsigned srr:1;
+ /** TP Message Reference (M - I)
+ * Parameter identifying the SMS SUBMIT. */
+ uint8_t mr;
+ /** TP Destination Address (M - 2-12o)
+ * Address of the destination SME. */
+ tsms_address_t* da;
+ /** TP Protocol Identifier (M - o)
+ * Parameter identifying the above layer protocol, if any. */
+ //(base)uint8_t pid;
+ /** TP Data Coding Scheme (M - o)
+ * Parameter identifying the coding scheme within the TP User Data. */
+ //(base)uint8_t dcs;
+ /** TP Validity Period (O - o/7o)
+ * Parameter identifying the time from where the message is no longer valid. */
+ uint8_t vp[7];
+ /** TP User Data Length (M - I)
+ * Parameter indicating the length of the TP User Data field to follow. */
+ //(base)uint8_t udl;
+ /** TP User Data (O - v)
+ * User data. */
+ //(base)tsk_buffer_t* ud;
+}
+tsms_tpdu_submit_t;
+
+/** cast any pointer to tsms_tpdu_submit_t* */
+#define TSMS_TPDU_SUBMIT(self) ((tsms_tpdu_submit_t*)(self))
+
+TINYSMS_API tsms_tpdu_submit_t* tsms_tpdu_submit_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest);
+
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_submit_serialize
+* Serializes a @a SMS-SUBMIT message as binary content.
+* @param self A pointer to the @a SMS-SUBMIT (@ref tsms_tpdu_submit_t) message to serialize.
+* @param output A pointer to the output buffer. Should be valid.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_SUBMIT "SMS-SUBMIT".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_submit_tohexastring
+* Serializes a @a SMS-SUBMIT message as hexa-string content.
+* @param self A pointer to the @a SMS-SUBMIT (@ref tsms_tpdu_submit_t) message to serialize.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_SUBMIT "SMS-SUBMIT".
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_submit_set_userdata
+* Sets the content of the @a SMS-SUBMIT message.
+* @param self A pointer to the @a SMS-SUBMIT (@ref tsms_tpdu_submit_t).
+* @param udata A pointer to the content.
+* @param alpha The alphabet used to encode the content.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* See For more information, see @ref tsms_tpdu_group_SUBMIT "SMS-SUBMIT".
+*/
+#define tsms_tpdu_submit_serialize(self, output) tsms_tpdu_message_serialize(TSMS_TPDU_MESSAGE(self), output, tsk_true)
+#define tsms_tpdu_submit_tostring(self) tsms_tpdu_message_tostring(TSMS_TPDU_MESSAGE(self), tsk_true)
+#define tsms_tpdu_submit_tohexastring(self) tsms_tpdu_message_tohexastring(TSMS_TPDU_MESSAGE(self), tsk_true)
+#define tsms_tpdu_submit_set_userdata(self, udata, alpha) tsms_tpdu_message_set_userdata(TSMS_TPDU_MESSAGE(self), udata, alpha)
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_tpdu_submit_def_t;
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_TPDU_SUBMIT_H */
diff --git a/tinySMS/include/tinysms/tsms.h b/tinySMS/include/tinysms/tsms.h
new file mode 100644
index 0000000..fb11185
--- /dev/null
+++ b/tinySMS/include/tinysms/tsms.h
@@ -0,0 +1,40 @@
+/*
+* 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 tsms.h
+ * @brief SMS over IP Networks.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_H
+#define TINYSMS_TSMS_H
+
+#include "tinysms_config.h"
+
+TSMS_BEGIN_DECLS
+
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_H */
diff --git a/tinySMS/include/tinysms/tsms_address.h b/tinySMS/include/tinysms/tsms_address.h
new file mode 100644
index 0000000..f71589f
--- /dev/null
+++ b/tinySMS/include/tinysms/tsms_address.h
@@ -0,0 +1,127 @@
+/*
+* 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 tsms_address.h
+ * @brief SMS address encoder/decoder.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_ADDRESS_H
+#define TINYSMS_TSMS_ADDRESS_H
+
+#include "tinysms_config.h"
+
+#include "tsk_buffer.h"
+
+TSMS_BEGIN_DECLS
+
+typedef uint8_t tsms_address_string_t[13]; /* 12 + (+) */
+
+/** Address type
+*/
+typedef enum tsms_address_type_e
+{
+ tsms_addr_oa,
+ tsms_addr_da,
+ tsms_addr_smsc,
+}
+tsms_address_type_t;
+
+/** Type-of-number
+* 3GPP TS 23.040 v910 section 9.1.2.5.
+*/
+typedef enum tsms_address_ton_e
+{
+ /** "Unknown" is used when the user or network has no a priori information about the numbering plan. In
+ this case, the Address-Value field is organized according to the network dialling plan, e.g. prefix or
+ escape digits might be present.*/
+ tsms_addr_ton_unknown = 0x00, // 0b000
+ /** International number
+ The international format shall be accepted also when the message is destined to a recipient in the
+ same country as the MSC. */
+ tsms_addr_ton_international = 0x01, // 0b001
+ /** National number
+ Prefix or escape digits shall not be included */
+ tsms_addr_ton_national = 0x02, // 0b010
+ /** "Network specific number" is used to indicate administration/service number specific to the serving
+ network, e.g. used to access an operator. */
+ tsms_addr_ton_network_specific = 0x03, // 0b011
+ /** "Subscriber number" is used when a specific short number representation is stored in one or more
+ SCs as part of a higher layer application. (Note that "Subscriber number" shall only be used in
+ connection with the proper PID referring to this application). */
+ tsms_addr_ton_subscriber = 0x04, // 0b100
+ /** Alphanumeric, (coded according to GSM TS 03.38 7-bit default alphabet) */
+ tsms_addr_ton_alphanumeric = 0x05, // 0b101
+ /** Abbreviated number */
+ tsms_addr_ton_abbreviated = 0x06, // 0b110
+ /** Reserved for extension */
+ tsms_addr_ton_reserved = 0x07, // 0b111
+}
+tsms_address_ton_t;
+
+/** Numbering-Plan-Identification
+* 3GPP TS 23.040 v910 section 9.1.2.5.
+*/
+typedef enum tsms_address_npi_e
+{
+ /* 0000 */ tsms_addr_npi_unknown = 0x00, /**< Unknown */
+ /* 0001 */ tsms_addr_npi_isdn = 0x01, /**< ISDN/telephone numbering plan (E.164/E.163) */
+ /* 0011 */ tsms_addr_npi_x121 = 0x03, /**< Data numbering plan (X.121) */
+ /* 0100 */ tsms_addr_npi_telex = 0x04, /**< Telex numbering plan */
+ /* 1000 */ tsms_addr_npi_national = 0x08, /**< National numbering plan */
+ /* 1001 */ tsms_addr_npi_private = 0x09, /**< Private numbering plan */
+ /* 1010 */ tsms_addr_npi_ermes = 0x0A, /**< ERMES numbering plan (ETSI DE/PS 3 01-3) */
+ /* 1111 */ tsms_addr_npi_reserved = 0x0F, /**< Reserved for extension */
+}
+tsms_address_npi_t;
+
+/** Address
+*/
+typedef struct tsms_address_s
+{
+ TSK_DECLARE_OBJECT;
+
+ // Address Type
+ tsms_address_ton_t ton; /**< Type-of-number */
+ tsms_address_npi_t npi; /**< Numbering-Plan-Identification */
+
+ tsms_address_type_t type;
+ char* digits; /* BCD digits */
+}
+tsms_address_t;
+
+int tsms_address_serialize(const tsms_address_t* address, tsk_buffer_t* output);
+tsms_address_t* tsms_address_deserialize(const void* data, tsk_size_t size, tsms_address_type_t xtype, tsk_size_t *length);
+
+
+tsms_address_t* tsms_address_create(const tsms_address_string_t digits, tsms_address_type_t type);
+tsms_address_t* tsms_address_oa_create(const tsms_address_string_t digits);
+tsms_address_t* tsms_address_da_create(const tsms_address_string_t digits);
+tsms_address_t* tsms_address_smsc_create(const tsms_address_string_t digits);
+
+TINYSMS_GEXTERN const tsk_object_def_t *tsms_address_def_t;
+
+TSMS_END_DECLS
+
+#endif /* TSMS_BEGIN_DECLS */
diff --git a/tinySMS/include/tinysms/tsms_common.h b/tinySMS/include/tinysms/tsms_common.h
new file mode 100644
index 0000000..38bef53
--- /dev/null
+++ b/tinySMS/include/tinysms/tsms_common.h
@@ -0,0 +1,209 @@
+/*
+* 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 tsms_common.h
+ * @brief SMS Commons (3GPP TS 23.038 and al.).
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_COMMON_H
+#define TINYSMS_TSMS_COMMON_H
+
+#include "tinysms_config.h"
+
+#include "tinysms/tsms_address.h"
+
+#include "tsk_buffer.h"
+
+TSMS_BEGIN_DECLS
+
+/** SMS alphabet values as per 3GPP TS 23.038 v911 section 4.
+* Part of TP-DCS (SMS Data Coding Scheme).
+*/
+typedef enum tsms_alphabet_e
+{
+ /*11*/ tsms_alpha_reserved = 0x03,
+ /*00*/ tsms_alpha_7bit = 0x00,
+ /*01*/ tsms_alpha_8bit = 0x01,
+ /*10*/ tsms_alpha_ucs2 = 0x02
+}
+tsms_alphabet_t;
+
+/* 3GPP TS 23.038 v911 section 4 */
+#define TSMS_ALPHA_FROM_DCS(dcs) (((dcs) & 0x0C) >> 2) /* Bit3 and Bit2 */
+
+
+/* ======================== TPDU ========================
+=========================================================*/
+
+/** 3GPP TS 23.040 - 9.2.3.1 TP Message Type Indicator (TP MTI) */
+typedef enum tsms_tpdu_mti_e
+{
+ /*0 0*/ tsms_tpdu_mti_deliver_mt = 0x00, /**< SMS-DELIVER (in the direction SC to MS)*/
+ /*0 0*/ tsms_tpdu_mti_deliver_report_mo = 0x00, /**< SMS-DELIVER-REPORT (in the direction MS to SC)*/
+ /*1 0*/ tsms_tpdu_mti_status_report_mt = 0x02, /**< SMS-STATUS-REPORT (in the direction SC to MS)*/
+ /*1 0*/ tsms_tpdu_mti_command_mo = 0x02, /**< SMS-COMMAND (in the direction MS to SC)*/
+ /*0 1*/ tsms_tpdu_mti_submit_mo = 0x01, /**< SMS-SUBMIT (in the direction MS to SC)*/
+ /*0 1*/ tsms_tpdu_mti_submit_report_mt = 0x01, /**< SMS-SUBMIT-REPORT (in the direction SC to MS)*/
+ /*1 1*/ tsms_tpdu_mti_reserved = 0x03 /**< Reserved*/
+}
+tsms_tpdu_mti_t;
+
+#define TSMS_TPDU_MTI_IS_RESERVED(mti) ((mti) == tsms_tpdu_mti_reserved)
+#define TSMS_TPDU_MTI_IS_MO(mti) (((mti) == tsms_tpdu_mti_deliver_report_mo) || ((mti) == tsms_tpdu_mti_command_mo) || ((mti) == tsms_tpdu_mti_submit_mo))
+
+/** 3GPP TS 23.040 - 9.2.3.1 TP Message Type Indicator (TP MTI) */
+typedef enum tsms_tpdu_vpf_e
+{
+ // Bit4 and Bit3
+ /*0 0*/ tsms_tpdu_vpf_not_present = 0x00, /**< TP VP field not present */
+ /*1 0*/ tsms_tpdu_vpf_relative = 0x02, /**< TP VP field present - relative format*/
+ /*0 1*/ tsms_tpdu_vpf_enhanced = 0x01, /**< TP-VP field present - enhanced format */
+ /*1 1*/ tsms_tpdu_vpf_absolute = 0x03, /**< TP VP field present - absolute format */
+}
+tsms_tpdu_vpf_t;
+
+/** SM-TL base type as per 3GPP TS 23.040 section 9.2.
+*/
+typedef struct tsms_tpdu_message_s
+{
+ TSK_DECLARE_OBJECT;
+
+ tsk_bool_t MobOrig;
+
+ /** TP Message Type Indicator (TP MTI) as per TS 23.040 section 9.2.3.1. 2-bit field. */
+ tsms_tpdu_mti_t mti;
+ /** TP Protocol Identifier (M - o)
+ * Parameter identifying the above layer protocol, if any. */
+ uint8_t pid;
+ /** TP Data Coding Scheme (M - o)
+ * Parameter identifying the coding scheme within the TP-User-Data. */
+ uint8_t dcs;
+ /** TP User Data Length (M - I)
+ * Parameter indicating the length of the TP User Data field to follow. */
+ uint8_t udl;
+ /** TP User Data (O - v)
+ * User data. */
+ tsk_buffer_t* ud;
+}
+tsms_tpdu_message_t;
+
+#define TSMS_DECLARE_TPDU_MESSAGE tsms_tpdu_message_t tpdu
+#define TSMS_TPDU_MESSAGE(self) ((tsms_tpdu_message_t*)(self))
+
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_message_serialize_mo
+* Serialize an outgoing (MS to SC) @a TP-Message as binary content.
+* @param self The @a TP-Message (any SMS-*) to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_message_serialize_mt
+* Serialize an incoming (SC to MS) @a TP-Message as binary content.
+* @param self The @a TP-Message (SMS-SUBMIT, SMS-DELIVER, SMS-COMMAND ...) to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_message_deserialize_mo
+* Deserialize the outgoing (MO to SC) binary content as a @a TP-Message.
+* @param data A pointer to the binary data.
+* @param size The size of the buffer holding the binary data.
+* @retval @ref tsms_tpdu_message_t if succeed and Null otherwise.
+*/
+/**@ingroup tsms_tpdu_group
+* @def tsms_tpdu_message_deserialize_mt
+* Deserialize the incoming (SC to MS) binary content as a @a TP-Message.
+* @param data A pointer to the binary data.
+* @param size The size of the buffer holding the binary data.
+* @retval @ref tsms_tpdu_message_t if succeed and Null otherwise.
+*/
+
+int tsms_tpdu_message_init(tsms_tpdu_message_t* self, tsms_tpdu_mti_t mti);
+TINYSMS_API int tsms_tpdu_message_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output, tsk_bool_t MobOrig);
+#define tsms_tpdu_message_serialize_mo(self, output) tsms_tpdu_message_serialize(self, output, tsk_true)
+#define tsms_tpdu_message_serialize_mt(self, output) tsms_tpdu_message_serialize(self, output, tsk_false)
+TINYSMS_API tsms_tpdu_message_t* tsms_tpdu_message_deserialize(const void* data, tsk_size_t size, tsk_bool_t MobOrig);
+#define tsms_tpdu_message_deserialize_mo(data, size) tsms_tpdu_message_deserialize(data, size, tsk_true)
+#define tsms_tpdu_message_deserialize_mt(data, size) tsms_tpdu_message_deserialize(data, size, tsk_false)
+TINYSMS_API char* tsms_tpdu_message_tostring(const tsms_tpdu_message_t* self, tsk_bool_t MobOrig);
+TINYSMS_API char* tsms_tpdu_message_tohexastring(const tsms_tpdu_message_t* self, tsk_bool_t MobOrig);
+TINYSMS_API char* tsms_tpdu_message_get_payload(const tsms_tpdu_message_t* self);
+TINYSMS_API int tsms_tpdu_message_set_userdata(tsms_tpdu_message_t* self, const tsk_buffer_t* udata, tsms_alphabet_t alpha);
+int tsms_tpdu_message_deinit(tsms_tpdu_message_t* self);
+
+#define TSMS_TPDU_DEFAULT_PID 0x00 /**< 3GPP TS 23.040 section 9.2.3.9 - TP-Protocol-Identifier (TP-PID) */
+#define TSMS_TPDU_DEFAULT_DCS 0x00 /**< 3GPP TS 23.040 section 9.2.3.10 - TP-Data-Coding-Scheme (TP-DCS) (default class, 7 bit message) + GSM 03.38*/
+#define TSMS_TPDU_DEFAULT_VP 0xAA /**< 3GPP TS 23.040 section 9.2.3.12 - TP-Validity-Period */
+#define TSMS_TPDU_DEFAULT_VPF tsms_tpdu_vpf_relative /**< 3GPP TS 23.040 section 9.2.3.3 - TP Validity Period Format (TP VPF) */
+#define TSMS_TPDU_DEFAULT_FCS 0xFF /**< 3GPP TS 23.040 section 9.2.3.22 - TP-Failure-Cause (TP-FCS) */
+#define TSMS_TPDU_DEFAULT_PI 0x00 /**< 3GPP TS 23.040 section 9.2.3.27 - TP-Parameter-Indicator (TP-PI) */
+#define TSMS_TPDU_DEFAULT_SCTS "00000000000000" /**< 3GPP TS 23.040 section 9.2.3.11 - TP-Service-Centre-Time-Stamp (TP-SCTS) */
+#define TSMS_TPDU_DEFAULT_MMS 0x01 /**< 3GPP TS 23.040 section 9.2.3.2 - TP More Messages to Send (TP-MMS) */
+
+/**< Indicates whether to append SMSC address at the begining of the TPDU content.
+*/
+#define TSMS_TPDU_APPEND_SMSC 0
+
+/* ======================== RPDU ========================
+=========================================================*/
+
+/** RP-MTI types as per 3GPP TS 24.011 section 8.2.2
+* 3bit field located in the first octet of all RP-Messages. */
+typedef enum tsms_rpdu_type_e
+{
+ /*000*/ tsms_rpdu_type_data_mo = 0x00, /**< RP-DATA message ms->n */
+ /*001*/ tsms_rpdu_type_data_mt = 0x01, /**< RP-DATA message n->ms */
+ /*010*/ tsms_rpdu_type_ack_mo = 0x02, /**< RP-ACK message ms->n */
+ /*011*/ tsms_rpdu_type_ack_mt = 0x03, /**< RP-ACK message n->ms */
+ /*100*/ tsms_rpdu_type_error_mo = 0x04, /**< RP-ERROR message ms->n */
+ /*101*/ tsms_rpdu_type_error_mt = 0x05, /**< RP-ERROR message n->ms */
+ /*110*/ tsms_rpdu_type_smma_mo = 0x06, /**< RP-SMMA message ms->n */
+}
+tsms_rpdu_type_t;
+
+#define TSMS_RPDU_TYPE_IS_MO(type) (((type) == tsms_rpdu_type_data_mo) \
+ || ((type) == tsms_rpdu_type_ack_mo) \
+ || ((type) == tsms_rpdu_type_error_mo) \
+ || ((type) == tsms_rpdu_type_smma_mo))
+
+typedef struct tsms_rpdu_message_s
+{
+ TSK_DECLARE_OBJECT;
+
+ tsms_rpdu_type_t mti;
+ uint8_t mr; /**< Message Reference. */
+}
+tsms_rpdu_message_t;
+#define TSMS_DECLARE_RPDU_MESSAGE tsms_rpdu_message_t rpdu
+#define TSMS_RPDU_MESSAGE(self) ((tsms_rpdu_message_t*)(self))
+
+TINYSMS_API int tsms_rpdu_message_serialize(const tsms_rpdu_message_t* self, tsk_buffer_t* output);
+TINYSMS_API tsms_rpdu_message_t* tsms_rpdu_message_deserialize(const void* data, tsk_size_t size);
+TINYSMS_API char* tsms_rpdu_message_tohexastring(const tsms_rpdu_message_t* self);
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_COMMON_H */
diff --git a/tinySMS/include/tinysms/tsms_etsi_gsm_03_38.h b/tinySMS/include/tinysms/tsms_etsi_gsm_03_38.h
new file mode 100644
index 0000000..40aedda
--- /dev/null
+++ b/tinySMS/include/tinysms/tsms_etsi_gsm_03_38.h
@@ -0,0 +1,168 @@
+/*
+* 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 tsms.h
+ * @brief GSM 7 bit Default Alphabet as per 3GPP TS 23.038 v911 section 6.2.1.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_ETSI_GSM_03_38_H
+#define TINYSMS_TSMS_ETSI_GSM_03_38_H
+
+#include "tinysms_config.h"
+
+TSMS_BEGIN_DECLS
+
+#define TSMS_ETSI_GSM_03_38_COUNT 123
+static uint16_t TSMS_ETSI_GSM_03_38[TSMS_ETSI_GSM_03_38_COUNT][2] =
+{
+ 0x00, 0x0040 ,//# COMMERCIAL AT
+ 0x01, 0x00A3 ,//# POUND SIGN
+ 0x02, 0x0024 ,//# DOLLAR SIGN
+ 0x03, 0x00A5 ,//# YEN SIGN
+ 0x04, 0x00E8 ,//# LATIN SMALL LETTER E WITH GRAVE
+ 0x05, 0x00E9 ,//# LATIN SMALL LETTER E WITH ACUTE
+ 0x06, 0x00F9 ,//# LATIN SMALL LETTER U WITH GRAVE
+ 0x07, 0x00EC ,//# LATIN SMALL LETTER I WITH GRAVE
+ 0x08, 0x00F2 ,//# LATIN SMALL LETTER O WITH GRAVE
+ 0x09, 0x00E7 ,//# LATIN SMALL LETTER C WITH CEDILLA
+ 0x0B, 0x00D8 ,//# LATIN CAPITAL LETTER O WITH STROKE
+ 0x0C, 0x00F8 ,//# LATIN SMALL LETTER O WITH STROKE
+ 0x0E, 0x00C5 ,//# LATIN CAPITAL LETTER A WITH RING ABOVE
+ 0x0F, 0x00E5 ,//# LATIN SMALL LETTER A WITH RING ABOVE
+ 0x11, 0x005F ,//# LOW LINE
+ 0x1B14, 0x005E ,//# CIRCUMFLEX ACCENT
+ 0x1B28, 0x007B ,//# LEFT CURLY BRACKET
+ 0x1B29, 0x007D ,//# RIGHT CURLY BRACKET
+ 0x1B2F, 0x005C ,//# REVERSE SOLIDUS
+ 0x1B3C, 0x005B ,//# LEFT SQUARE BRACKET
+ 0x1B3D, 0x007E ,//# TILDE
+ 0x1B3E, 0x005D ,//# RIGHT SQUARE BRACKET
+ 0x1B40, 0x007C ,//# VERTICAL LINE
+ 0x1C, 0x00C6 ,//# LATIN CAPITAL LETTER AE
+ 0x1D, 0x00E6 ,//# LATIN SMALL LETTER AE
+ 0x1E, 0x00DF ,//# LATIN SMALL LETTER SHARP S (German)
+ 0x1F, 0x00C9 ,//# LATIN CAPITAL LETTER E WITH ACUTE
+ 0x20, 0x0020 ,//# SPACE
+ 0x21, 0x0021 ,//# EXCLAMATION MARK
+ 0x22, 0x0022 ,//# QUOTATION MARK
+ 0x23, 0x0023 ,//# NUMBER SIGN
+ 0x24, 0x00A4 ,//# CURRENCY SIGN
+ 0x25, 0x0025 ,//# PERCENT SIGN
+ 0x26, 0x0026 ,//# AMPERSAND
+ 0x27, 0x0027 ,//# APOSTROPHE
+ 0x28, 0x0028 ,//# LEFT PARENTHESIS
+ 0x29, 0x0029 ,//# RIGHT PARENTHESIS
+ 0x2A, 0x002A ,//# ASTERISK
+ 0x2B, 0x002B ,//# PLUS SIGN
+ 0x2C, 0x002C ,//# COMMA
+ 0x2D, 0x002D ,//# HYPHEN-MINUS
+ 0x2E, 0x002E ,//# FULL STOP
+ 0x2F, 0x002F ,//# SOLIDUS
+ 0x30, 0x0030 ,//# DIGIT ZERO
+ 0x31, 0x0031 ,//# DIGIT ONE
+ 0x32, 0x0032 ,//# DIGIT TWO
+ 0x33, 0x0033 ,//# DIGIT THREE
+ 0x34, 0x0034 ,//# DIGIT FOUR
+ 0x35, 0x0035 ,//# DIGIT FIVE
+ 0x36, 0x0036 ,//# DIGIT SIX
+ 0x37, 0x0037 ,//# DIGIT SEVEN
+ 0x38, 0x0038 ,//# DIGIT EIGHT
+ 0x39, 0x0039 ,//# DIGIT NINE
+ 0x3A, 0x003A ,//# COLON
+ 0x3B, 0x003B ,//# SEMICOLON
+ 0x3C, 0x003C ,//# LESS-THAN SIGN
+ 0x3D, 0x003D ,//# EQUALS SIGN
+ 0x3E, 0x003E ,//# GREATER-THAN SIGN
+ 0x3F, 0x003F ,//# QUESTION MARK
+ 0x40, 0x00A1 ,//# INVERTED EXCLAMATION MARK
+ 0x41, 0x0041 ,//# LATIN CAPITAL LETTER A
+ 0x42, 0x0042 ,//# LATIN CAPITAL LETTER B
+ //,//#0x42 0x0392 ,//# GREEK CAPITAL LETTER BETA
+ 0x43, 0x0043 ,//# LATIN CAPITAL LETTER C
+ 0x44, 0x0044 ,//# LATIN CAPITAL LETTER D
+ 0x45, 0x0045 ,//# LATIN CAPITAL LETTER E
+ 0x46, 0x0046 ,//# LATIN CAPITAL LETTER F
+ 0x47, 0x0047 ,//# LATIN CAPITAL LETTER G
+ 0x48, 0x0048 ,//# LATIN CAPITAL LETTER H
+ 0x49, 0x0049 ,//# LATIN CAPITAL LETTER I
+ 0x4A, 0x004A ,//# LATIN CAPITAL LETTER J
+ 0x4B, 0x004B ,//# LATIN CAPITAL LETTER K
+ 0x4C, 0x004C ,//# LATIN CAPITAL LETTER L
+ 0x4D, 0x004D ,//# LATIN CAPITAL LETTER M
+ 0x4E, 0x004E ,//# LATIN CAPITAL LETTER N
+ 0x4F, 0x004F ,//# LATIN CAPITAL LETTER O
+ 0x50, 0x0050 ,//# LATIN CAPITAL LETTER P
+ 0x51, 0x0051 ,//# LATIN CAPITAL LETTER Q
+ 0x52, 0x0052 ,//# LATIN CAPITAL LETTER R
+ 0x53, 0x0053 ,//# LATIN CAPITAL LETTER S
+ 0x54, 0x0054 ,//# LATIN CAPITAL LETTER T
+ 0x55, 0x0055 ,//# LATIN CAPITAL LETTER U
+ 0x56, 0x0056 ,//# LATIN CAPITAL LETTER V
+ 0x57, 0x0057 ,//# LATIN CAPITAL LETTER W
+ 0x58, 0x0058 ,//# LATIN CAPITAL LETTER X
+ 0x59, 0x0059 ,//# LATIN CAPITAL LETTER Y
+ 0x5A, 0x005A ,//# LATIN CAPITAL LETTER Z
+ 0x5B, 0x00C4 ,//# LATIN CAPITAL LETTER A WITH DIAERESIS
+ 0x5C, 0x00D6 ,//# LATIN CAPITAL LETTER O WITH DIAERESIS
+ 0x5D, 0x00D1 ,//# LATIN CAPITAL LETTER N WITH TILDE
+ 0x5E, 0x00DC ,//# LATIN CAPITAL LETTER U WITH DIAERESIS
+ 0x5F, 0x00A7 ,//# SECTION SIGN
+ 0x60, 0x00BF ,//# INVERTED QUESTION MARK
+ 0x61, 0x0061 ,//# LATIN SMALL LETTER A
+ 0x62, 0x0062 ,//# LATIN SMALL LETTER B
+ 0x63, 0x0063 ,//# LATIN SMALL LETTER C
+ 0x64, 0x0064 ,//# LATIN SMALL LETTER D
+ 0x65, 0x0065 ,//# LATIN SMALL LETTER E
+ 0x66, 0x0066 ,//# LATIN SMALL LETTER F
+ 0x67, 0x0067 ,//# LATIN SMALL LETTER G
+ 0x68, 0x0068 ,//# LATIN SMALL LETTER H
+ 0x69, 0x0069 ,//# LATIN SMALL LETTER I
+ 0x6A, 0x006A ,//# LATIN SMALL LETTER J
+ 0x6B, 0x006B ,//# LATIN SMALL LETTER K
+ 0x6C, 0x006C ,//# LATIN SMALL LETTER L
+ 0x6D, 0x006D ,//# LATIN SMALL LETTER M
+ 0x6E, 0x006E ,//# LATIN SMALL LETTER N
+ 0x6F, 0x006F ,//# LATIN SMALL LETTER O
+ 0x70, 0x0070 ,//# LATIN SMALL LETTER P
+ 0x71, 0x0071 ,//# LATIN SMALL LETTER Q
+ 0x72, 0x0072 ,//# LATIN SMALL LETTER R
+ 0x73, 0x0073 ,//# LATIN SMALL LETTER S
+ 0x74, 0x0074 ,//# LATIN SMALL LETTER T
+ 0x75, 0x0075 ,//# LATIN SMALL LETTER U
+ 0x76, 0x0076 ,//# LATIN SMALL LETTER V
+ 0x77, 0x0077 ,//# LATIN SMALL LETTER W
+ 0x78, 0x0078 ,//# LATIN SMALL LETTER X
+ 0x79, 0x0079 ,//# LATIN SMALL LETTER Y
+ 0x7A, 0x007A ,//# LATIN SMALL LETTER Z
+ 0x7B, 0x00E4 ,//# LATIN SMALL LETTER A WITH DIAERESIS
+ 0x7C, 0x00F6 ,//# LATIN SMALL LETTER O WITH DIAERESIS
+ 0x7D, 0x00F1 ,//# LATIN SMALL LETTER N WITH TILDE
+ 0x7E, 0x00FC ,//# LATIN SMALL LETTER U WITH DIAERESIS
+ 0x7F, 0x00E0 ,//# LATIN SMALL LETTER A WITH GRAVE
+};
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_ETSI_GSM_03_38_H */
diff --git a/tinySMS/include/tinysms/tsms_packing.h b/tinySMS/include/tinysms/tsms_packing.h
new file mode 100644
index 0000000..e1452cb
--- /dev/null
+++ b/tinySMS/include/tinysms/tsms_packing.h
@@ -0,0 +1,49 @@
+/*
+* 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 tsms_packing.h
+ * @brief SMS Packing (3GPP TS 23.038 subclause 6.1.2).
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#ifndef TINYSMS_TSMS_PACKING_H
+#define TINYSMS_TSMS_PACKING_H
+
+#include "tinysms_config.h"
+
+#include "tsk_buffer.h"
+
+TSMS_BEGIN_DECLS
+
+TINYSMS_API tsk_buffer_t* tsms_pack_to_7bit(const char* ascii);
+TINYSMS_API tsk_buffer_t* tsms_pack_to_ucs2(const char* ascii);
+TINYSMS_API tsk_buffer_t* tsms_pack_to_8bit(const char* ascii);
+
+TINYSMS_API char* tsms_pack_from_7bit(const void* gsm7bit, tsk_size_t size);
+TINYSMS_API char* tsms_pack_from_ucs2(const void* ucs2, tsk_size_t size);
+TINYSMS_API char* tsms_pack_from_8bit(const void* gsm8bit, tsk_size_t size);
+
+TSMS_END_DECLS
+
+#endif /* TINYSMS_TSMS_PACKING_H */
diff --git a/tinySMS/include/tinysms_config.h b/tinySMS/include/tinysms_config.h
new file mode 100644
index 0000000..e0cd694
--- /dev/null
+++ b/tinySMS/include/tinysms_config.h
@@ -0,0 +1,80 @@
+/*
+* 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.
+*
+*/
+
+#ifndef TINYSMS_CONFIG_H
+#define TINYSMS_CONFIG_H
+
+#ifdef __SYMBIAN32__
+#undef _WIN32 /* Because of WINSCW */
+#endif
+
+// Windows (XP/Vista/7/CE and Windows Mobile) macro definition.
+#if defined(WIN32)|| defined(_WIN32) || defined(_WIN32_WCE)
+# define TSMS_UNDER_WINDOWS 1
+# if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP)
+# define TSMS_UNDER_WINDOWS_RT 1
+# endif
+#endif
+
+#if (TSMS_UNDER_WINDOWS || defined(__SYMBIAN32__)) && defined(TINYSMS_EXPORTS)
+# define TINYSMS_API __declspec(dllexport)
+# define TINYSMS_GEXTERN extern __declspec(dllexport)
+#elif (TSMS_UNDER_WINDOWS || defined(__SYMBIAN32__)) && !defined(TINYSMS_IMPORTS_IGNORE)
+# define TINYSMS_API __declspec(dllimport)
+# define TINYSMS_GEXTERN __declspec(dllimport)
+#else
+# define TINYSMS_API
+# define TINYSMS_GEXTERN extern
+#endif
+
+/* Guards against C++ name mangling
+*/
+#ifdef __cplusplus
+# define TSMS_BEGIN_DECLS extern "C" {
+# define TSMS_END_DECLS }
+#else
+# define TSMS_BEGIN_DECLS
+# define TSMS_END_DECLS
+#endif
+
+/* Disable some well-known warnings
+*/
+#ifdef _MSC_VER
+# define _CRT_SECURE_NO_WARNINGS
+#endif
+
+/* Detecting C99 compilers
+ */
+#if (__STDC_VERSION__ == 199901L) && !defined(__C99__)
+# define __C99__
+#endif
+
+#include <stdint.h>
+#ifdef __SYMBIAN32__
+#include <stdlib.h>
+#endif
+
+#if HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
+#endif // TINYSMS_CONFIG_H
diff --git a/tinySMS/installdox.sh b/tinySMS/installdox.sh
new file mode 100644
index 0000000..2517e03
--- /dev/null
+++ b/tinySMS/installdox.sh
@@ -0,0 +1 @@
+docs/html/installdox -l tinySAK.tag@http://doubango.org/API/tinySAK docs/html/*.html \ No newline at end of file
diff --git a/tinySMS/src/rpdu/tsms_rpdu.c b/tinySMS/src/rpdu/tsms_rpdu.c
new file mode 100644
index 0000000..72640b9
--- /dev/null
+++ b/tinySMS/src/rpdu/tsms_rpdu.c
@@ -0,0 +1,611 @@
+/*
+* 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 tsms_rpdu.c
+ * @brief SMS RPDU encoder/decoder as per 3GPP TS 23.011.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/rpdu/tsms_rpdu.h"
+
+
+#include "tsk_debug.h"
+
+#define TSMS_ERROR_TOO_SHORT(type)\
+ TSK_DEBUG_ERROR("%s == Data too short.", type);\
+ failed = tsk_true;\
+ goto bail;
+
+/*=== RP-DATA as per 3GPP TS 24.011 section 7.3.1. ===*/
+
+/** internal function used to deserialize a RP-DATA message from binary content. */
+tsms_rpdu_message_t* _tsms_rpdu_rpdata_deserialize(const void* data, tsk_size_t size)
+{
+ /* don't need to test data and size --> already done by tsms_rpdu_message_deserialize() */
+ tsms_rpdu_data_t* self = tsms_rpdu_data_create(0x00, tsk_null, tsk_null, tsk_false);
+ tsk_bool_t failed = tsk_false;
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+ tsk_size_t smsc_len;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(self)->mti = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(self)->mr = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.5.1 Originator address element */
+ if(TSMS_RPDU_MESSAGE(self)->mti == tsms_rpdu_type_data_mt){
+ /* 7.3.1.1 RP DATA (Network to Mobile Station) */
+ if((self->oa = tsms_address_deserialize(pdata, (pend-pdata), tsms_addr_smsc, &smsc_len))){
+ pdata += smsc_len;
+ }
+ /* 7.3.1.2 RP DATA (Mobile Station to Network) */
+ pdata++; /* 1o */
+ }
+ else if(TSMS_RPDU_MESSAGE(self)->mti == tsms_rpdu_type_data_mo){
+ /* 7.3.1.1 RP DATA (Network to Mobile Station) */
+ pdata++; /* 1o */
+ /* 7.3.1.2 RP DATA (Mobile Station to Network) */
+ if((self->da = tsms_address_deserialize(pdata, (pend-pdata), tsms_addr_smsc, &smsc_len))){
+ pdata += smsc_len;
+ }
+ }
+ else{
+ failed = tsk_true;
+ TSK_DEBUG_ERROR("%d Not a valid RP-DATA messsage", TSMS_RPDU_MESSAGE(self)->mti);
+ goto bail;
+ }
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if((pend-pdata) > 1){
+ tsk_size_t length = *pdata++; // length-indicator
+ if((length != (pend-pdata))){
+ TSK_DEBUG_WARN("Invalid length-indicator.");
+ }
+ else{
+ self->udata = tsk_buffer_create(pdata, length);
+ }
+ }
+ else{
+ TSK_DEBUG_WARN("RP-User data element is mandatory for RP-DATA messages.");
+ }
+
+
+bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_RPDU_MESSAGE(self);
+}
+
+/** internal function used to serialize a RP-DATA message as binary content.*/
+int _tsms_rpdu_rpdata_serialize(const tsms_rpdu_message_t* _self, tsk_buffer_t* output)
+{
+ /* don't need to test output and self --> already done by tsms_rpdu_message_serialize() */
+ const tsms_rpdu_data_t* self = (const tsms_rpdu_data_t*)_self;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ tsk_buffer_append(output, &_self->mti, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ tsk_buffer_append(output, &_self->mr, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.5.1 Originator address element */
+ tsms_address_serialize(self->oa, output);
+
+ /* 3GPP TS 24.011 ==> 8.2.5.2 Destination address element */
+ tsms_address_serialize(self->da, output);
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if(self->udata){
+ tsk_buffer_append(output, &self->udata->size, 1); // length-indicator
+ tsk_buffer_append(output, self->udata->data, self->udata->size);
+ }
+ else{
+ static uint8_t _1byte = 0x00;
+ tsk_buffer_append(output, &_1byte, 1); // length-indicator
+ }
+
+ return 0;
+}
+
+/**@ingroup tsms_rpdu_group
+* Creates a @a RP-DATA message.
+* @a RP-DATA messages could be sent from the Network to Mobile Station (MT) or from the Mobile Station to the Network (MO).
+* For more information, please refer to 3GPP TS 24.011 section 7.3.1.
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param smsc The address of the SMSC. e.g. "+331253688".
+* @param tpdu A Pointer to the @a TP-Message to relay.
+* @param MobOrig Indicates whether to create a Mobile Originated @a RP-DATA message or not.
+* @retval Mobile Originated @a RP-DATA message.
+* @sa @ref tsms_rpdu_data_create_mt<br>@ref tsms_rpdu_data_create_mo
+*
+* See For more information, see @ref tsms_rpdu_group_DATA "RP-DATA".
+*/
+tsms_rpdu_data_t* tsms_rpdu_data_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_tpdu_message_t* tpdu, tsk_bool_t MobOrig)
+{
+ tsms_rpdu_data_t* ret = tsk_null;
+
+ if(!(ret = tsk_object_new(tsms_rpdu_data_def_t))){
+ goto bail;
+ }
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(ret)->mti = MobOrig? tsms_rpdu_type_data_mo : tsms_rpdu_type_data_mt;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(ret)->mr = mr;
+
+ /* 3GPP TS 24.341 section B5 (Moblie Originated RP-DATA message)
+ The payload includes an RP-DATA message (see 3GPP TS 24.011 [8]). It includes:
+ - Address of the originating UE: this field includes the length indicator only;
+ - Address of the destination SC, which is configured in the UE; and
+ - RP-User-Data (see 3GPP TS 23.040 [3]), which includes SMS-SUBMIT as type indicator.
+ */
+
+
+ /* 3GPP TS 24.011 ==> 8.2.5.1 Originator address element */
+ if(smsc){
+ if(TSMS_RPDU_MESSAGE(ret)->mti == tsms_rpdu_type_data_mt){
+ /* 7.3.1.1 RP DATA (Network to Mobile Station) */
+ ret->oa = tsms_address_smsc_create(smsc);
+ }
+ else{
+ /* 7.3.1.2 RP DATA (Mobile Station to Network) */
+ ret->da = tsms_address_smsc_create(smsc);
+ }
+ }
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if(tpdu && (ret->udata = tsk_buffer_create_null())){
+ tsms_tpdu_message_serialize(tpdu, ret->udata, MobOrig);
+ }
+
+bail:
+ return ret;
+}
+
+//
+// RP-DATA object definition
+//
+static tsk_object_t* tsms_rpdu_data_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_rpdu_data_t *rpdata = self;
+ if(rpdata){
+ TSMS_RPDU_MESSAGE(rpdata)->mti = tsms_rpdu_type_data_mo;
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_rpdu_data_dtor(tsk_object_t * self)
+{
+ tsms_rpdu_data_t *rpdata = self;
+ if(rpdata){
+ TSK_OBJECT_SAFE_FREE(rpdata->oa);
+ TSK_OBJECT_SAFE_FREE(rpdata->da);
+ TSK_OBJECT_SAFE_FREE(rpdata->udata);
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+
+ return self;
+}
+
+static const tsk_object_def_t tsms_rpdu_data_def_s =
+{
+ sizeof(tsms_rpdu_data_t),
+ tsms_rpdu_data_ctor,
+ tsms_rpdu_data_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_rpdu_data_def_t = &tsms_rpdu_data_def_s;
+
+/*=== RP-SMMA as per 3GPP TS 24.011 section 7.3.2. ===*/
+
+/** internal function used to deserialize a RP-SMMA message from binary content. */
+tsms_rpdu_message_t* _tsms_rpdu_rpsmma_deserialize(const void* data, tsk_size_t size)
+{
+ /* don't need to test data and size --> already done by tsms_rpdu_message_deserialize() */
+ tsms_rpdu_smma_t* self = tsms_rpdu_smma_create(0);
+ const uint8_t* pdata = data;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(self)->mti = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(self)->mr = *pdata++;
+
+ return TSMS_RPDU_MESSAGE(self);
+}
+
+/** internal function used to serialize a RP-SMMA message as binary content. */
+int _tsms_rpdu_rpsmma_serialize(const tsms_rpdu_message_t* _self, tsk_buffer_t* output)
+{
+ /* don't need to test output and self --> already done by tsms_rpdu_message_serialize() */
+ //const tsms_rpdu_smma_t* self = (const tsms_rpdu_smma_t*)_self;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ tsk_buffer_append(output, &_self->mti, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ tsk_buffer_append(output, &_self->mr, 1);
+
+ return 0;
+}
+
+/**@ingroup tsms_rpdu_group
+* Creates a @a RP-SMMA message.
+* This message is sent by the mobile station to relay a notification to the network that the mobile has memory available to receive one or more short messages.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @retval Mobile Originated @a RP-SMMA message.
+*
+* See For more information, see @ref tsms_rpdu_group_SMMA "RP-SMMA".
+*/
+tsms_rpdu_smma_t* tsms_rpdu_smma_create(uint8_t mr)
+{
+ tsms_rpdu_smma_t* ret = tsk_null;
+
+ if((ret = tsk_object_new(tsms_rpdu_smma_def_t))){
+ TSMS_RPDU_MESSAGE(ret)->mr = mr;
+ }
+ return ret;
+}
+
+//
+// RP-SMMA object definition
+//
+static tsk_object_t* tsms_rpdu_smma_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_rpdu_smma_t *smma = self;
+ if(smma){
+ TSMS_RPDU_MESSAGE(smma)->mti = tsms_rpdu_type_smma_mo;
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_rpdu_smma_dtor(tsk_object_t * self)
+{
+ tsms_rpdu_smma_t *smma = self;
+ if(smma){
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+
+ return self;
+}
+
+static const tsk_object_def_t tsms_rpdu_smma_def_s =
+{
+ sizeof(tsms_rpdu_smma_t),
+ tsms_rpdu_smma_ctor,
+ tsms_rpdu_smma_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_rpdu_smma_def_t = &tsms_rpdu_smma_def_s;
+
+
+/*=== RP-ACK as per 3GPP TS 24.011 section 7.3.3. ===*/
+
+/** internal function used to deserialize an RP-ACK message from binary content. */
+tsms_rpdu_message_t* _tsms_rpdu_rpack_deserialize(const void* data, tsk_size_t size)
+{
+ /* don't need to test data and size --> already done by tsms_rpdu_message_deserialize() */
+ tsms_rpdu_ack_t* self = tsms_rpdu_ack_create(0, tsk_null, tsk_false);
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(self)->mti = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(self)->mr = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if((pend-pdata) > 1){
+ tsk_size_t length;
+ /*uint8_t iei =*/ (void)(*pdata++); // IEI MUST be equal to 0x41
+ length = *pdata++; // length-indicator
+ if((length != (pend-pdata))){
+ TSK_DEBUG_WARN("Invalid length-indicator.");
+ }
+ else{
+ self->udata = tsk_buffer_create(pdata, length);
+ }
+ }
+
+ return TSMS_RPDU_MESSAGE(self);
+}
+
+/** internal function used to serialize a RP-ACK message as binary content. */
+int _tsms_rpdu_rpack_serialize(const tsms_rpdu_message_t* _self, tsk_buffer_t* output)
+{
+ /* don't need to test output and self --> already done by tsms_rpdu_message_serialize() */
+ const tsms_rpdu_ack_t* self = (const tsms_rpdu_ack_t*)_self;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ tsk_buffer_append(output, &_self->mti, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ tsk_buffer_append(output, &_self->mr, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if(self->udata){
+ static uint8_t iei = 0x41;
+ tsk_buffer_append(output, &iei, 1); // IEI
+ tsk_buffer_append(output, &self->udata->size, 1); // length-indicator
+ tsk_buffer_append(output, self->udata->data, self->udata->size);
+ }
+ else{
+ static uint8_t _1byte = 0x00;
+ tsk_buffer_append(output, &_1byte, 1); // length-indicator
+ }
+
+ return 0;
+}
+
+/**@ingroup tsms_rpdu_group
+* Creates a @a RP-ACK message.
+* @a RP-ACK is sent between the MSC and the mobile station in both directions and used to relay the acknowledgement of a RP-DATA or RP-SMMA message reception.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.3
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param tpdu A Pointer to the @a TP-Message to include as RP-User data.
+* @param MobOrig Indicates whether to create a Mobile Originated @a RP-ACK message or not.
+* @retval Mobile Originated @a RP-ACK message.
+*
+* See For more information, see @ref tsms_rpdu_group_ACK "RP-ACK".
+*/
+tsms_rpdu_ack_t* tsms_rpdu_ack_create(uint8_t mr, const tsms_tpdu_message_t* tpdu, tsk_bool_t MobOrig)
+{
+ tsms_rpdu_ack_t* ret = tsk_null;
+
+ if(!tpdu){
+ TSK_DEBUG_WARN("TPDU for RP-ACK message is Null.");
+ }
+
+ if(!(ret = tsk_object_new(tsms_rpdu_ack_def_t))){
+ goto bail;
+ }
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(ret)->mti = MobOrig? tsms_rpdu_type_ack_mo : tsms_rpdu_type_ack_mt;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(ret)->mr = mr;
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if(tpdu && (ret->udata = tsk_buffer_create_null())){
+ tsms_tpdu_message_serialize(tpdu, ret->udata, MobOrig);
+ }
+
+bail:
+ return ret;
+}
+
+//
+// RP-ACK object definition
+//
+static tsk_object_t* tsms_rpdu_ack_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_rpdu_ack_t *ack = self;
+ if(ack){
+ TSMS_RPDU_MESSAGE(ack)->mti = tsms_rpdu_type_ack_mo;
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_rpdu_ack_dtor(tsk_object_t * self)
+{
+ tsms_rpdu_ack_t *ack = self;
+ if(ack){
+ TSK_OBJECT_SAFE_FREE(ack->udata);
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+
+ return self;
+}
+
+static const tsk_object_def_t tsms_rpdu_ack_def_s =
+{
+ sizeof(tsms_rpdu_ack_t),
+ tsms_rpdu_ack_ctor,
+ tsms_rpdu_ack_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_rpdu_ack_def_t = &tsms_rpdu_ack_def_s;
+
+/*=== RP-ERROR as per 3GPP TS 24.011 section 7.3.4. ===*/
+
+/** internal function used to deserialize a RP-ERROR message from binary content. */
+tsms_rpdu_message_t* _tsms_rpdu_rperror_deserialize(const void* data, tsk_size_t size)
+{
+ /* don't need to test data and size --> already done by tsms_rpdu_message_deserialize() */
+ tsms_rpdu_error_t* self = tsms_rpdu_error_create(0, tsk_null, 0, tsk_false);
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+ tsk_bool_t failed = tsk_false;
+ uint8_t cause_count;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(self)->mti = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(self)->mr = *pdata++;
+
+ /* 3GPP TS 24.011 ==> 8.2.5.4 RP Cause
+ * Only 1 cause (LV)*/
+ if((cause_count = *pdata++)){
+ self->cause[0] = cause_count;
+ self->cause[1] = *pdata++;
+ if((pdata += (cause_count-1)) >= pend){
+ TSMS_ERROR_TOO_SHORT("RP-ERROR");
+ }
+ }
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if((pend-pdata) > 2){
+ tsk_size_t length;
+ /*uint8_t iei =*/ (void)(*pdata++); // IEI MUST be equal to 0x41
+ length = *pdata++; // length-indicator
+ if((length != (pend-pdata))){
+ TSK_DEBUG_WARN("Invalid length-indicator.");
+ }
+ else{
+ self->udata = tsk_buffer_create(pdata, length);
+ }
+ }
+
+
+bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_RPDU_MESSAGE(self);
+}
+
+/** internal function used to serialize a RP-ERROR message as binary content. */
+int _tsms_rpdu_rperror_serialize(const tsms_rpdu_message_t* _self, tsk_buffer_t* output)
+{
+ /* don't need to test output and self --> already done by tsms_rpdu_message_serialize() */
+ const tsms_rpdu_error_t* self = (const tsms_rpdu_error_t*)_self;
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ tsk_buffer_append(output, &_self->mti, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ tsk_buffer_append(output, &_self->mr, 1);
+
+ /* 3GPP TS 24.011 ==> 8.2.5.4 RP Cause
+ * Only 1 cause (LV)*/
+ tsk_buffer_append(output, self->cause, 2);
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if(self->udata){
+ static uint8_t iei = 0x41;
+ tsk_buffer_append(output, &iei, 1); // IEI
+ tsk_buffer_append(output, &self->udata->size, 1); // length-indicator
+ tsk_buffer_append(output, self->udata->data, self->udata->size);
+ }
+ else{
+ static uint8_t _1byte = 0x00;
+ tsk_buffer_append(output, &_1byte, 1); // length-indicator
+ }
+
+ return 0;
+}
+
+/**@ingroup tsms_rpdu_group
+* Creates a @a RP-ERROR message.
+* @a RP-ERROR is sent between the MSC and the mobile station in both directions and used to relay an error cause from an erroneous short message or notification transfer attempt.
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.4.
+* @param mr @a RP-Message Reference as per 3GPP TS 24.011 section 8.2.3.
+* @param tpdu A Pointer to the @a TP-Message to include as RP-User data.
+* @param cause RP-Cause value as per 3GPP TS 24.011 section 8.2.5.4.
+* @param MobOrig Indicates whether to create a Mobile Originated @a RP-ERROR message or not.
+* @retval Mobile Originated @a RP-ERROR message.
+*
+* See For more information, see @ref tsms_rpdu_group_ERROR "RP-ERROR".
+*/
+tsms_rpdu_error_t* tsms_rpdu_error_create(uint8_t mr, const tsms_tpdu_message_t* tpdu, uint8_t cause, tsk_bool_t MobOrig)
+{
+ tsms_rpdu_error_t* ret = tsk_null;
+
+ /*if(!tpdu){
+ TSK_DEBUG_WARN("TPDU for RP-ERROR message is Null.");
+ }*/
+
+ if(!(ret = tsk_object_new(tsms_rpdu_error_def_t))){
+ goto bail;
+ }
+
+ /* 3GPP TS 24.011 ==> 8.2.2 Message type indicator (MTI) */
+ TSMS_RPDU_MESSAGE(ret)->mti = MobOrig? tsms_rpdu_type_error_mo : tsms_rpdu_type_error_mt;
+
+ /* 3GPP TS 24.011 ==> 8.2.3 Message reference */
+ TSMS_RPDU_MESSAGE(ret)->mr = mr;
+
+ /* 3GPP TS 24.011 ==> 8.2.5.4 RP Cause */
+ ret->cause[0] = 1 /*len*/;
+ ret->cause[1] = cause;
+
+ /* 3GPP TS 24.011 ==> 8.2.5.3 RP-User data element */
+ if(tpdu && (ret->udata = tsk_buffer_create_null())){
+ tsms_tpdu_message_serialize(tpdu, ret->udata, MobOrig);
+ }
+
+bail:
+ return ret;
+}
+
+//
+// RP-ERROR object definition
+//
+static tsk_object_t* tsms_rpdu_error_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_rpdu_error_t *error = self;
+ if(error){
+ TSMS_RPDU_MESSAGE(error)->mti = tsms_rpdu_type_error_mo;
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_rpdu_error_dtor(tsk_object_t * self)
+{
+ tsms_rpdu_error_t *error = self;
+ if(error){
+ TSK_OBJECT_SAFE_FREE(error->udata);
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+
+ return self;
+}
+
+static const tsk_object_def_t tsms_rpdu_error_def_s =
+{
+ sizeof(tsms_rpdu_error_t),
+ tsms_rpdu_error_ctor,
+ tsms_rpdu_error_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_rpdu_error_def_t = &tsms_rpdu_error_def_s;
+
diff --git a/tinySMS/src/tpdu/tsms_tpdu_command.c b/tinySMS/src/tpdu/tsms_tpdu_command.c
new file mode 100644
index 0000000..4733edc
--- /dev/null
+++ b/tinySMS/src/tpdu/tsms_tpdu_command.c
@@ -0,0 +1,275 @@
+/*
+* 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 tsms_tpdu_command.c
+ * @brief SMS TPDU SMS-COMMAND message as per 3GPP TS 23.040 section 9.2.2.4.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tpdu/tsms_tpdu_command.h"
+
+#include "tsk_debug.h"
+
+#define TSMS_ERROR_TOO_SHORT()\
+ TSK_DEBUG_ERROR("SMS-COMMAND == Data too short.");\
+ failed = tsk_true;\
+ goto bail;
+
+/** internal function used to deserialse a SMS-COMMAND message from binary content. */
+tsms_tpdu_message_t* _tsms_tpdu_command_deserialize(const void* data, tsk_size_t size)
+{
+ /* You don't need to test data and test, this is an internal function called by tsms_tpdu_message_deserialize() */
+ tsms_tpdu_command_t* self = tsms_tpdu_command_create(0, tsk_null, tsk_null, 0, tsms_tpdu_cmd_rel);
+ tsk_bool_t failed = tsk_false;
+ tsk_size_t any_len;
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ if(!(self->smsc = tsms_address_deserialize(data, size, tsms_addr_smsc, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-COMMAND == Failed to parse SMSC address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+#endif
+
+ /* SMS-COMMAND first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Request(1b)
+
+ +----+----+----+----+----+----+----+----+
+ | |UDHI|SRR | | | | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ TSMS_TPDU_MESSAGE(self)->mti = (*pdata & 0x03);
+ self->srr = (*pdata & 0x20)>>5,
+ self->udhi = (*pdata & 0x40)>>6;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.6 TP-Message-Reference (TP-MR)
+ * 1o */
+ self->mr = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->pid = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.19 TP-Command-Type (TP-CT)
+ * 1o */
+ self->ct = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.18 TP-Message-Number (TP-MN)
+ * 1o */
+ self->mn = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.8 TP-Destination-Address (TP-DA) */
+ if(!(self->da = tsms_address_deserialize(pdata, (pend-pdata), tsms_addr_da, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-DELIVER == Failed to parse DA address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.20 TP Command Data Length (TP CDL)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->udl = *pdata;
+ pdata++;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.21 TP Command Data (TP CD) */
+ if((pend-pdata) > 0){
+ TSMS_TPDU_MESSAGE(self)->ud = tsk_buffer_create(pdata, (pend-pdata));
+ }
+
+ bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_TPDU_MESSAGE(self);
+}
+
+/** internal function used to serialize a SMS-COMMAND message as binary content. */
+int _tsms_tpdu_command_serialize(const tsms_tpdu_command_t* self, tsk_buffer_t* output)
+{
+ uint8_t _1byte;
+
+ if(!self){
+ return -1;
+ }
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ tsms_address_serialize(self->smsc, output);
+#endif
+
+ /* SMS-COMMAND first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Request(1b)
+
+ +----+----+----+----+----+----+----+----+
+ | |UDHI|SRR | | | | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ _1byte = (TSMS_TPDU_MESSAGE(self)->mti & 0xF3); /*2b*/
+ _1byte |=
+ /*1b*/
+ /*2b*/
+ ((uint8_t)self->srr) << 5 /*1b*/
+ | ((uint8_t)self->udhi) << 6; /*1b*/
+ tsk_buffer_append(output, &_1byte, 1);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.6 TP-Message-Reference (TP-MR) */
+ tsk_buffer_append(output, &self->mr, 1); /*0-255 ==> 1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->pid, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.19 TP-Command-Type (TP-CT) */
+ tsk_buffer_append(output, &self->ct, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.18 TP-Message-Number (TP-MN) */
+ tsk_buffer_append(output, &self->mn, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.8 TP-Destination-Address (TP-DA) */
+ tsms_address_serialize(self->da, output);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.20 TP Command Data Length (TP CDL) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->udl, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.21 TP Command Data (TP CD) */
+ tsk_buffer_append(output, TSK_BUFFER_DATA(TSMS_TPDU_MESSAGE(self)->ud), TSK_BUFFER_SIZE(TSMS_TPDU_MESSAGE(self)->ud));
+
+ return 0;
+}
+
+/**@ingroup tsms_tpdu_group
+* Creates new @a SMS-COMMAND message.
+* @a SMS-COMMAND messages are used to convey commands from the MS (Mobile Station) to the SC (Service Center).<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.4.
+* @param mr TP-Message-Reference (TP-MR) as per 3GPP TS 23.040 section 9.2.3.6.
+* @param smsc The address of the SMSC. e.g. "+331253688".
+* @param dest The address of the destination. e.g. "+331253688".
+* @param msg_num The message number. For more information, please refer to 3GPP TS 23.040 section 9.2.3.18 (TP-MN).
+* @param cmd The command type as per 3GPP TS 23.040 v910 section 9.2.3.19 (TP-CT).
+* @retval SMS-COMMAND message.
+*
+* See For more information, see @ref tsms_tpdu_group_COMMAND "SMS-COMMAND".
+*/
+tsms_tpdu_command_t* tsms_tpdu_command_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest, uint8_t msg_num, tsms_tpdu_cmd_t cmd)
+{
+ return tsk_object_new(tsms_tpdu_command_def_t, mr, smsc, dest, msg_num, cmd);
+}
+
+
+
+//=================================================================================================
+// SMS TPDU SMS-COMMAND object definition
+//
+static tsk_object_t* tsms_tpdu_command_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_tpdu_command_t *command = self;
+ if(command){
+ const char* smsc, *dest;
+ uint8_t mr, msg_num;
+ tsms_tpdu_cmd_t cmd;
+
+#if defined(__GNUC__)
+ mr = (uint8_t)va_arg(*app, unsigned);
+#else
+ mr = va_arg(*app, uint8_t);
+#endif
+
+ smsc = va_arg(*app, const char*);
+ dest = va_arg(*app, const char*);
+
+#if defined(__GNUC__)
+ msg_num = (uint8_t)va_arg(*app, unsigned);
+#else
+ msg_num = va_arg(*app, uint8_t);
+#endif
+ cmd = va_arg(*app, tsms_tpdu_cmd_t);
+
+ /* init base*/
+ tsms_tpdu_message_init(TSMS_TPDU_MESSAGE(command), tsms_tpdu_mti_command_mo);
+ /* init self */
+ command->mr = mr;
+ if(smsc){
+ command->smsc = tsms_address_smsc_create((const uint8_t*)smsc);
+ }
+ if(dest){
+ command->da = tsms_address_da_create((const uint8_t*)dest);
+ }
+ command->mn = msg_num;
+ command->ct = cmd;
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_tpdu_command_dtor(tsk_object_t * self)
+{
+ tsms_tpdu_command_t *command = self;
+ if(command){
+ /*deinit base*/
+ tsms_tpdu_message_deinit(TSMS_TPDU_MESSAGE(command));
+ /*deinit self*/
+ TSK_OBJECT_SAFE_FREE(command->smsc);
+ TSK_OBJECT_SAFE_FREE(command->da);
+ }
+
+ return self;
+}
+
+static const tsk_object_def_t tsms_tpdu_command_def_s =
+{
+ sizeof(tsms_tpdu_command_t),
+ tsms_tpdu_command_ctor,
+ tsms_tpdu_command_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_tpdu_command_def_t = &tsms_tpdu_command_def_s;
diff --git a/tinySMS/src/tpdu/tsms_tpdu_deliver.c b/tinySMS/src/tpdu/tsms_tpdu_deliver.c
new file mode 100644
index 0000000..afc4086
--- /dev/null
+++ b/tinySMS/src/tpdu/tsms_tpdu_deliver.c
@@ -0,0 +1,263 @@
+/*
+* 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 tsms_tpdu_deliver.c
+ * @brief SMS TPDU SMS-DELIVER message as per 3GPP TS 23.040 section 9.2.2.1.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tpdu/tsms_tpdu_deliver.h"
+
+#include "tsk_string.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* memcpy */
+
+#define TSMS_ERROR_TOO_SHORT()\
+ TSK_DEBUG_ERROR("SMS-DELIVER == Data too short.");\
+ failed = tsk_true;\
+ goto bail;
+
+/** internal function used to deserialize a buffer containing a SMS-DELIVER message. */
+tsms_tpdu_message_t* _tsms_tpdu_deliver_deserialize(const void* data, tsk_size_t size)
+{
+ /* You don't need to test data and test, this is an internal function called by tsms_tpdu_message_deserialize() */
+ tsms_tpdu_deliver_t* self = tsms_tpdu_deliver_create(tsk_null, tsk_null);
+ tsk_bool_t failed = tsk_false;
+ tsk_size_t any_len;
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ if(!(self->smsc = tsms_address_deserialize(data, size, tsms_addr_smsc, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-DELIVER == Failed to parse SMSC address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+#endif
+
+ /* SMS-DELIVER first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-More-Messages-to-Send(1b)
+ - TP-Loop-Prevention(1b)
+ - TP-Reply-Path(1b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Indication(1b)
+ +----+----+----+----+----+----+----+----+
+ | RP|UDHI|SRI | |LP |MMS | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ TSMS_TPDU_MESSAGE(self)->mti = (*pdata & 0x03);
+ self->mms = (*pdata & 0x04)>>2,
+ self->lp = (*pdata & 0x08)>>3,
+ self->sri = (*pdata & 0x20)>>5,
+ self->udhi = (*pdata & 0x40)>>6,
+ self->rp = (*pdata & 0x80)>>7;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> TP-Originating-Address (TP-OA)*/
+ if(!(self->oa = tsms_address_deserialize(pdata, (pend-pdata), tsms_addr_oa, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-DELIVER == Failed to parse OA address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->pid = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->dcs = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> TP-Service-Centre-Time-Stamp (TP-SCTS)
+ * 7o */
+ if((pend - pdata)<=7){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ memcpy(self->scts, pdata, 7);
+ pdata += 7;
+
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->udl = *pdata;
+ pdata++;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ if((pend-pdata) > 0){
+ TSMS_TPDU_MESSAGE(self)->ud = tsk_buffer_create(pdata, (pend-pdata));
+ }
+
+ bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_TPDU_MESSAGE(self);
+}
+
+/** internal function used to serialize a SMS-DELIVER message. */
+int _tsms_tpdu_deliver_serialize(const tsms_tpdu_deliver_t* self, tsk_buffer_t* output)
+{
+ uint8_t _1byte;
+
+ if(!self){
+ return -1;
+ }
+
+/* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ tsms_address_serialize(self->smsc, output);
+#endif
+
+ /* SMS-DELIVER first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-More-Messages-to-Send(1b)
+ - TP-Loop-Prevention(1b)
+ - TP-Reply-Path(1b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Indication(1b)
+ +----+----+----+----+----+----+----+----+
+ | RP|UDHI|SRI | |LP |MMS | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ _1byte = (TSMS_TPDU_MESSAGE(self)->mti & 0xF3); /*2b*/
+ _1byte |= ((uint8_t)self->mms) << 2 /*1b*/
+ | ((uint8_t)self->lp) << 3 /*1b*/
+ /*1b (unused)*/
+ | ((uint8_t)self->sri) << 5 /*1b*/
+ | ((uint8_t)self->udhi) << 6 /*1b*/
+ | ((uint8_t)self->rp) << 7; /*1b*/
+ tsk_buffer_append(output, &_1byte, 1);
+
+ /* 3GPP TS 23.040 ==> TP-Originating-Address (TP-OA)*/
+ tsms_address_serialize(self->oa, output);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID)*/
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->pid, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS)*/
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->dcs, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> TP-Service-Centre-Time-Stamp (TP-SCTS)*/
+ tsk_buffer_append(output, self->scts, sizeof(self->scts)); /*7o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->udl, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ tsk_buffer_append(output, TSK_BUFFER_DATA(TSMS_TPDU_MESSAGE(self)->ud), TSK_BUFFER_SIZE(TSMS_TPDU_MESSAGE(self)->ud));
+
+ return 0;
+}
+
+/**@ingroup tsms_tpdu_group
+* Creates new @a SMS-DELIVER message.
+* @a SMS-DELIVER messages are used to convey short messages from the SC (Service Center) to the MS (Mobile Station).<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.1.
+* @param smsc SMSC address. e.g. "+331253688".
+* @param orig The Originator address. e.g. "+331253688".
+* @retval SMS-DELIVER message.
+*
+* See For more information, see @ref tsms_tpdu_group_DELIVER "SMS-DELIVER".
+*/
+tsms_tpdu_deliver_t* tsms_tpdu_deliver_create(const tsms_address_string_t smsc, const tsms_address_string_t orig)
+{
+ tsms_tpdu_deliver_t* ret = tsk_null;
+
+ if(!(ret = tsk_object_new(tsms_tpdu_deliver_def_t, smsc, orig))){
+ goto bail;
+ }
+
+bail:
+ return ret;
+}
+
+//=================================================================================================
+// SMS TPDU SMS-DELIVER object definition
+//
+static tsk_object_t* tsms_tpdu_deliver_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_tpdu_deliver_t *deliver = self;
+ if(deliver){
+ const char* smsc, *orig;
+
+ smsc = va_arg(*app, const char*);
+ orig = va_arg(*app, const char*);
+
+ /* init base*/
+ tsms_tpdu_message_init(TSMS_TPDU_MESSAGE(deliver), tsms_tpdu_mti_deliver_mt);
+ /* init self */
+ deliver->mms = TSMS_TPDU_DEFAULT_MMS;
+ if(smsc){
+ deliver->smsc = tsms_address_smsc_create((const uint8_t*)smsc);
+ }
+ if(orig){
+ deliver->oa = tsms_address_oa_create((const uint8_t*)orig);
+ }
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_tpdu_deliver_dtor(tsk_object_t * self)
+{
+ tsms_tpdu_deliver_t *deliver = self;
+ if(deliver){
+ /*deinit base*/
+ tsms_tpdu_message_deinit(TSMS_TPDU_MESSAGE(deliver));
+ /*deinit self*/
+ TSK_OBJECT_SAFE_FREE(deliver->oa);
+ TSK_OBJECT_SAFE_FREE(deliver->smsc);
+ }
+ return self;
+}
+
+static const tsk_object_def_t tsms_tpdu_deliver_def_s =
+{
+ sizeof(tsms_tpdu_deliver_t),
+ tsms_tpdu_deliver_ctor,
+ tsms_tpdu_deliver_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_tpdu_deliver_def_t = &tsms_tpdu_deliver_def_s;
diff --git a/tinySMS/src/tpdu/tsms_tpdu_report.c b/tinySMS/src/tpdu/tsms_tpdu_report.c
new file mode 100644
index 0000000..73f6132
--- /dev/null
+++ b/tinySMS/src/tpdu/tsms_tpdu_report.c
@@ -0,0 +1,284 @@
+/*
+* 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 tsms_tpdu_report.c
+ * @brief SMS TPDU SMS-DELIVER-REPORT and SMS-SUBMIT-REPORT message as per 3GPP TS 23.040 section 9.2.2.1a and 9.2.2.2a.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tpdu/tsms_tpdu_report.h"
+
+#include "tsk_string.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* memcpy */
+
+#define TSMS_ERROR_TOO_SHORT()\
+ TSK_DEBUG_ERROR("SMS-DELIVER-REPORT/MS-SUBMIT-REPORT == Data too short.");\
+ failed = tsk_true;\
+ goto bail;
+
+tsms_tpdu_message_t* _tsms_tpdu_report_deserialize_2(const void* data, tsk_size_t size, tsk_bool_t error)
+{
+ /* You don't need to test data and test, this is an internal function called by tsms_tpdu_message_deserialize() */
+ tsms_tpdu_report_t* self = tsms_tpdu_report_create(tsk_null, tsk_false, error);
+ tsk_bool_t failed = tsk_false;
+// tsk_size_t any_len;
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC && 0
+ if(!(self->smsc = tsms_address_deserialize(data, size, tsms_addr_smsc, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-DELIVER == Failed to parse SMSC address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+#endif
+
+ /* SMS-DELIVER-REPORT/MS-SUBMIT-REPORT (both ACK and ERROR) first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-User-Data-Header-Indication(1b)
+
+ +----+----+----+----+----+----+----+----+
+ | |UDHI| | | | | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ TSMS_TPDU_MESSAGE(self)->mti = *pdata & 0x03;
+ self->udhi = (*pdata & 0x40)>>6;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ if(self->error){ /* FIXME ==> should comes from RP layer */
+ /* 3GPP TS 23.040 ==> 9.2.3.22 TP-Failure-Cause(TP-FCS) */
+ //tsk_buffer_append(output, &self->fcs, 1); /*0x00-0xFF ==> 1o*/
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.27 TP-Parameter-Indicator (TP-PI)
+ * 1o
+ bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
+ Extension bit Reserved Reserved Reserved Reserved TP UDL TP DCS TP PID
+ */
+ self->pi = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ if(TSMS_TPDU_MESSAGE(self)->mti == tsms_tpdu_mti_submit_report_mt){
+ /* 3GPP TS 23.040 ==> TP-Service-Centre-Time-Stamp (TP-SCTS)
+ * 7o */
+ if((pend - pdata)<7){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ memcpy(self->scts, pdata, 7);
+ pdata += 7;
+ }
+
+ if(self->pi & 0x01){ /* bit 0 */
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->pid = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+
+ if(self->pi & 0x02){ /* bit 1 */
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->dcs = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+
+ if(self->pi & 0x04){ /* bit 2 */
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->udl = *pdata;
+ pdata++;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ if((pend-pdata) > 0){
+ TSMS_TPDU_MESSAGE(self)->ud = tsk_buffer_create(pdata, (pend-pdata));
+ }
+ }
+
+bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_TPDU_MESSAGE(self);
+}
+
+tsms_tpdu_message_t* _tsms_tpdu_report_deserialize(const void* data, tsk_size_t size)
+{
+ return _tsms_tpdu_report_deserialize_2(data, size, tsk_false);
+}
+
+int _tsms_tpdu_report_serialize(const tsms_tpdu_report_t* self, tsk_buffer_t* output)
+{
+ uint8_t _1byte;
+
+ if(!self){
+ return -1;
+ }
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ tsms_address_serialize(self->smsc, output);
+#endif
+
+ /* SMS-DELIVER-REPORT/MS-SUBMIT-REPORT (both ACK and ERROR) first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-User-Data-Header-Indication(1b)
+
+ +----+----+----+----+----+----+----+----+
+ | |UDHI| | | | | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ _1byte = (TSMS_TPDU_MESSAGE(self)->mti & 0xF3); /*2b*/
+ _1byte |= ((uint8_t)self->udhi) << 6; /*1b*/
+ tsk_buffer_append(output, &_1byte, 1);
+
+ if(self->error){
+ /* 3GPP TS 23.040 ==> 9.2.3.22 TP-Failure-Cause(TP-FCS) */
+ tsk_buffer_append(output, &self->fcs, 1); /*0x00-0xFF ==> 1o*/
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.27 TP-Parameter-Indicator (TP-PI)
+ bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
+ Extension bit Reserved Reserved Reserved Reserved TP UDL TP DCS TP PID
+ As we are the serializer, we know which field should be added or not ==> append our own TP-PI field
+ */
+ _1byte = self->pi | 0x07 /* Bits 2,1 and 0 to '1' */;
+ tsk_buffer_append(output, &_1byte, 1); /* 1o*/
+
+ if(TSMS_TPDU_MESSAGE(self)->mti == tsms_tpdu_mti_submit_report_mt){
+ /* 3GPP TS 23.040 ==> TP-Service-Centre-Time-Stamp (TP-SCTS) */
+ tsk_buffer_append(output, self->scts, sizeof(self->scts)); /*7o*/
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->pid, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->dcs, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->udl, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ tsk_buffer_append(output, TSK_BUFFER_DATA(TSMS_TPDU_MESSAGE(self)->ud), TSK_BUFFER_SIZE(TSMS_TPDU_MESSAGE(self)->ud));
+
+ return 0;
+}
+
+tsms_tpdu_report_t* tsms_tpdu_report_create(const tsms_address_string_t smsc, tsk_bool_t submit, tsk_bool_t error)
+{
+ tsms_tpdu_report_t* ret = tsk_null;
+
+ if(!(ret = tsk_object_new(tsms_tpdu_report_def_t, smsc, submit, error))){
+ goto bail;
+ }
+
+bail:
+ return ret;
+}
+
+
+int tsms_tpdu_report_set_fcs(tsms_tpdu_report_t* self, uint8_t code)
+{
+ if(self){
+ tsms_tpdu_report_t* report = self;
+ report->fcs = code;
+ return 0;
+ }
+ return -1;
+}
+
+//=================================================================================================
+// SMS TPDU SMS-DELIVER-REPORT/SMS-SUBMIT-REPORT object definition
+//
+static tsk_object_t* tsms_tpdu_report_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_tpdu_report_t *report = self;
+ if(report){
+ const char* smsc;
+ tsk_bool_t error, submit;
+
+ smsc = va_arg(*app, const char*);
+ submit = va_arg(*app, tsk_bool_t);
+ error = va_arg(*app, tsk_bool_t);
+
+ /* init base*/
+ tsms_tpdu_message_init(TSMS_TPDU_MESSAGE(report), submit?tsms_tpdu_mti_submit_report_mt
+ :tsms_tpdu_mti_deliver_report_mo);
+ /* init self */
+ if(smsc){
+ report->smsc = tsms_address_smsc_create((const uint8_t*)smsc);
+ }
+ report->error = error;
+
+ /*init self*/
+ if(report->error){
+ report->fcs = TSMS_TPDU_DEFAULT_FCS;
+ }
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_tpdu_report_dtor(tsk_object_t * self)
+{
+ tsms_tpdu_report_t *report = self;
+ if(report){
+ /*deinit base*/
+ tsms_tpdu_message_deinit(TSMS_TPDU_MESSAGE(report));
+ /*deinit self*/
+ TSK_OBJECT_SAFE_FREE(report->smsc);
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static const tsk_object_def_t tsms_tpdu_report_def_s =
+{
+ sizeof(tsms_tpdu_report_t),
+ tsms_tpdu_report_ctor,
+ tsms_tpdu_report_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_tpdu_report_def_t = &tsms_tpdu_report_def_s;
diff --git a/tinySMS/src/tpdu/tsms_tpdu_status_report.c b/tinySMS/src/tpdu/tsms_tpdu_status_report.c
new file mode 100644
index 0000000..5c08b1b
--- /dev/null
+++ b/tinySMS/src/tpdu/tsms_tpdu_status_report.c
@@ -0,0 +1,327 @@
+/*
+* 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 tsms_tpdu_status_report.c
+ * @brief SMS TPDU SMS-STATUS-REPORT message as per 3GPP TS 23.040 section 9.2.2.3.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tpdu/tsms_tpdu_status_report.h"
+
+#include "tsk_string.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* memcpy */
+
+#define TSMS_ERROR_TOO_SHORT()\
+ TSK_DEBUG_ERROR("SMS-STATUS-REPORT == Data too short.");\
+ failed = tsk_true;\
+ goto bail;
+
+/** internal function used to deserialize a SMS-STATUS-REPORT message from a binary buffer. */
+tsms_tpdu_message_t* _tsms_tpdu_status_report_deserialize(const void* data, tsk_size_t size)
+{
+ /* You don't need to test data and test, this is an internal function called by tsms_tpdu_message_deserialize() */
+ tsms_tpdu_status_report_t* self = tsms_tpdu_status_report_create(0, tsk_null, tsk_null, tsms_tpdu_status_received, tsk_false);
+ tsk_bool_t failed = tsk_false;
+ tsk_size_t any_len;
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ if(!(self->smsc = tsms_address_deserialize(data, size, tsms_addr_smsc, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-STATUS-REPORT == Failed to parse SMSC address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+#endif
+
+ /* SMS-STATUS-REPORT first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-More-Messages-to-Send(1b)
+ - TP-Loop-Prevention(1b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Qualifier(1b)
+ +----+----+----+----+----+----+----+----+
+ | |UDHI| SRQ| |LP |MMS | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ TSMS_TPDU_MESSAGE(self)->mti = *pdata & 0x03;
+ self->mms = (*pdata & 0x04)>>2,
+ self->lp = (*pdata & 0x08)>>3,
+ self->srq = (*pdata & 0x20)>>5,
+ self->udhi = (*pdata & 0x40)>>6;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.6 TP-Message-Reference (TP-MR)
+ * 1o */
+ self->mr = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> xxxx TP-Recipient-Address (TP-RA) */
+ if(!(self->ra = tsms_address_deserialize(pdata, (pend-pdata), tsms_addr_da, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-STATUS-REPORT == Failed to parse RA address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+
+ /* 3GPP TS 23.040 ==> TP-Service-Centre-Time-Stamp (TP-SCTS)
+ * 7o */
+ if((pend - pdata)<=7){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ memcpy(self->scts, pdata, 7);
+ pdata += 7;
+
+ /* 3GPP TS 23.040 ==> xxxx TP Discharge Time(TP-DT)
+ * 7o */
+ if((pend - pdata)<=7){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ memcpy(self->dt, pdata, 7);
+ pdata += 7;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.15 TP Status(TP-ST)
+ * 1o */
+ self->st = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> xxxx TP-Parameter-Indicator (TP-PI)
+ * 1o */
+ self->pi = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->pid = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->dcs = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->udl = *pdata;
+ pdata++;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ if((pend-pdata) > 0){
+ TSMS_TPDU_MESSAGE(self)->ud = tsk_buffer_create(pdata, (pend-pdata));
+ }
+
+ bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_TPDU_MESSAGE(self);
+}
+
+/* internal function used to serialize a SMS-STATUS-REPORT to binary content. */
+int _tsms_tpdu_status_report_serialize(const tsms_tpdu_status_report_t* self, tsk_buffer_t* output)
+{
+ uint8_t _1byte;
+
+ if(!self){
+ return -1;
+ }
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ tsms_address_serialize(self->smsc, output);
+#endif
+
+ /* SMS-STATUS-REPORT first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-More-Messages-to-Send(1b)
+ - TP-Loop-Prevention(1b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Qualifier(1b)
+ +----+----+----+----+----+----+----+----+
+ | |UDHI| SRQ| |LP |MMS | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ _1byte = (TSMS_TPDU_MESSAGE(self)->mti & 0xF3); /*2b*/
+ _1byte |= ((uint8_t)self->mms) << 2 /*1b*/
+ | ((uint8_t)self->lp) << 3 /*1b*/
+ /*1b (unused)*/
+ | ((uint8_t)self->srq) << 5 /*1b*/
+ | ((uint8_t)self->udhi) << 6; /*1b*/
+ tsk_buffer_append(output, &_1byte, 1);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.6 TP-Message-Reference (TP-MR) */
+ tsk_buffer_append(output, &self->mr, 1); /*0-255 ==> 1o*/
+
+ /* 3GPP TS 23.040 ==> xxxx TP-Recipient-Address (TP-RA) */
+ tsms_address_serialize(self->ra, output);
+
+ /* 3GPP TS 23.040 ==> TP-Service-Centre-Time-Stamp (TP-SCTS) */
+ tsk_buffer_append(output, self->scts, sizeof(self->scts)); /*7o*/
+
+ /* 3GPP TS 23.040 ==> xxxx TP Discharge Time(TP-DT) */
+ tsk_buffer_append(output, self->dt, sizeof(self->dt)); /*7o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.15 TP Status(TP-ST) */
+ tsk_buffer_append(output, &self->st, 1); /*0-255 ==> 1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.27 TP-Parameter-Indicator (TP-PI)
+ bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
+ Extension bit Reserved Reserved Reserved Reserved TP UDL TP DCS TP PID
+ As we are the serializer, we know which field should be added or not ==> append our own TP-PI field
+ */
+ _1byte = self->pi | 0x07 /* Bits 2,1 and 0 to '1' */;
+ tsk_buffer_append(output, &_1byte, 1); /* 1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->pid, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->dcs, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->udl, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ tsk_buffer_append(output, TSK_BUFFER_DATA(TSMS_TPDU_MESSAGE(self)->ud), TSK_BUFFER_SIZE(TSMS_TPDU_MESSAGE(self)->ud));
+
+ return 0;
+}
+
+/**@ingroup tsms_tpdu_group
+* Creates new @a SMS-STATUS-REPORT message.
+* @a SMS-STATUS-REPORT messages are used to convey status reports from the SC (Service Center) to the MS (Mobile Station).<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.3.
+* @param mr TP-Message-Reference (TP-MR) as per 3GPP TS 23.040 section 9.2.3.6.
+* @param smsc The address of the SMSC. e.g. "+331253688".
+* @param recipient The address of the recipient. e.g. "+331253688".
+* @param status the status code as per 3GPP TS 23.040 v910 section 9.2.3.15 (TP-ST).
+* @param submit Indicates whether the report is for a @a SMS-SUBMIT message or not (@a SMS-COMMAND).<br>
+* See 3GPP TS 23.040 v910 section 9.2.3.26 (TP-SRQ).
+* @retval SMS-STATUS-REPORT message.
+*
+* See For more information, see @ref tsms_tpdu_group_STATUS_REPORT "SMS-STATUS-REPORT".
+*/
+tsms_tpdu_status_report_t* tsms_tpdu_status_report_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t recipient, tsms_tpdu_status_type_t status, tsk_bool_t submit)
+{
+ tsms_tpdu_status_report_t* ret = tsk_null;
+
+ if(!(ret = tsk_object_new(tsms_tpdu_status_report_def_t, mr, smsc, recipient, status))){
+ goto bail;
+ }
+
+bail:
+ return ret;
+}
+
+//=================================================================================================
+// SMS TPDU SMS-SUMBIT object definition
+//
+static tsk_object_t* tsms_tpdu_status_report_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_tpdu_status_report_t *status_report = self;
+ if(status_report){
+ const char* smsc, *recipient;
+ uint8_t mr;
+ tsms_tpdu_status_type_t status;
+ tsk_bool_t submit;
+
+#if defined(__GNUC__)
+ mr = (uint8_t)va_arg(*app, unsigned);
+#else
+ mr = va_arg(*app, uint8_t);
+#endif
+ smsc = va_arg(*app, const char*);
+ recipient = va_arg(*app, const char*);
+ status = va_arg(*app, tsms_tpdu_status_type_t);
+ submit = va_arg(*app, tsk_bool_t);
+
+ /* init base*/
+ tsms_tpdu_message_init(TSMS_TPDU_MESSAGE(status_report), tsms_tpdu_mti_status_report_mt);
+ /* init self */
+ status_report->mr = mr;
+ if(smsc){
+ status_report->smsc = tsms_address_smsc_create((const uint8_t*)smsc);
+ }
+ if(recipient){
+ status_report->ra = tsms_address_da_create((const uint8_t*)recipient);
+ }
+ status_report->st = status;
+ status_report->mms = TSMS_TPDU_DEFAULT_MMS;
+ status_report->srq = submit?0:1/*SMS-COMAND*/;
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_tpdu_status_report_dtor(tsk_object_t * self)
+{
+ tsms_tpdu_status_report_t *status_report = self;
+ if(status_report){
+ /*deinit base*/
+ tsms_tpdu_message_deinit(TSMS_TPDU_MESSAGE(status_report));
+ /*deinit self*/
+ TSK_OBJECT_SAFE_FREE(status_report->smsc);
+ TSK_OBJECT_SAFE_FREE(status_report->ra);
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static const tsk_object_def_t tsms_tpdu_status_report_def_s =
+{
+ sizeof(tsms_tpdu_status_report_t),
+ tsms_tpdu_status_report_ctor,
+ tsms_tpdu_status_report_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_tpdu_status_report_def_t = &tsms_tpdu_status_report_def_s;
diff --git a/tinySMS/src/tpdu/tsms_tpdu_submit.c b/tinySMS/src/tpdu/tsms_tpdu_submit.c
new file mode 100644
index 0000000..22095c0
--- /dev/null
+++ b/tinySMS/src/tpdu/tsms_tpdu_submit.c
@@ -0,0 +1,317 @@
+/*
+* 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 tsms_tpdu_submit.c
+ * @brief SMS TPDU SMS-SUBMIT (MO) message as per 3GPP TS 23.040 section 9.2.2.2.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tpdu/tsms_tpdu_submit.h"
+
+#include "tsk_string.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* memcpy */
+
+#define TSMS_ERROR_TOO_SHORT()\
+ TSK_DEBUG_ERROR("SMS-SUBMIT == Data too short.");\
+ failed = tsk_true;\
+ goto bail;
+
+/** internal function used to deserialize SMS-SUBMIT function.
+*/
+tsms_tpdu_message_t* _tsms_tpdu_submit_deserialize(const void* data, tsk_size_t size)
+{
+ /* You don't need to test data and test, this is an internal function called by tsms_tpdu_message_deserialize() */
+ tsms_tpdu_submit_t* self = tsms_tpdu_submit_create(0, tsk_null, tsk_null);
+ tsk_bool_t failed = tsk_false;
+ tsk_size_t any_len;
+ const uint8_t* pdata = data;
+ const uint8_t* pend = pdata + size;
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ if(!(self->smsc = tsms_address_deserialize(data, size, tsms_addr_smsc, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-SUBMIT == Failed to parse SMSC address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+#endif
+
+ /* SMS-SUBMIT first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-Reject-Duplicates(1b)
+ - TP-Validity-Period-Format(1b)
+ - TP-Reply-Path(1b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Request(1b)
+
+ +----+----+----+----+----+----+----+----+
+ |RP |UDHI|SRR |VPF | RD | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ TSMS_TPDU_MESSAGE(self)->mti = *pdata & 0x03;
+ self->rd = (*pdata & 0x04)>>2,
+ self->vpf = (*pdata & 0x18)>>3,
+ self->srr = (*pdata & 0x20)>>5,
+ self->udhi = (*pdata & 0x40)>>6,
+ self->rp = (*pdata & 0x80)>>7;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.6 TP-Message-Reference (TP-MR)
+ * 1o */
+ self->mr = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.8 TP-Destination-Address (TP-DA) */
+ if(!(self->da = tsms_address_deserialize(pdata, (pend-pdata), tsms_addr_da, &any_len)) || !any_len){
+ TSK_DEBUG_ERROR("SMS-SUBMIT == Failed to parse DA address");
+ failed = tsk_true;
+ goto bail;
+ }
+ else{
+ if((pdata += any_len) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->pid = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->dcs = *pdata;
+ if((++pdata) >= pend){
+ TSMS_ERROR_TOO_SHORT();
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.12 TP-Validity-Period
+ * 1o for Relative format (9.2.3.12.1)
+ * 7o for Absolute format (9.2.3.12.2)
+ * 7o for Enhanced format (9.2.3.12.3)*/
+ switch(self->vpf){
+ case tsms_tpdu_vpf_relative:
+ any_len = 1; break;
+ case tsms_tpdu_vpf_enhanced:
+ case tsms_tpdu_vpf_absolute:
+ any_len = 7; break;
+ default:
+ case tsms_tpdu_vpf_not_present:
+ any_len = 0; break;
+ }
+ if((tsk_size_t)(pend-pdata) <= any_len){
+ TSMS_ERROR_TOO_SHORT();
+ }
+ memcpy(self->vp, pdata, any_len);
+ pdata += any_len;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL)
+ * 1o */
+ TSMS_TPDU_MESSAGE(self)->udl = *pdata;
+ pdata++;
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ if((pend-pdata) > 0){
+ TSMS_TPDU_MESSAGE(self)->ud = tsk_buffer_create(pdata, (pend-pdata));
+ }
+
+bail:
+ if(failed){
+ TSK_OBJECT_SAFE_FREE(self);
+ }
+ return TSMS_TPDU_MESSAGE(self);
+}
+
+
+/** internal function used to serialize a SMS-SUBMIT message
+*/
+int _tsms_tpdu_submit_serialize(const tsms_tpdu_submit_t* self, tsk_buffer_t* output)
+{
+ uint8_t _1byte;
+
+ if(!self){
+ return -1;
+ }
+
+ /* SMSC address */
+#if TSMS_TPDU_APPEND_SMSC
+ tsms_address_serialize(self->smsc, output);
+#endif
+
+ /* SMS-SUBMIT first Octect:
+ - TP-Message-Type-Indicator(2b)
+ - TP-Reject-Duplicates(1b)
+ - TP-Validity-Period-Format(1b)
+ - TP-Reply-Path(1b)
+ - TP-User-Data-Header-Indicator(1b)
+ - TP-Status-Report-Request(1b)
+
+ +----+----+----+----+----+----+----+----+
+ |RP |UDHI|SRR |VPF | RD | MTI |
+ +----+----+----+----+----+----+----+----+
+ */
+ _1byte = (TSMS_TPDU_MESSAGE(self)->mti & 0xF3); /*2b*/
+ _1byte |= ((uint8_t)self->rd) << 2 /*1b*/
+ | ((uint8_t)self->vpf) << 3 /*2b*/
+ | ((uint8_t)self->srr) << 5 /*1b*/
+ | ((uint8_t)self->udhi) << 6; /*1b*/
+ tsk_buffer_append(output, &_1byte, 1);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.6 TP-Message-Reference (TP-MR) */
+ tsk_buffer_append(output, &self->mr, 1); /*0-255 ==> 1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.8 TP-Destination-Address (TP-DA) */
+ tsms_address_serialize(self->da, output);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.9 TP-Protocol-Identifier (TP-PID) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->pid, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.10 TP-Data-Coding-Scheme (TP-DCS) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->dcs, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.12 TP-Validity-Period
+ * 1o for Relative format (9.2.3.12.1)
+ * 7o for Absolute format (9.2.3.12.2)
+ * 7o for Enhanced format (9.2.3.12.3)*/
+ switch(self->vpf){
+ case tsms_tpdu_vpf_relative:
+ tsk_buffer_append(output, &self->vp, 1);
+ break;
+ case tsms_tpdu_vpf_enhanced:
+ case tsms_tpdu_vpf_absolute:
+ tsk_buffer_append(output, &self->vp, 7);
+ break;
+ default:
+ case tsms_tpdu_vpf_not_present:
+ break;
+ }
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL) */
+ tsk_buffer_append(output, &TSMS_TPDU_MESSAGE(self)->udl, 1); /*1o*/
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ tsk_buffer_append(output, TSK_BUFFER_DATA(TSMS_TPDU_MESSAGE(self)->ud), TSK_BUFFER_SIZE(TSMS_TPDU_MESSAGE(self)->ud));
+
+ return 0;
+}
+
+/**@ingroup tsms_tpdu_group
+* Creates new @a SMS-SUBMIT message.
+* @a SMS-SUBMIT messages are used to convey short messages from the MS (Mobile Station) to the SC (Service Center).<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.2.
+* @param mr TP-Message-Reference (TP-MR) as per 3GPP TS 23.040 section 9.2.3.6.
+* @param smsc The address of the SMS. e.g. "+331253688".
+* @param dest The destination address. e.g. "+331253688".
+* @retval SMS-SUBMIT message.
+*
+* See For more information, see @ref tsms_tpdu_group_SUBMIT "SMS-SUBMIT".
+*/
+tsms_tpdu_submit_t* tsms_tpdu_submit_create(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest)
+{
+ tsms_tpdu_submit_t* ret = tsk_null;
+
+ if(!(ret = tsk_object_new(tsms_tpdu_submit_def_t, mr, smsc, dest))){
+ goto bail;
+ }
+
+bail:
+ return ret;
+}
+
+//=================================================================================================
+// SMS TPDU SMS-SUMBIT object definition
+//
+static tsk_object_t* tsms_tpdu_submit_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_tpdu_submit_t *submit = self;
+ if(submit){
+ const char* smsc, *dest;
+ uint8_t mr;
+
+#if defined(__GNUC__)
+ mr = (uint8_t)va_arg(*app, unsigned);
+#else
+ mr = va_arg(*app, uint8_t);
+#endif
+ smsc = va_arg(*app, const char*);
+ dest = va_arg(*app, const char*);
+
+ /* init base*/
+ tsms_tpdu_message_init(TSMS_TPDU_MESSAGE(submit), tsms_tpdu_mti_submit_mo);
+ /* init self */
+ submit->mr = mr;
+ if(smsc){
+ submit->smsc = tsms_address_smsc_create((const uint8_t*)smsc);
+ }
+ if(dest){
+ submit->da = tsms_address_da_create((const uint8_t*)dest);
+ }
+
+ submit->vp[0] = TSMS_TPDU_DEFAULT_VP;
+ submit->vpf = TSMS_TPDU_DEFAULT_VPF;
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_tpdu_submit_dtor(tsk_object_t * self)
+{
+ tsms_tpdu_submit_t *submit = self;
+ if(submit){
+ /*deinit base*/
+ tsms_tpdu_message_deinit(TSMS_TPDU_MESSAGE(submit));
+ /*deinit self*/
+ TSK_OBJECT_SAFE_FREE(submit->smsc);
+ TSK_OBJECT_SAFE_FREE(submit->da);
+ }
+ else{
+ TSK_DEBUG_ERROR("Null");
+ }
+ return self;
+}
+
+static const tsk_object_def_t tsms_tpdu_submit_def_s =
+{
+ sizeof(tsms_tpdu_submit_t),
+ tsms_tpdu_submit_ctor,
+ tsms_tpdu_submit_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_tpdu_submit_def_t = &tsms_tpdu_submit_def_s;
diff --git a/tinySMS/src/tsms.c b/tinySMS/src/tsms.c
new file mode 100644
index 0000000..3ad8abf
--- /dev/null
+++ b/tinySMS/src/tsms.c
@@ -0,0 +1,453 @@
+/*
+* 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 tsms.h
+ * @brief SMS over IP Networks.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tsms.h"
+
+/** @mainpage tinySMS API Overview
+*
+* ======
+*
+* - @ref tsms_packing_group
+* - @ref tsms_tpdu_group
+* - @ref tsms_rpdu_group
+*
+* ======
+*
+*
+* <h1> 18 SMS over IP</h1>
+*
+* SMS stands for Short Message Service or Silent Messaging Service and is a communication service standardized in the GSM mobile communication system, using standardized communications protocols allowing the interchange of short text messages between mobile telephone devices.
+*
+* SMS technology has been specified by the ETSI in GSM 03.40 and 03.38 documents (3GPP TS 23.040 and 3GPP TS 23.038 respectively). These documents only describe how to use SMS over mobile networks (nothing for IP networks). The support of SMS over IP networks has been defined in 3GPP TS 24.341, which is fully implemented by doubango through tinySMS.
+*
+* In this section we will explain how to use SMS technology over IP within the IP Multimedia (IM) Core Network (CN) subsystem based on the Session Initiation Protocol (SIP) and SIP Events as defined in 3GPP TS 24.229.
+*
+*
+* @image html SMS_Architecture.png "Protocol layer overview for the Short Message Service"
+*
+* <h2>18.1 Modes</h2>
+* In real world, there are two ways to receive or send SMS messages over mobile networks: Binary (PDU) and Text mode.
+*
+* <h3>18.1.1 Text mode</h3>
+* The UE shall send the SMS as any other SIP MESSAGE request and it’s up to the IP-SM-GW to encode the payload before retransmission. This mode is out of scope because there is nothing special to do.
+*
+* <h3>18.1.2 Binary mode</h3>
+* The UE shall implement the roles of an SM-over-IP sender and an SM-over-IP receiver, according the procedures in sections 5.3.1 and 5.3.2 in 3GPP TS 24.341.
+*
+* The IMS core network shall take the role of an IP-SM-GW and support the general procedures in Section 5.3.3.1 of 3GPP TS 24.341, and the functions (answering of routing information query, and transport layer interworking) according to the procedures in Sections 5.3.3.3 and 5.3.3.4 in 3GPP TS 24.341.
+*
+* It’s up to the UE to encode the payload in binary format before sending the SMS. The payload contains a sequence of hexadecimal octets or decimal semi-octets strings encoded in binary format. The overall PDU (Protocol Data Unit) string contains some useful information (SMSC address, Service center time stamp, sender number, message reference ...) plus the actual message.
+* The message length can be up to 160 characters where each character represent 7bits [160/7bits], [140/8bits] or [70/16bits]. By default, each character represents 7bits encoded as per 3GPP TS 23.038.
+*
+* For IMS and LTE Networks, SMS messages shall be encapsulated in RPDUs (Relay Protocol Data Unit) data string as defined in 3GPP TS 24.011 section 7.3. The RPDU data is transferred from SM entity to SM entity using SIP MESSAGE requests. These SIP requests shall use the MIME type <b>"application/vnd.3gpp.sms"</b> for this purpose.
+*
+*/
+
+
+
+
+
+
+/**@defgroup tsms_tpdu_group Service provided by the SM-TL (Transport)
+* The Short Message Transfer Layer (SM TL) provides a service to the Short Message Application Layer (SM AL).
+*
+* This service enables the SM AL to transfer short messages to its peer entity, receive short messages from its
+* peer entity and receive reports about earlier requests for short messages to be transferred.
+*
+* ======
+*
+* - @ref tsms_tpdu_group_SUBMIT "18.2.1 SMS-SUBMIT"
+* - @ref tsms_tpdu_group_DELIVER "18.2.2 SMS-DELIVER"
+* - @ref tsms_tpdu_group_STATUS_REPORT "18.2.3 SMS-STATUS-REPORT"
+* - @ref tsms_tpdu_group_COMMAND "18.2.4 SMS-COMMAND"
+*
+* ======
+*
+* <h2> 18.2.1 SMS-SUBMIT @anchor tsms_tpdu_group_SUBMIT </h2>
+* <i>SMS-SUBMIT</i> messages are used to convey short messages from the MS (Mobile Station) to the SC (Service Center).<br>
+* <i>SMS-SUBMIT-REPORT</i> messages are used for positive or negative acknowledgement to an <i>SMS-DELIVER</i> or <i>SMS-STATUS-REPORT</i>.
+*
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.2.
+*
+* The code below shows how to send a <i>SMS-SUBMIT</i> message from the MS to the SC (MO).
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+int ret;
+tsms_tpdu_submit_t* submit = tsk_null;
+tsk_buffer_t* buffer = tsk_null;
+char* hex;
+const char* smsc = "+331000009";
+const char* destination = "+333361234567";
+const char* short_message = "hello world";
+uint8_t mr = 0xF5;
+
+submit = tsms_tpdu_submit_create(mr, smsc, destination);
+
+// encode the user data to GSM 7-bit alphabet
+if((buffer = tsms_pack_to_7bit(short_message))){
+ ret = tsms_tpdu_submit_set_userdata(submit, buffer, tsms_alpha_7bit);
+ if((hex = tsms_tpdu_submit_tohexastring(submit))){
+ TSK_DEBUG_INFO("SMS-SUBMIT=%s", hex);
+ TSK_FREE(hex);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+}
+TSK_OBJECT_SAFE_FREE(submit);
+* @endcode
+*
+* The message should be sent over the network as binary content. For <i>SMS-SUBMIT</i> messages, binary serialization is performed by @ref tsms_tpdu_submit_serialize().<br>
+* The code below shows how to serialize a <i>SMS-SUBMIT</i> message as binary content.
+*
+*
+*
+* <h2>18.2.2 SMS-DELIVER @anchor tsms_tpdu_group_DELIVER</h2>
+* <i>SMS-DELIVER</i> messages are used to convey short messages from the SC (Service Center) to the MS (Mobile Station). <i>SMS-DELIVER-REPORT</i> messages are used for positive or negative acknowledgement to an <i>SMS-DELIVER</i> or <i>SMS-STATUS-REPORT</i>.<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.1.<br>
+* The code below shows how to receive a <i>SMS-DELIVER</i> message, sent from the SC to the MS (MT).<br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+tsms_tpdu_message_t* sms_any = tsms_tpdu_message_deserialize_mt(data, size);
+if(sms_any && sms_any->mti == tsms_tpdu_mti_deliver_mt){
+ //tsms_tpdu_deliver_t* sms_deliver = TSMS_TPDU_DELIVER(sms_any); ==> Yes we can !
+ char* ascii;
+ if((ascii = tsms_tpdu_message_get_payload(sms_any))){
+ TSK_DEBUG_INFO("Message=%s", ascii);
+ TSK_FREE(ascii);
+ }
+}
+TSK_OBJECT_SAFE_FREE(sms_any);
+* @endcode
+*
+* When the MS receive a SMS-DELIVER message, it should send back a <i>SMS-DELIVER-REPORT</i> message. The code bellow shows how to send this kind of message.
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+int ret;
+tsms_tpdu_report_t* report = tsk_null;
+tsk_buffer_t* buffer = tsk_null;
+const char* smsc = "+331000009";
+tsk_bool_t isSUBMIT = tsk_false;
+tsk_bool_t isERROR = tsk_false;
+report = tsms_tpdu_report_create(smsc, isSUBMIT, isERROR);
+buffer = tsk_buffer_create_null();
+if(!(ret = tsms_tpdu_report_serialize(report, buffer))){
+//send(buffer->data, buffer->size);
+}
+TSK_OBJECT_SAFE_FREE(report);
+TSK_OBJECT_SAFE_FREE(buffer);
+* @endcode
+*
+*
+*
+* <h2>18.2.3 SMS-STATUS-REPORT @anchor tsms_tpdu_group_STATUS_REPORT</h2>
+* <i>SMS-STATUS-REPORT</i> messages are used to convey status reports from the SC (Service Center) to the MS (Mobile Station).<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.3.<br>
+* The code below shows how to receive a <i>SMS-STATUS-REPORT</i> message, sent from the SC to the MS (MT).<br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+tsms_tpdu_message_t* sms_any = tsms_tpdu_message_deserialize_mt(buffer->data, buffer->size);
+if(sms_any && sms_any->mti == tsms_tpdu_mti_status_report_mt){
+ tsms_tpdu_status_report_t* sms_status_report = TSMS_TPDU_STATUS_REPORT(sms_any);
+ switch(sms_status_report->st){
+ case tsms_tpdu_status_received:
+ case tsms_tpdu_status_forwarded:
+ case tsms_tpdu_status_replaced:
+ // ...
+ default:
+ break;
+ }
+}
+* @endcode
+*
+*
+*
+* <h2>18.2.4 SMS-COMMAND @anchor tsms_tpdu_group_COMMAND</h2>
+* <i>SMS-COMMAND</i> messages are used to convey commands from the MS (Mobile Station) to the SC (Service Center).<br>
+* For more information, please refer to 3GPP TS 23.040 section 9.2.2.4.<br>
+* The code below shows how to send a <i>SMS-COMMAND</i> (DELETE) from the MS to the SC.<br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+tsms_tpdu_command_t* command = tsk_null;
+char* hex;
+tsk_buffer_t* buffer = tsk_null;
+const char* smsc = "+331000009";
+const char* destination = "+333361234567";
+uint8_t mr = 0xF5;
+uint8_t message_number = 0xF8;
+
+command = tsms_tpdu_command_create(mr, smsc, destination, message_number, tsms_tpdu_cmd_delete);
+
+if((hex = tsms_tpdu_command_tohexastring(command))){
+ TSK_DEBUG_INFO("SMS-COMMAND=%s", hex);
+ TSK_FREE(hex);
+}
+TSK_OBJECT_SAFE_FREE(command);
+* @endcode
+*
+* The message should be sent over the network as binary content. For SMS-COMMAND messages, binary serialization is performed by @ref tsms_tpdu_command_serialize().
+* The code below shows how to serialize a SMS-COMMAND message as binary content.
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+if ((buffer = tsk_buffer_create_null())){
+ret = tsms_tpdu_command_serialize(command, buffer);
+// ret = send(socket, buffer->data, buffer->size);
+TSK_OBJECT_SAFE_FREE(buffer);
+}
+* @endcode
+* A SC receiving binary <i>SMS-COMMAND</i> message (or any other SMS-*) over the network should use @ref tsms_tpdu_message_deserialize_mo() function to deserialize the content.
+*/
+
+
+
+
+
+
+
+
+
+
+
+
+/**@defgroup tsms_rpdu_group Service provided by the SM-RL (Relay)
+*
+* The Short Message Relay Layer (SM-RL) provides a service to the Short Message Transfer Layer (SM-TL). This service enables the SM TL to send Transfer Protocol Data Units (TPDUs) to its peer entity, receive TPDUs from its peer entity and receive reports about earlier requests for TPDUs to be transferred.<br>
+*
+* For more information about how doubango provides SM-TL services, please refer to @ref tsms_tpdu_group "SM-TL".
+*
+* ======
+*
+* - @ref tsms_rpdu_group_DATA "18.3.1 RP-DATA"
+* - @ref tsms_rpdu_group_SMMA "18.3.2 RP-SMMA"
+* - @ref tsms_rpdu_group_ACK "18.3.3 RP-ACK"
+* - @ref tsms_rpdu_group_ERROR "18.3.4 RP-ERROR"
+*
+* ======
+*
+* <h2> 18.3.1 RP-DATA @anchor tsms_rpdu_group_DATA</h2>
+* <i>RP-DATA</i> messages are use to relay the TPDUs. These messages could be sent from the Network to Mobile Station (MT) or from the Mobile Station to the Network (MO).<br>
+* For more information, please refer to 3GPP TS 24.011 section 7.3.1.<br>
+* The code below shows how to send a RP-DATA message with a RP-User-Data (see 3GPP TS 23.011 section 8.2.5.3) information element which includes <i>SMS-SUBMIT</i> as type indicator (this use case comes from 3GPP TS 24.341 chapter B.5). <br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+int ret;
+tsk_buffer_t* buffer = tsk_null;
+tsms_tpdu_submit_t* sms_submit = tsk_null;
+tsms_rpdu_data_t* rp_data = tsk_null;
+const char* smsc = "+331000009";
+const char* destination = "+333361234567";
+const char* short_message = "hello world";
+uint8_t mr = 0xF5;
+uint8_t message_number = 0xF8;
+char* hex;
+
+// create SMS-SUBMIT message
+sms_submit = tsms_tpdu_submit_create(mr, smsc, destination);
+// Set content for SMS-SUBMIT
+if((buffer = tsms_pack_to_7bit(short_message))){
+ ret = tsms_tpdu_submit_set_userdata(sms_submit, buffer, tsms_alpha_7bit);
+ TSK_OBJECT_SAFE_FREE(buffer);
+}
+// create RP-DATA(SMS-SUBMIT) message and print its content (for test only)
+rp_data = tsms_rpdu_data_create_mo(mr, smsc, TSMS_TPDU_MESSAGE(sms_submit));
+if((hex = tsms_rpdu_message_tohexastring(TSMS_RPDU_MESSAGE(rp_data)))){
+ TSK_DEBUG_INFO("RP-DATA=%s", hex);
+ TSK_FREE(hex);
+}
+
+TSK_OBJECT_SAFE_FREE(buffer);
+TSK_OBJECT_SAFE_FREE(sms_submit);
+TSK_OBJECT_SAFE_FREE(rp_data);
+* @endcode
+*
+* The message should be sent over the network as binary content. For <i>RP-DATA</i> messages, binary serialization is performed by @ref tsms_rpdu_data_serialize().<br>
+* The code below shows how to serialize a <i>RP-DATA</i> message as binary content.<br>
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+if ((buffer = tsk_buffer_create_null())){
+ret = tsms_rpdu_data_serialize(rp_data, buffer);
+// ret = send(socket, buffer->data, buffer->size);
+TSK_OBJECT_SAFE_FREE(buffer);
+}
+* @endcode
+*
+* A SC receiving binary <i>RP-DATA</i> message (or any other <i>RP-*</i>) from the network should use tsms_rpdu_message_deserialize() function to deserialize the content.<br>
+* The code below shows how to receive a <i>RP-DATA</i> message with a <i>RP-User-Data</i> (see 3GPP TS 23.011 section 8.2.5.3) information element which includes <i>SMS-DELIVER</i> as type indicator (this use case comes from 3GPP TS 24.341 chapter B.6). <br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+* tsms_rpdu_message_t* rp_message = tsk_null;
+* tsms_tpdu_message_t* tpdu = tsk_null;
+
+if(!(rp_message = tsms_rpdu_message_deserialize(data, size))){ // Deserialize RP-* Message
+ TSK_DEBUG_ERROR("Failed to deserialize the RP-MESSAGE");
+ goto bail;
+}
+
+if(rp_message->mti == tsms_rpdu_type_data_mt){ // RP-DATA from SC to MS
+ char* ascii = tsk_null;
+ tsms_rpdu_data_t* rp_data = TSMS_RPDU_DATA(rp_message);
+ if((tpdu = tsms_tpdu_message_deserialize_mt(rp_data->udata->data, rp_data->udata->size))){ //Deserialize SMS-* Message (From SC to MS)
+ if(tpdu->mti == tsms_tpdu_mti_deliver_mt){ // SMS-DELIVER from SC to MS
+ if((ascii = tsms_tpdu_message_get_payload(tpdu))){
+ TSK_DEBUG_INFO("ASCII message=%s", ascii);
+ TSK_FREE(ascii);
+ }
+ }
+ }
+}
+
+bail:
+TSK_OBJECT_SAFE_FREE(rp_message);
+TSK_OBJECT_SAFE_FREE(tpdu);
+* @endcode
+*
+*
+*
+* <h2> 18.3.2 RP-SMMA @anchor tsms_rpdu_group_SMMA</h2>
+* This message is sent by the mobile station to relay a notification to the network that the mobile has memory available to receive one or more short messages.<br>
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.<br>
+* The code below shows how to send a <i>RP-SMMA</i> message.<br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+int ret;
+tsk_buffer_t* buffer = tsk_null;
+tsms_rpdu_smma_t* rp_smma = tsk_null;
+uint8_t mr = 0xF5;
+
+// create RP-SMMA message
+rp_smma = tsms_rpdu_smma_create(mr);
+// serialize
+buffer = tsk_buffer_create_null();
+ret = tsms_rpdu_data_serialize(rp_smma, buffer);
+// send(socket, buffer->data, buffer->size);
+
+TSK_OBJECT_SAFE_FREE(buffer);
+TSK_OBJECT_SAFE_FREE(rp_smma);
+* @endcode
+*
+*
+*
+* <h2> 18.3.3 RP-ACK @anchor tsms_rpdu_group_ACK</h2>
+* This message is sent between the MSC and the mobile station in both directions and used to relay the acknowledgement of a <i>RP-DATA</i> or <i>RP-SMMA</i> message reception.<br>
+* For more information, please refer to 3GPP TS 24.011 section 7.3.2.3.<br>
+* The code below shows how to send a <i>RP-ACK</i> message with a <i>RP-User-Data</i> (see 3GPP TS 23.011 section 8.2.5.3) information element which includes <i>SMS-DELIVER-REPORT</i> as type indicator (this use case comes from 3GPP TS 24.341 chapter B.6 section 8). <br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+int ret;
+tsk_buffer_t* buffer = tsk_null;
+tsms_tpdu_report_t* sms_report = tsk_null;
+tsms_rpdu_ack_t* rp_ack= tsk_null;
+const char* smsc = "+331000000";
+tsk_bool_t isSUBMIT = tsk_false; // is SMS-DELIVER-REPORT
+tsk_bool_t isERROR = tsk_false;
+uint8_t mr = 0xF5;
+
+// create SMS-DELIVER-REPORT message
+sms_report = tsms_tpdu_report_create(smsc, isSUBMIT, isERROR);
+// create RP-ACK message (From MS to SC)
+rp_ack = tsms_rpdu_ack_create_mo(mr, TSMS_TPDU_MESSAGE(sms_report));
+// serialize
+buffer = tsk_buffer_create_null();
+if(!(ret = tsms_rpdu_data_serialize(rp_ack, buffer))){
+// send(socket, buffer->data, buffer->size);
+}
+TSK_OBJECT_SAFE_FREE(buffer);
+TSK_OBJECT_SAFE_FREE(sms_report);
+TSK_OBJECT_SAFE_FREE(rp_ack);
+
+* @endcode
+*
+*
+*
+*
+* <h2> 18.3.4 RP-ERROR @anchor tsms_rpdu_group_ERROR</h2>
+* This message is sent between the MSC and the mobile station in both directions and used to relay an error cause from an erroneous short message or notification transfer attempt.<br>
+* For more information, please refer to 3GPP TS 24.011 section7.3.2.4.<br>
+* The code below shows how to send a <i>RP-ERROR</i> message with a <i>RP-User-Data</i> (see 3GPP TS 23.011 section 8.2.5.3) information element which includes <i>SMS-DELIVER-REPORT</i> as type indicator. In this example, the error message is sent because the “call is barred”. For more information about the cause values that may be contained in an <i>RP-ERROR</i> message, please refer to 3GPP TS 24.011 section 8.2.5.4.<br>
+*
+* @code
+#include "tsk.h"
+#include "tinysms.h"
+
+int ret;
+tsk_buffer_t* buffer = tsk_null;
+tsms_tpdu_report_t* sms_report = tsk_null;
+tsms_rpdu_error_t* rp_error= tsk_null;
+tsk_bool_t isSUBMIT = tsk_false; // is SMS-DELIVER-REPORT
+tsk_bool_t isERROR = tsk_true;
+const char* smsc = "+331000000";
+uint8_t mr = 0xF5;
+
+// create SMS-DELIVER-REPORT message
+sms_report = tsms_tpdu_report_create(smsc, isSUBMIT, isERROR);
+// create RP-ERROR message
+rp_error = tsms_rpdu_error_create_mo(mr, TSMS_TPDU_MESSAGE(sms_report),
+0x0A//call barred
+);
+// serialize
+buffer = tsk_buffer_create_null();
+if(!(ret = tsms_rpdu_data_serialize(rp_error, buffer))){
+ // send(socket, buffer->data, buffer->size);
+}
+
+TSK_OBJECT_SAFE_FREE(buffer);
+TSK_OBJECT_SAFE_FREE(sms_report);
+TSK_OBJECT_SAFE_FREE(rp_error);
+
+* @endcode
+*/
diff --git a/tinySMS/src/tsms_address.c b/tinySMS/src/tsms_address.c
new file mode 100644
index 0000000..26da4c6
--- /dev/null
+++ b/tinySMS/src/tsms_address.c
@@ -0,0 +1,249 @@
+/*
+* 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 tsms_address.c
+ * @brief SMS address encoder/decoder.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tsms_address.h"
+
+#include "tsk_string.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+#include <string.h>
+
+/** swaps the address from 'abcd' to 'badc'
+*/
+char* tsms_address_swap(const char* in, tsk_size_t in_len)
+{
+ tsk_size_t i;
+ char* ret = tsk_null;
+ if(tsk_strnullORempty(in)){
+ goto bail;
+ }
+ ret = tsk_calloc(in_len + 2/*\0 and trainling F*/, sizeof(uint8_t));
+
+ if(in_len>=2){
+ for(i=0; i<in_len; i+=2){
+ ret[i] = in[i+1];
+ ret[i+1] = in[i];
+ }
+ }
+
+ if(in_len & 0x01){ /* odd number? */
+ ret[i-2] = 'F';
+ ret[i-1] = in[i-2];
+ }
+
+bail:
+ return ret;
+}
+
+tsms_address_t* tsms_address_create(const tsms_address_string_t digits, tsms_address_type_t type)
+{
+ return tsk_object_new(tsms_address_def_t, digits, type);
+}
+
+tsms_address_t* tsms_address_oa_create(const tsms_address_string_t digits)
+{
+ return tsms_address_create(digits, tsms_addr_oa);
+}
+
+tsms_address_t* tsms_address_da_create(const tsms_address_string_t digits)
+{
+ return tsms_address_create(digits, tsms_addr_da);
+}
+
+tsms_address_t* tsms_address_smsc_create(const tsms_address_string_t digits)
+{
+ return tsms_address_create(digits, tsms_addr_smsc);
+}
+
+/** Serialize the address as per 3GPP TS 23.040 v910 section 9.1.2.5. */
+int tsms_address_serialize(const tsms_address_t* address, tsk_buffer_t* output)
+{
+ char* number = tsk_null;
+ tsk_size_t i, num_len/*real len*/;
+ uint8_t type_of_address;
+ if(!output){
+ return -1;
+ }
+
+ /* For more information see 3GPP TS 23.040 v910 section 9.1.2.5
+
+ 1 - Address-Length
+ 2 - Type-of-Address
+ +----+----+----+----+----+----+----+----+
+ | 1 | TON | NPI |
+ +----+----+----+----+----+----+----+----+
+ 3 - Phone number in semi octets
+ */
+ number = tsms_address_swap(address ? address->digits : tsk_null, address ? strlen(address->digits) : 0);
+
+ if(number){
+ tsk_size_t len = (address->type == tsms_addr_smsc) ?
+ ((strlen(number)/2) + 1) /* Number of octets plus 1. */
+ : strlen(address->digits); /* Number of BCD digits */
+ /* 1 - Address-Length */
+ tsk_buffer_append(output, &len, 1);
+ }
+ else{
+ /* 1 - Address-Length */
+ static uint8_t _1bytes = 0x00;
+ tsk_buffer_append(output, &_1bytes, 1);
+ goto bail; /* neither 2 nor 3 will be executed */
+ }
+
+ /* 2 - Type-of-Address */
+ type_of_address = (address->npi | (((address->ton << 4) | 0x80)));
+ tsk_buffer_append(output, &type_of_address, 1);
+ /* 3 - Phone number in semi octets (BCD digits) */
+ if(((num_len = strlen(number)))){
+ unsigned _1bytes; /* do not use neither int8_t nor uint8_t */
+ /* as number comes from swap ==> num_len not odd */
+ for(i=0; i<num_len; i+=2){
+ if(sscanf(&number[i], "%2x", &_1bytes)){ /*do not use tsk_atox(str), because str should end with '\0'.*/
+ tsk_buffer_append(output, &_1bytes, 1);
+ }
+ }
+ }
+
+bail:
+ TSK_FREE(number);
+ return 0;
+}
+
+
+tsms_address_t* tsms_address_deserialize(const void* data, tsk_size_t size, tsms_address_type_t xtype, tsk_size_t *length)
+{
+ tsms_address_t* address = tsk_null;
+ uint8_t addr_len, _1byte, i;
+ const uint8_t* pdata = data;
+ *length = 0;
+
+ if(!pdata || size<=2){
+ TSK_DEBUG_ERROR("Invalid Parameter.");
+ goto bail;
+ }
+
+ /* 1 - Address-Length */
+ addr_len = *pdata;
+ pdata++;
+
+ /*== len=0 ==*/
+ if(!addr_len){
+ address = tsms_address_create(tsk_null, xtype);
+ *length = 1;
+ goto bail;
+ }
+ /*== check validity for non-zero-length address ==*/
+ addr_len = (xtype == tsms_addr_smsc) ?
+ (addr_len - 1) /* Number of octets plus 1. */
+ : ((addr_len/2) + (addr_len%2)); /* Number of BCD digits */
+ if((tsk_size_t)(1 /*Address-Length*/ + 1 /*Type-of-Address*/ + addr_len /* digits */) >= size){
+ TSK_DEBUG_ERROR("Too short to contain an address.");
+ goto bail;
+ }
+ else{
+ address = tsms_address_create(tsk_null, xtype);
+ *length = 1 /*Address-Length*/ + 1 /*Type-of-Address*/ + addr_len /* digits */;
+ }
+
+ /* 2 - Type-of-Address
+ +----+----+----+----+----+----+----+----+
+ | 1 | TON | NPI |
+ +----+----+----+----+----+----+----+----+
+ */
+ address->ton = ((*pdata &0x70) >> 4);
+ address->npi = (*pdata &0x0F);
+ pdata++;
+
+ /* 3 - Phone number in semi octets (BCD digits) */
+ //address->digits = tsk_calloc((addr_len/2) + 1, sizeof(uint8_t));
+ for(i=0; i<addr_len; i++, pdata++){
+ _1byte = ((*pdata << 4) | (*pdata >> 4));
+ if((_1byte & 0x0F) == 0x0F){ /* ends with 'F'? */
+ _1byte = ((_1byte & 0xF0) >> 4);
+ tsk_strcat_2(&address->digits, "%.1x", _1byte);
+ }
+ else{
+ tsk_strcat_2(&address->digits, "%.2x", _1byte);
+ }
+ }
+
+bail:
+ return address;
+}
+
+//=================================================================================================
+// SMS Address object definition
+//
+static tsk_object_t* tsms_address_ctor(tsk_object_t * self, va_list * app)
+{
+ tsms_address_t *address = self;
+ if(address){
+ const char* digits = va_arg(*app, const char*);
+ address->type = va_arg(*app, tsms_address_type_t);
+
+ if(!tsk_strnullORempty(digits)){
+ if(*digits == '+'){
+ address->npi = tsms_addr_npi_isdn;
+ address->ton = tsms_addr_ton_international;
+ address->digits = tsk_strdup((digits+1));
+ }
+ else{
+ address->npi = tsms_addr_npi_national;
+ address->ton = tsms_addr_ton_national;
+ address->digits = tsk_strdup((digits));
+ }
+ }
+ else{
+ address->npi = tsms_addr_npi_unknown;
+ address->ton = tsms_addr_ton_unknown;
+ }
+
+ }
+ return self;
+}
+
+static tsk_object_t* tsms_address_dtor(tsk_object_t * self)
+{
+ tsms_address_t *address = self;
+ if(address){
+ TSK_FREE(address->digits);
+ }
+
+ return self;
+}
+
+static const tsk_object_def_t tsms_address_def_s =
+{
+ sizeof(tsms_address_t),
+ tsms_address_ctor,
+ tsms_address_dtor,
+ tsk_null,
+};
+const tsk_object_def_t *tsms_address_def_t = &tsms_address_def_s;
diff --git a/tinySMS/src/tsms_common.c b/tinySMS/src/tsms_common.c
new file mode 100644
index 0000000..92cda4c
--- /dev/null
+++ b/tinySMS/src/tsms_common.c
@@ -0,0 +1,417 @@
+/*
+* 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 tsms_common.c
+ * @brief SMS Commons (3GPP TS 23.038 and al.).
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tsms_common.h"
+
+#include "tinysms/tsms_packing.h"
+
+#include "tsk_object.h"
+#include "tsk_string.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* strlen() */
+
+/* ======================== TPDU ========================
+=========================================================*/
+
+extern tsms_tpdu_message_t* _tsms_tpdu_submit_deserialize(const void* data, tsk_size_t size);
+extern tsms_tpdu_message_t* _tsms_tpdu_deliver_deserialize(const void* data, tsk_size_t size);
+extern tsms_tpdu_message_t* _tsms_tpdu_command_deserialize(const void* data, tsk_size_t size);
+extern tsms_tpdu_message_t* _tsms_tpdu_report_deserialize(const void* data, tsk_size_t size);
+extern tsms_tpdu_message_t* _tsms_tpdu_status_report_deserialize(const void* data, tsk_size_t size);
+
+extern int _tsms_tpdu_submit_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_tpdu_deliver_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_tpdu_command_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_tpdu_report_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_tpdu_status_report_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output);
+
+int tsms_tpdu_message_init(tsms_tpdu_message_t* self, tsms_tpdu_mti_t mti)
+{
+ if(self){
+ self->MobOrig = tsk_true;
+ self->mti = mti;
+ self->pid = TSMS_TPDU_DEFAULT_PID;
+ self->dcs = TSMS_TPDU_DEFAULT_DCS;
+ return 0;
+ }
+ return -1;
+}
+
+/**@ingroup tsms_tpdu_group
+* Serialize a @a TP-Message (@a SMS-SUBMIT, @a SMS-COMMAND, @a SMS-DELIVER, ...) as binary content.
+* @param self The @a TP-Message to serialize.
+* @param output A pointer to the @a output buffer.
+* @param MobOrig Indicates whether the message is Mobile Originated or not.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @sa @ref tsms_tpdu_submit_serialize<br>@ref tsms_tpdu_command_serialize<br>@ref tsms_tpdu_deliver_serialize<br>@ref tsms_tpdu_report_serialize<br>@ref tsms_tpdu_status_report_serialize
+*/
+int tsms_tpdu_message_serialize(const tsms_tpdu_message_t* self, tsk_buffer_t* output, tsk_bool_t MobOrig)
+{
+ if(!self){
+ return -1;
+ }
+
+ /* 3GPP TS 23.040 - 9.2.3.1 TP Message Type Indicator (TP MTI)
+ bit1 bit0 Message type
+ 0 0 SMS-DELIVER (in the direction SC to MS)
+ 0 0 SMS-DELIVER-REPORT (in the direction MS to SC)
+ 1 0 SMS-STATUS-REPORT (in the direction SC to MS)
+ 1 0 SMS-COMMAND (in the direction MS to SC)
+ 0 1 SMS-SUBMIT (in the direction MS to SC)
+ 0 1 SMS-SUBMIT-REPORT (in the direction SC to MS)
+ 1 1 Reserved
+ */
+ if(MobOrig){ /* MO */
+ switch(self->mti){
+ case tsms_tpdu_mti_deliver_report_mo: return _tsms_tpdu_report_serialize(self, output); /* SMS-DELIVER-REPORT */
+ case tsms_tpdu_mti_command_mo: return _tsms_tpdu_command_serialize(self, output); /* SMS-COMMAND */
+ case tsms_tpdu_mti_submit_mo: return _tsms_tpdu_submit_serialize(self, output); /* SMS-SUBMIT */
+ default: return -2;
+ }
+ }
+ else{ /* MT */
+ switch(self->mti){
+ case tsms_tpdu_mti_deliver_mt: return _tsms_tpdu_deliver_serialize(self, output); /* SMS-DELIVER */
+ case tsms_tpdu_mti_status_report_mt: return _tsms_tpdu_status_report_serialize(self, output); /* SMS-STATUS-REPORT */
+ case tsms_tpdu_mti_submit_report_mt: return _tsms_tpdu_report_serialize(self, output); /* SMS-SUBMIT-REPORT */
+ default: return -2;
+ }
+ }
+}
+
+/**@ingroup tsms_tpdu_group
+* Deserialize a @a TP-Message (@a SMS-SUBMIT, @a SMS-COMMAND, @a SMS-DELIVER, ...) from binary content.
+* @param data A pointer to the binary data.
+* @param size The size of the buffer holding the binary data.
+* @param MobOrig Indicates whether the binaray content is Mobile Originated (Sent by the MS) or not.
+* @retval @ref tsms_tpdu_message_t if succeed and @a Null otherwise.
+*/
+tsms_tpdu_message_t* tsms_tpdu_message_deserialize(const void* data, tsk_size_t size, tsk_bool_t MobOrig)
+{
+ tsms_tpdu_mti_t mti;
+ uint8_t smsc_len = 0;
+ tsms_tpdu_message_t* ret = tsk_null;
+
+ if(!data || size<=1){
+ TSK_DEBUG_ERROR("Invalid parameter.");
+ return tsk_null;
+ }
+
+#if TSMS_TPDU_APPEND_SMSC
+ smsc_len = *((uint8_t*)data) + 1/* len itself*/;
+ if(smsc_len>=size){
+ TSK_DEBUG_ERROR("Too short.");
+ return tsk_null;
+ }
+#endif
+
+ mti = (*(((uint8_t*)data)+smsc_len) & 0x03);
+
+ /* 3GPP TS 23.040 - 9.2.3.1 TP Message Type Indicator (TP MTI)
+ bit1 bit0 Message type
+ 0 0 SMS-DELIVER (in the direction SC to MS)
+ 0 0 SMS-DELIVER-REPORT (in the direction MS to SC)
+ 1 0 SMS-STATUS-REPORT (in the direction SC to MS)
+ 1 0 SMS-COMMAND (in the direction MS to SC)
+ 0 1 SMS-SUBMIT (in the direction MS to SC)
+ 0 1 SMS-SUBMIT-REPORT (in the direction SC to MS)
+ 1 1 Reserved
+ */
+ if(MobOrig){ /* MO */
+ switch(mti){
+ case tsms_tpdu_mti_deliver_report_mo: ret = _tsms_tpdu_report_deserialize(data, size); break; /* SMS-DELIVER-REPORT */
+ case tsms_tpdu_mti_command_mo: ret = _tsms_tpdu_command_deserialize(data, size); break; /* SMS-COMMAND */
+ case tsms_tpdu_mti_submit_mo: ret = _tsms_tpdu_submit_deserialize(data, size); break; /* SMS-SUBMIT */
+ default: return tsk_null;
+ }
+ }
+ else{ /* MT */
+ switch(mti){
+ case tsms_tpdu_mti_deliver_mt: ret = _tsms_tpdu_deliver_deserialize(data, size); break;/* SMS-DELIVER */
+ case tsms_tpdu_mti_status_report_mt: ret = _tsms_tpdu_status_report_deserialize(data, size); break;/* SMS-STATUS-REPORT */
+ case tsms_tpdu_mti_submit_report_mt: ret = _tsms_tpdu_report_deserialize(data, size); break;/* SMS-SUBMIT-REPORT */
+ default: return tsk_null;
+ }
+ }
+
+ if(ret){
+ ret->MobOrig = MobOrig;
+ }
+ return ret;
+}
+
+/**@ingroup tsms_tpdu_group
+* For debugging.
+*/
+char* tsms_tpdu_message_tostring(const tsms_tpdu_message_t* self, tsk_bool_t MobOrig)
+{
+ char* ret = tsk_null;
+ tsk_buffer_t* output = tsk_null;
+ if(!self){
+ goto bail;
+ }
+
+ if((output = tsk_buffer_create_null())){
+ if(!tsms_tpdu_message_serialize(self, output, MobOrig)){
+ ret = tsk_strndup(output->data, output->size);
+ }
+ TSK_OBJECT_SAFE_FREE(output);
+ }
+
+bail:
+ return ret;
+}
+
+/**@ingroup tsms_tpdu_group
+* Serializes any @a TP-Message(@a SMS-SUBMIT, @a SMS-DELIVER, @a SMS-COMMAND ...) as hexa-string content.
+* @param self A pointer to the @a TP-Message to serialize.
+* @param MobOrig Indicates whether its an Mobile originated message or not.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*
+* @sa @ref tsms_tpdu_submit_tohexastring<br>@ref tsms_tpdu_command_tohexastring<br>@ref tsms_tpdu_deliver_tohexastring<br>@ref tsms_tpdu_report_tohexastring<br>@ref tsms_tpdu_status_report_tohexastring
+*/
+char* tsms_tpdu_message_tohexastring(const tsms_tpdu_message_t* self, tsk_bool_t MobOrig)
+{
+ char* ret = tsk_null;
+ tsk_buffer_t* output = tsk_null;
+ if(!self){
+ goto bail;
+ }
+
+ if((output = tsk_buffer_create_null())){
+ if(!tsms_tpdu_message_serialize(self, output, MobOrig)){
+ tsk_size_t i;
+ for(i=0;i<output->size;i++){
+ tsk_strcat_2(&ret, "%.2X", *(TSK_BUFFER_TO_U8(output)+i));
+ }
+ }
+ TSK_OBJECT_SAFE_FREE(output);
+ }
+
+bail:
+ return ret;
+}
+
+/**@ingroup tsms_tpdu_group
+* Gets the payload (ASCII string) of the @a TP-Message(@a SMS-SUBMIT, @a SMS-DELIVER, @a SMS-COMMAND ...).
+* @param self Any @a TP-Message which holds the user content. Should be @a SMS-SUBMIT or @a SMS-DELIVER.
+* @retval A pointer to the ascii string if succeed and non-zero error code otherwise.
+*/
+char* tsms_tpdu_message_get_payload(const tsms_tpdu_message_t* self)
+{
+ if(!self || !self->ud || !self->ud->data || !self->ud->size){
+ TSK_DEBUG_WARN("No content.");
+ return tsk_null;
+ }
+
+ switch(TSMS_ALPHA_FROM_DCS(self->dcs)){
+ case tsms_alpha_7bit:
+ return tsms_pack_from_7bit(self->ud->data, self->ud->size);
+ case tsms_alpha_8bit:
+ return tsms_pack_from_8bit(self->ud->data, self->ud->size);
+ case tsms_alpha_ucs2:
+ return tsms_pack_from_ucs2(self->ud->data, self->ud->size);
+ case tsms_alpha_reserved:
+ default:
+ {
+ TSK_DEBUG_ERROR("%d alpha not suported", TSMS_ALPHA_FROM_DCS(self->dcs));
+ return tsk_null;
+ }
+ }
+}
+
+/**@ingroup tsms_tpdu_group
+* Sets the content of any @a TP-Message(@a SMS-SUBMIT, @a SMS-DELIVER, @a SMS-COMMAND ...).
+* @param self A pointer to the message.
+* @param udata A pointer the content.
+* @param alpha The alphabet used to encode the content.
+* @retval Zero if succeed and non-zero error code otherwise.
+* @sa @ref tsms_tpdu_submit_set_userdata<br>@ref tsms_tpdu_command_set_cmddata<br>@ref tsms_tpdu_report_set_userdata<br>@ref tsms_tpdu_status_report_set_userdata
+*/
+int tsms_tpdu_message_set_userdata(tsms_tpdu_message_t* self, const tsk_buffer_t* udata, tsms_alphabet_t alpha)
+{
+ if(!self || !udata){
+ return -1;
+ }
+ /* SMS alphabet values as per 3GPP TS 23.038 v911 section 4.
+ * Part of TP-DCS (SMS Data Coding Scheme).
+ */
+ self->dcs = ((self->dcs & 0xF3) | (alpha << 2)); /* Bit3 and Bit2 */
+
+ TSK_OBJECT_SAFE_FREE(self->ud);
+
+ /* 3GPP TS 23.040 ==> 9.2.3.16 TP-User-Data-Length (TP-UDL)
+ * (alpha = SMS_ALPHA_7bit) ==> number of septets.
+ * ((alpha == SMS_ALPHA_8bit) || (alpha == SMS_ALPHA_UCS2)) ==> number of octes.
+ */
+
+ /* 3GPP TS 23.040 ==> 9.2.3.24 TP-User Data (TP-UD) */
+ switch(alpha){
+ case tsms_alpha_7bit: {
+ self->udl = (udata->size) + (udata->size/7);
+ self->ud = tsk_buffer_create(udata->data, udata->size);
+ }
+ break;
+ case tsms_alpha_8bit:
+ case tsms_alpha_ucs2: {
+ self->udl = udata->size;
+ self->ud = tsk_buffer_create(udata->data, udata->size);
+ }
+ break;
+
+ default:
+ {
+ TSK_DEBUG_ERROR("Invalid Alphabet.");
+ return -2;
+ }
+ }
+ return 0;
+}
+
+/** internal function used to deinit a TP-Message.*/
+int tsms_tpdu_message_deinit(tsms_tpdu_message_t* self)
+{
+ if(self){
+ TSK_OBJECT_SAFE_FREE(self->ud);
+ return 0;
+ }
+ return -1;
+}
+
+
+
+/* ======================== RPDU ========================
+=========================================================*/
+
+extern int _tsms_rpdu_rpdata_serialize(const tsms_rpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_rpdu_rpsmma_serialize(const tsms_rpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_rpdu_rpack_serialize(const tsms_rpdu_message_t* self, tsk_buffer_t* output);
+extern int _tsms_rpdu_rperror_serialize(const tsms_rpdu_message_t* self, tsk_buffer_t* output);
+
+
+extern tsms_rpdu_message_t* _tsms_rpdu_rpdata_deserialize(const void* data, tsk_size_t size);
+extern tsms_rpdu_message_t* _tsms_rpdu_rpsmma_deserialize(const void* data, tsk_size_t size);
+extern tsms_rpdu_message_t* _tsms_rpdu_rpack_deserialize(const void* data, tsk_size_t size);
+extern tsms_rpdu_message_t* _tsms_rpdu_rperror_deserialize(const void* data, tsk_size_t size);
+
+
+/**@ingroup tsms_rpdu_group
+* Serialize a @a RP-Message (@a RP-DATA, @a RP-SMMA, @a SMS-ACK, ...) as binary content.
+* @param self A pointer to the @a RP-Message to serialize.
+* @param output A pointer to the @a output buffer.
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @sa @ref tsms_rpdu_data_serialize<br>@ref tsms_rpdu_smma_serialize<br>@ref tsms_rpdu_ack_serialize<br>@ref tsms_rpdu_error_serialize
+*/
+int tsms_rpdu_message_serialize(const tsms_rpdu_message_t* self, tsk_buffer_t* output)
+{
+ if(!self || !output){
+ TSK_DEBUG_ERROR("Invalid Parameter");
+ return -1;
+ }
+
+ switch(self->mti){
+ case tsms_rpdu_type_data_mo:
+ case tsms_rpdu_type_data_mt:
+ return _tsms_rpdu_rpdata_serialize(self, output);
+ case tsms_rpdu_type_ack_mo:
+ case tsms_rpdu_type_ack_mt:
+ return _tsms_rpdu_rpack_serialize(self, output);
+ case tsms_rpdu_type_error_mo:
+ case tsms_rpdu_type_error_mt:
+ return _tsms_rpdu_rperror_serialize(self, output);
+ case tsms_rpdu_type_smma_mo:
+ return _tsms_rpdu_rpsmma_serialize(self, output);
+ }
+
+ return -2;
+}
+
+/**@ingroup tsms_rpdu_group
+* Deserialize a @a RP-Message (@a RP-DATA, @a RP-SMMA, @a SMS-ACK, ...) from binary content.
+* @param data A pointer to the binary data.
+* @param size The size of the buffer holding the binary data.
+* @retval @ref tsms_rpdu_message_t if succeed and @a Null otherwise.
+*/
+tsms_rpdu_message_t* tsms_rpdu_message_deserialize(const void* data, tsk_size_t size)
+{
+ tsms_rpdu_type_t mti;
+
+ if(!data || size<2 /* MTI and MR*/){
+ TSK_DEBUG_ERROR("Invalid parameter.");
+ return tsk_null;
+ }
+
+ mti = (*((uint8_t*)data) & 0x07);
+
+ switch(mti){
+ case tsms_rpdu_type_data_mo:
+ case tsms_rpdu_type_data_mt:
+ return _tsms_rpdu_rpdata_deserialize(data, size);
+ case tsms_rpdu_type_ack_mo:
+ case tsms_rpdu_type_ack_mt:
+ return _tsms_rpdu_rpack_deserialize(data, size);
+ case tsms_rpdu_type_error_mo:
+ case tsms_rpdu_type_error_mt:
+ return _tsms_rpdu_rperror_deserialize(data, size);
+ case tsms_rpdu_type_smma_mo:
+ return _tsms_rpdu_rpsmma_deserialize(data, size);
+ }
+
+ return tsk_null;
+}
+
+/**@ingroup tsms_rpdu_group
+* Serializes any @a RP-Message (@a RP-DATA, @a RP-SMMA, @a SMS-ACK, ...) as hexa-string content.
+* @param self A pointer to the @a RP-Message to serialize.
+* @retval A pointer to the hexa-string if succeed and Null otherwise.
+*/
+char* tsms_rpdu_message_tohexastring(const tsms_rpdu_message_t* self)
+{
+ char* ret = tsk_null;
+ tsk_buffer_t* output = tsk_null;
+ if(!self){
+ goto bail;
+ }
+
+ if((output = tsk_buffer_create_null())){
+ if(!tsms_rpdu_message_serialize(self, output)){
+ tsk_size_t i;
+ for(i=0;i<output->size;i++){
+ tsk_strcat_2(&ret, "%.2X", *(TSK_BUFFER_TO_U8(output)+i));
+ }
+ }
+ TSK_OBJECT_SAFE_FREE(output);
+ }
+
+bail:
+ return ret;
+}
diff --git a/tinySMS/src/tsms_packing.c b/tinySMS/src/tsms_packing.c
new file mode 100644
index 0000000..9f9f916
--- /dev/null
+++ b/tinySMS/src/tsms_packing.c
@@ -0,0 +1,343 @@
+/*
+* 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 tsms_packing.c
+ * @brief SMS Packing (3GPP TS 23.038 subclause 6.1.2).
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+
+ */
+#include "tinysms/tsms_packing.h"
+
+#include "tinysms/tsms_etsi_gsm_03_38.h"
+
+#include "tsk_memory.h"
+#include "tsk_string.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* strlen() */
+
+/**@defgroup tsms_packing_group SMS Packing
+*/
+
+/**@ingroup tsms_packing_group
+* Converts ASCII string to GSM 7-bit characters as per 3GPP TS 23.038 v911 section 6.1.2.1.
+* @param ascii Null-Terminated ascii string to convert.
+* @retval Buffer containing GSM 7-bit characters if succeed and @a Null otherwise.
+* @sa @ref tsms_pack_from_7bit
+*/
+tsk_buffer_t* tsms_pack_to_7bit(const char* ascii)
+{
+ /* 3GPP TS 23.038 - 6.1.2.1.1 Packing of 7-bit characters
+ If a character number $ is noted in the following way:
+ b7 b6 b5 b4 b3 b2 b1
+ $a $b $c $d $e $f $g
+ The packing of the 7-bitscharacters in octets is done by completing the octets with zeros on the left.
+ For examples, packing: $
+ - one character in one octet:
+ - bits number:
+ 7 6 5 4 3 2 1 0
+ 0 1a 1b 1c 1d 1e 1f 1g
+
+ - two characters in two octets:
+ - bits number:
+ 7 6 5 4 3 2 1 0
+ 2g 1a 1b 1c 1d 1e 1f 1g
+ 0 0 2a 2b 2c 2d 2e 2f
+
+ - three characters in three octets:
+ - bits number:
+ 7 6 5 4 3 2 1 0
+ 2g 1a 1b 1c 1d 1e 1f 1g
+ 3f 3g 2a 2b 2c 2d 2e 2f
+ 0 0 0 3a 3b 3c 3d 3e
+
+ - seven characters in seven octets:
+ - bits number:
+ 7 6 5 4 3 2 1 0
+ 2g 1a 1b 1c 1d 1e 1f 1g
+ 3f 3g 2a 2b 2c 2d 2e 2f
+ 4e 4f 4g 3a 3b 3c 3d 3e
+ 5d 5e 5f 5g 4a 4b 4c 4d
+ 6c 6d 6e 6f 6g 5a 5b 5c
+ 7b 7c 7d 7e 7f 7g 6a 6b
+ 0 0 0 0 0 0 0 7a
+
+ - eight characters in seven octets:
+ - bits number:
+ 7 6 5 4 3 2 1 0
+ 2g 1a 1b 1c 1d 1e 1f 1g
+ 3f 3g 2a 2b 2c 2d 2e 2f
+ 4e 4f 4g 3a 3b 3c 3d 3e
+ 5d 5e 5f 5g 4a 4b 4c 4d
+ 6c 6d 6e 6f 6g 5a 5b 5c
+ 7b 7c 7d 7e 7f 7g 6a 6b
+ 8a 8b 8c 8d 8e 8f 8g 7a
+
+ The bit number zero is always transmitted first.
+ Therefore, in 140 octets, it is possible to pack (140x8)/7=160 characters.
+ */
+ tsk_buffer_t* ret = tsk_null;
+ uint8_t* _ret = tsk_null;
+ register tsk_size_t len, bcount = 1/*1-7*/, index = 0, retindex = 0, retlen = 0;
+ const uint8_t* pascii = (const uint8_t*)ascii;
+
+ if(!ascii || !(len = strlen(ascii))){
+ TSK_DEBUG_WARN("Null or Empty ascci string.");
+ goto bail;
+ }
+
+ retlen = len - (len/7) + 1;
+ if(!(_ret = tsk_calloc(retlen, sizeof(uint8_t)))){
+ goto bail;
+ }
+
+ while(index < len){
+ if(index == 0){
+ _ret[retindex] |= (pascii[index] & (0xFF >> bcount)) |
+ (pascii[index+1] << (8 - bcount));
+ }
+ else{
+ _ret[retindex] = ((pascii[index] >> (bcount - 1))& (0xFF >> bcount))
+ | (pascii[index+1] <<(8-bcount));
+ }
+
+ /* how many bytes to use to complete on the left? */
+ if(++bcount == 8){
+ bcount = 1, ++index;
+ }
+ /* next */
+ retindex++;
+ index++;
+ }
+
+ /* creat ret */
+ ret = tsk_buffer_create(_ret, (retlen-1));
+bail:
+ TSK_FREE(_ret);
+
+ return ret;
+}
+
+/**@ingroup tsms_packing_group
+* Converts ASCII string to UCS-2(2-byte Universal Character Set) characters.
+* @param ascii Null-Terminated ascii string to convert.
+* @retval Buffer containing UCS-2 characters if succeed and @a Null otherwise.
+* @sa @ref tsms_pack_from_ucs2
+*/
+tsk_buffer_t* tsms_pack_to_ucs2(const char* ascii)
+{
+ register tsk_size_t i, j;
+ tsk_size_t len, retlen = 0;
+ uint8_t* str = tsk_null;
+ tsk_buffer_t* ret = tsk_null;
+
+ if(!ascii || !(len=strlen(ascii))){
+ TSK_DEBUG_WARN("Null or Empty gsm7bit buffer.");
+ goto bail;
+ }
+
+ if(!(str = tsk_calloc(len, sizeof(uint8_t)*2))){
+ goto bail;
+ }
+
+ /* very bas way to do conversion ==> to be fixed */
+ for(i=0; i<len; i++){
+ for(j=0; j<TSMS_ETSI_GSM_03_38_COUNT; j++){
+ if((uint8_t)ascii[i] == (uint8_t)(TSMS_ETSI_GSM_03_38[j][1] & 0xFF)){
+ retlen++; /* 00 */
+ *(str + retlen++) = (TSMS_ETSI_GSM_03_38[j][0] & 0xFF);
+ }
+ }
+ }
+
+ /* create buffer */
+ ret = tsk_buffer_create(str, retlen);
+
+bail:
+ TSK_FREE(str);
+ return ret;
+}
+
+/**@ingroup tsms_packing_group
+* Converts ASCII string to 8-bit characters.
+* @param ascii Null-terminated ascii string to convert.
+* @retval Buffer containing 8-bit characters if succeed and @a Null otherwise.
+* @sa @ref tsms_pack_from_8bit
+*/
+tsk_buffer_t* tsms_pack_to_8bit(const char* ascii)
+{
+ register tsk_size_t i, j;
+ tsk_size_t len, retlen = 0;
+ uint8_t* str = tsk_null;
+ tsk_buffer_t* ret = tsk_null;
+
+ if(!ascii || !(len=strlen(ascii))){
+ TSK_DEBUG_WARN("Null or Empty gsm7bit buffer.");
+ goto bail;
+ }
+
+ if(!(str = tsk_calloc(len, sizeof(uint8_t)))){
+ goto bail;
+ }
+
+ /* very bas way to do conversion ==> to be fixed */
+ for(i = 0; i<len; i++){
+ for(j = 0; j<TSMS_ETSI_GSM_03_38_COUNT; j++){
+ if((uint8_t)ascii[i] == (uint8_t)(TSMS_ETSI_GSM_03_38[j][1] & 0xFF)){
+ *(str + retlen++) = (TSMS_ETSI_GSM_03_38[j][0] & 0xFF);
+ continue;
+ }
+ }
+ }
+
+ /* create buffer */
+ ret = tsk_buffer_create(str, retlen);
+
+bail:
+ TSK_FREE(str);
+ return ret;
+}
+
+/**@ingroup tsms_packing_group
+* Converts GSM 7-bit characters to ASCII string.
+* @param gsm7bit Buffer containing GSM 7-bit characters to convert.
+* @param size The size of the buffer.
+* @retval Null-terminated ASCII string, ready to be shown to the screen.
+* @sa @ref tsms_pack_to_7bit
+*/
+char* tsms_pack_from_7bit(const void* gsm7bit, tsk_size_t size)
+{
+ char* ret = tsk_null;
+ register tsk_size_t bcount = 1/*1-7*/, index = 0, retindex = 0, retsize = 0;
+ const uint8_t* pgsm7bit = gsm7bit;
+
+ if(!gsm7bit || !size){
+ TSK_DEBUG_WARN("Null or Empty gsm7bit buffer.");
+ goto bail;
+ }
+
+ // dup the gsm7bit buffer
+ retsize = size + (size/7) + 1; // variable used for debug
+ if(!(ret = tsk_calloc(retsize, sizeof(uint8_t)))){
+ goto bail;
+ }
+
+ while(index < size){
+ ret[retindex] = (pgsm7bit[index] & (0xFF >>bcount));
+ if(index){
+ ret[retindex] = (ret[retindex] << (bcount - 1))
+ | (pgsm7bit[index-1] >> (8 - bcount + 1));
+ }
+
+ /* how many bytes to use to complete on the right? */
+ if(bcount++ == 8){
+ bcount = 1, --index;
+ }
+ /* next */
+ index++;
+ retindex++;
+ }
+
+ /* special one */
+ if(!(size%7)){
+ ret[retindex] = pgsm7bit[size-1]>>1;
+ }
+
+bail:
+
+ return ret;
+}
+
+/**@ingroup tsms_packing_group
+* Converts UCS-2(2-byte Universal Character Set) characters to ASCII string.
+* @param ucs2 Buffer containing UCS-2 characters to convert.
+* @param size The size of the buffer.
+* @retval Null-terminated ASCII string, ready to be shown to the screen.
+* @sa @ref tsms_pack_to_ucs2
+*/
+char* tsms_pack_from_ucs2(const void* ucs2, tsk_size_t size)
+{
+ register tsk_size_t i, j;
+ char* ret = tsk_null;
+
+ const uint16_t* pucs2 = ucs2;
+
+ if(!ucs2 || !size){
+ TSK_DEBUG_WARN("Null or Empty gsm8bit buffer.");
+ goto bail;
+ }
+
+ if(!(ret = tsk_calloc(size+1, sizeof(uint8_t)))){
+ goto bail;
+ }
+
+ for(i=0; i<size; i++){
+ for(j=0; j<TSMS_ETSI_GSM_03_38_COUNT; j++){
+ if(*(pucs2 + i) == (TSMS_ETSI_GSM_03_38[j][0])){
+ *(ret+i) = (TSMS_ETSI_GSM_03_38[j][1] & 0xFF);
+ continue;
+ }
+ }
+ }
+
+bail:
+ return ret;
+}
+
+/**@ingroup tsms_packing_group
+* Converts 8-bit characters to ASCII string.
+* @param gsm8bit Buffer containing GSM 8-bit characters to convert.
+* @param size The size of the buffer.
+* @retval Null-terminated ASCII string, ready to be shown to the screen.
+* @sa @ref tsms_pack_to_8bit
+*/
+char* tsms_pack_from_8bit(const void* gsm8bit, tsk_size_t size)
+{
+ register tsk_size_t i, j;
+ char* ret = tsk_null;
+
+ const uint8_t* pgsm8bit = gsm8bit;
+
+ if(!gsm8bit || !size){
+ TSK_DEBUG_WARN("Null or Empty gsm8bit buffer.");
+ goto bail;
+ }
+
+ if(!(ret = tsk_calloc(size+1, sizeof(uint8_t)))){
+ goto bail;
+ }
+
+ /* Very bad way to do convertion ==> to be changed */
+ for(i=0; i<size; i++){
+ for(j=0; j<TSMS_ETSI_GSM_03_38_COUNT; j++){
+ if(*(pgsm8bit + i) == (TSMS_ETSI_GSM_03_38[j][0] & 0xFF)){
+ *(ret+i) = (TSMS_ETSI_GSM_03_38[j][1] & 0xFF);
+ continue;
+ }
+ }
+ }
+
+bail:
+ return ret;
+}
diff --git a/tinySMS/test/droid-makefile b/tinySMS/test/droid-makefile
new file mode 100644
index 0000000..0eeee58
--- /dev/null
+++ b/tinySMS/test/droid-makefile
@@ -0,0 +1,28 @@
+APP := test
+
+CFLAGS := $(CFLAGS_COMMON) -I../include -I../../tinySAK/src
+LDFLAGS := $(LDFLAGS_COMMON) -Wl,-Bsymbolic,--whole-archive -l$(PROJECT) -ltinySAK -Wl,--entry=main
+
+all: $(APP)
+
+OBJS += $(APP).o
+
+$(APP): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $^
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(EXEC_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(EXEC_DIR)/$(APP)
+
+run:
+ $(ANDROID_SDK_ROOT)/tools/adb shell $(EXEC_DIR)/$(APP)
+
+#dbg:
+# $(MAKE) $(MAKEFILE) DEBUG="-g -DDEBUG"
+# $(MAKE) $(MAKEFILE) install
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
diff --git a/tinySMS/test/stdafx.c b/tinySMS/test/stdafx.c
new file mode 100644
index 0000000..a98e092
--- /dev/null
+++ b/tinySMS/test/stdafx.c
@@ -0,0 +1,26 @@
+/*
+* 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.
+*
+*/
+
+#include "stdafx.h"
+
+// TODO: reference any additional headers you need in STDAFX.H
+// and not in this file
diff --git a/tinySMS/test/stdafx.h b/tinySMS/test/stdafx.h
new file mode 100644
index 0000000..d87dff0
--- /dev/null
+++ b/tinySMS/test/stdafx.h
@@ -0,0 +1,41 @@
+/*
+* 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.
+*
+*/
+
+#ifndef TEST_SMS_STDAFX_H
+#define TEST_SMS_STDAFX_H
+
+#ifdef WIN32
+#include "targetver.h"
+#endif
+
+#include <stdio.h>
+
+#if (defined(_WIN32) || defined(WIN32) || defined(_WIN32_WCE)) && !defined(__SYMBIAN32__)
+#include <tchar.h>
+#endif
+
+
+
+// TODO: reference additional headers your program requires here
+#include <string.h>
+
+#endif /* TEST_SMS_STDAFX_H */
diff --git a/tinySMS/test/targetver.h b/tinySMS/test/targetver.h
new file mode 100644
index 0000000..a4c6bd1
--- /dev/null
+++ b/tinySMS/test/targetver.h
@@ -0,0 +1,14 @@
+#ifndef SMS_TEST_TARGETVER_H
+#define SMS_TEST_TARGETVER_H
+// The following macros define the minimum required platform. The minimum required platform
+// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
+// your application. The macros work by enabling all features available on platform versions up to and
+// including the version specified.
+
+// Modify the following defines if you have to target a platform prior to the ones specified below.
+// Refer to MSDN for the latest info on corresponding values for different platforms.
+#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
+#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
+#endif
+
+#endif /* SMS_TEST_TARGETVER_H */
diff --git a/tinySMS/test/test.c b/tinySMS/test/test.c
new file mode 100644
index 0000000..538cd16
--- /dev/null
+++ b/tinySMS/test/test.c
@@ -0,0 +1,104 @@
+/*
+* 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.
+*
+*/
+
+#include "stdafx.h"
+
+#include "tsk.h"
+#include "tinysms.h"
+
+char* tohex(uint8_t* ptr, size_t size)
+{
+ char* ret = tsk_null;
+ size_t i;
+ for(i=0;i<size;i++){
+ tsk_strcat_2(&ret, "%.2X", *ptr++);
+ }
+ return ret;
+}
+
+void printhex(const char* what, uint8_t* ptr, size_t size)
+{
+ size_t i;
+ printf("%s", what);
+ for(i=0;i<size;i++){
+ printf("%.2X", *ptr++);
+ }
+ printf("\n");
+}
+
+tsk_bool_t bin_equals(const uint8_t* b1, const uint8_t* b2, size_t size)
+{
+ size_t i;
+
+ // we assume that sizeof(b1)==sizeof(b2)
+ if(!b1 || !b2 || !size){
+ return tsk_false;
+ }
+ for(i=0; i<size;i++){
+ if(b1[i] != b2[i]){
+ return tsk_false;
+ }
+ }
+ return tsk_true;
+}
+
+
+#include "test_packing.h"
+#include "test_tpdu.h"
+#include "test_rpdu.h"
+
+
+#define RUN_TEST_LOOP 1
+
+#define RUN_TEST_ALL 0
+#define RUN_TEST_PACKING 0
+#define RUN_TEST_TPDU 0
+#define RUN_TEST_RPDU 1
+
+
+#ifdef _WIN32_WCE
+int _tmain(int argc, _TCHAR* argv[])
+#else
+int main()
+#endif
+{
+#if RUN_TEST_LOOP
+ for(;;)
+#endif
+ {
+ /* Print copyright information */
+ printf("Doubango Project\nCopyright (C) 2009 - 2010 Mamadou Diop \n\n");
+
+#if RUN_TEST_ALL || RUN_TEST_PACKING
+ test_packing();
+#endif
+
+#if RUN_TEST_ALL || RUN_TEST_TPDU
+ test_tpdu();
+#endif
+
+#if RUN_TEST_ALL || RUN_TEST_RPDU
+ test_rpdu();
+#endif
+
+ }
+} \ No newline at end of file
diff --git a/tinySMS/test/test.vcproj b/tinySMS/test/test.vcproj
new file mode 100644
index 0000000..519fa0f
--- /dev/null
+++ b/tinySMS/test/test.vcproj
@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="test"
+ ProjectGUID="{BD24A663-4018-41EC-A250-4A57CDD2F13B}"
+ RootNamespace="test"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="..\..\thirdparties\win32\include;..\..\tinySAK\src;..\..\tinySMS\include"
+ PreprocessorDefinitions="DEBUG_LEVEL=DEBUG_LEVEL_INFO;WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="4"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(OutDir)\tinySAK.lib $(OutDir)\tinySMS.lib"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ WarnAsError="true"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath="..\..\tinySMS\test\stdafx.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\tinySMS\test\test.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath="..\..\tinySMS\test\stdafx.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\tinySMS\test\targetver.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Tests"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ <File
+ RelativePath="..\..\tinySMS\test\test_packing.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\tinySMS\test\test_rpdu.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\tinySMS\test\test_tpdu.h"
+ >
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/tinySMS/test/test_packing.h b/tinySMS/test/test_packing.h
new file mode 100644
index 0000000..d37ef33
--- /dev/null
+++ b/tinySMS/test/test_packing.h
@@ -0,0 +1,140 @@
+/*
+* 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.
+*
+*/
+#ifndef _TEST_SMSPACKING_H
+#define _TEST_SMSPACKING_H
+
+typedef struct test_message_7bit_s{
+ const char* ascii;
+ const char* _7bit;
+}
+test_message_7bit_t;
+
+test_message_7bit_t test_messages_7bit[] =
+{
+ "a","\x61",
+ "ab","\x61\x31",
+ "abc","\x61\xF1\x18",
+ "abcdefg","\x61\xF1\x98\x5C\x36\x9F\x01",
+ "abcdefgh","\x61\xF1\x98\x5C\x36\x9F\xD1",
+ "abcdefghi","\x61\xF1\x98\x5C\x36\x9F\xD1\x69",
+ "abcdefgh12345678","\x61\xF1\x98\x5C\x36\x9F\xD1\x31\xD9\x8C\x56\xB3\xDD\x70",
+ "abcdefgh123456789","\x61\xF1\x98\x5C\x36\x9F\xD1\x31\xD9\x8C\x56\xB3\xDD\x70\x39",
+ "This is a test sms message","\x54\x74\x7A\x0E\x4A\xCF\x41\x61\x10\xBD\x3C\xA7\x83\xE6\xED\x39\xA8\x5D\x9E\xCF\xC3\xE7\x32",
+ "salut","\xF3\x30\xBB\x4E\x07",
+ "hellohello","\xE8\x32\x9B\xFD\x46\x97\xD9\xEC\x37",
+};
+
+void test_7bit()
+{
+ tsk_size_t i;
+ tsk_buffer_t* buffer;
+ char* temp;
+
+ /* To 7bit */
+ for(i=0; i<sizeof(test_messages_7bit)/sizeof(test_message_7bit_t); i++){
+ if((buffer = tsms_pack_to_7bit(test_messages_7bit[i].ascii))){
+ /*if((temp = tohex(buffer->data, buffer->size))){
+ if(!tsk_striequals(temp, test_messages_7bit[i]._7bit)){
+ TSK_DEBUG_ERROR("tsms_pack_to_7bit(\"%s\") Failed.\n", test_messages_7bit[i].ascii);
+ }
+ TSK_FREE(temp);
+ }*/
+ if(!bin_equals(buffer->data, test_messages_7bit[i]._7bit, buffer->size)){
+ TSK_DEBUG_ERROR("tsms_pack_to_7bit(\"%s\") Failed.\n", test_messages_7bit[i].ascii);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+ }
+
+ /* From 7bit */
+ for(i=0; i<sizeof(test_messages_7bit)/sizeof(test_message_7bit_t); i++){
+ if((temp = tsms_pack_from_7bit(test_messages_7bit[i]._7bit, (tsk_size_t)tsk_strlen(test_messages_7bit[i]._7bit)))){
+ if(!tsk_striequals(temp, test_messages_7bit[i].ascii)){
+ TSK_DEBUG_ERROR("tsms_pack_from_7bit(\"%s\") Failed.\n", test_messages_7bit[i].ascii);
+ }
+ TSK_FREE(temp);
+ }
+ }
+}
+
+void test_8bit()
+{
+ tsk_size_t i;
+ tsk_buffer_t* buffer;
+ char* temp;
+
+ /* To 8bit */
+ for(i=0; i<sizeof(test_messages_7bit)/sizeof(test_message_7bit_t); i++){
+ if((buffer = tsms_pack_to_8bit(test_messages_7bit[i].ascii))){
+ if(!tsk_strequals(buffer->data, test_messages_7bit[i].ascii)){
+ TSK_DEBUG_INFO("tsms_pack_to_8bit(%s) Failed", test_messages_7bit[i].ascii);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+ }
+
+ /* From 8bit */
+ for(i=0; i<sizeof(test_messages_7bit)/sizeof(test_message_7bit_t); i++){
+ if((temp = tsms_pack_from_8bit(test_messages_7bit[i].ascii, (tsk_size_t)tsk_strlen(test_messages_7bit[i].ascii)))){
+ if(!tsk_strequals(temp, test_messages_7bit[i].ascii)){
+ TSK_DEBUG_INFO("tsms_pack_from_8bit(%s) Failed", test_messages_7bit[i].ascii);
+ }
+ TSK_FREE(temp);
+ }
+ }
+}
+
+void test_ucs2()
+{
+ tsk_size_t i;
+ tsk_buffer_t* buffer;
+ char* temp;
+
+ /* To ucs2 */
+ for(i=0; i<sizeof(test_messages_7bit)/sizeof(test_message_7bit_t); i++){
+ if((buffer = tsms_pack_to_ucs2(test_messages_7bit[i].ascii))){
+ if(!tsk_strequals(buffer->data, test_messages_7bit[i].ascii)){
+ TSK_DEBUG_INFO("tsms_pack_to_ucs2(%s) Failed", test_messages_7bit[i].ascii);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+ }
+
+ /* From ucs2 */
+ for(i=0; i<sizeof(test_messages_7bit)/sizeof(test_message_7bit_t); i++){
+ if((temp = tsms_pack_from_ucs2(test_messages_7bit[i].ascii, (tsk_size_t)tsk_strlen(test_messages_7bit[i].ascii)))){
+ if(!tsk_strequals(temp, test_messages_7bit[i].ascii)){
+ TSK_DEBUG_INFO("tsms_pack_from_ucs2(%s) Failed", test_messages_7bit[i].ascii);
+ }
+ TSK_FREE(temp);
+ }
+ }
+}
+
+void test_packing()
+{
+ test_ucs2();
+ test_8bit();
+ test_7bit();
+}
+
+#endif /* _TEST_SMSPACKING_H */
diff --git a/tinySMS/test/test_rpdu.h b/tinySMS/test/test_rpdu.h
new file mode 100644
index 0000000..11044e7
--- /dev/null
+++ b/tinySMS/test/test_rpdu.h
@@ -0,0 +1,272 @@
+/*
+* 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.
+*
+*/
+#ifndef _TEST_SMSRPDU_H
+#define _TEST_SMSRPDU_H
+
+void test_i_rpdata(const void* data, tsk_size_t size, tsk_bool_t MobOrig)
+{
+ tsms_rpdu_message_t* rp_message = tsk_null;
+ tsms_tpdu_message_t* tpdu = tsk_null;
+
+ if(!(rp_message = tsms_rpdu_message_deserialize(data, size))){
+ TSK_DEBUG_ERROR("Failed to deserialize the RP-MESSAGE");
+ goto bail;
+ }
+
+ switch(rp_message->mti){
+ case tsms_rpdu_type_data_mo:
+ case tsms_rpdu_type_data_mt:
+ {
+ char* ascii = tsk_null;
+ tsms_rpdu_data_t* rp_data = TSMS_RPDU_DATA(rp_message);
+ if((tpdu = tsms_tpdu_message_deserialize(rp_data->udata->data, rp_data->udata->size, MobOrig))){
+ if(tpdu->mti == tsms_tpdu_mti_deliver_mt || tpdu->mti == tsms_tpdu_mti_submit_mo){ /* SMS-SUBMIT or SMS-DELIVER? */
+ if((ascii = tsms_tpdu_message_get_payload(tpdu))){
+ TSK_DEBUG_INFO("ASCII message=%s", ascii);
+ TSK_FREE(ascii);
+ }
+ }
+ }
+ break;
+ }
+ case tsms_rpdu_type_ack_mo:
+ case tsms_rpdu_type_ack_mt:
+ {
+ tsms_rpdu_ack_t* rp_ack = TSMS_RPDU_ACK(rp_message);
+ // ...do whatever you want
+ if(rp_ack->udata && (tpdu = tsms_tpdu_message_deserialize(rp_ack->udata->data, rp_ack->udata->size, MobOrig))){
+ // ...do whatever you want
+ }
+ TSK_DEBUG_INFO("RP-ACK");
+ break;
+ }
+ case tsms_rpdu_type_error_mo:
+ case tsms_rpdu_type_error_mt:
+ {
+ tsms_rpdu_error_t* rp_error = TSMS_RPDU_ERROR(rp_message);
+ // ...do whatever you want
+ if(rp_error->udata && (tpdu = tsms_tpdu_message_deserialize(rp_error->udata->data, rp_error->udata->size, MobOrig))){
+ // ...do whatever you want
+ }
+ TSK_DEBUG_INFO("RP-ERROR");
+ break;
+ }
+ case tsms_rpdu_type_smma_mo:
+ {
+ tsms_rpdu_smma_t* rp_smma = TSMS_RPDU_SMMA(rp_message);
+ // ...do whatever you want
+ TSK_DEBUG_INFO("RP-SMMA");
+ break;
+ }
+ default:
+ {
+ TSK_DEBUG_INFO("Unknown RP-Message type (%u).", rp_message->mti);
+ break;
+ }
+ }
+
+bail:
+ TSK_OBJECT_SAFE_FREE(rp_message);
+ TSK_OBJECT_SAFE_FREE(tpdu);
+}
+
+void test_o_rpdata_submit()
+{
+ //== Sending RP-DATA(SMS-SUBMIT) ==
+ int ret;
+ tsk_buffer_t* buffer = tsk_null;
+ tsms_tpdu_submit_t* sms_submit = tsk_null;
+ tsms_rpdu_data_t* rp_data = tsk_null;
+ const char* smsc = "+331000009";
+ const char* destination = "+333361234567";
+ const char* short_message = "hello world";
+ uint8_t mr = 0xF5;
+ uint8_t message_number = 0xF8;
+ char* hex;
+
+ // create SMS-SUBMIT message
+ sms_submit = tsms_tpdu_submit_create(mr, smsc, destination);
+ // Set content for SMS-SUBMIT
+ if((buffer = tsms_pack_to_7bit(short_message))){
+ ret = tsms_tpdu_submit_set_userdata(sms_submit, buffer, tsms_alpha_7bit);
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+ // create RP-DATA message and print its content (for test only)
+ rp_data = tsms_rpdu_data_create_mo(mr, smsc, TSMS_TPDU_MESSAGE(sms_submit));
+ if((hex = tsms_rpdu_message_tohexastring(TSMS_RPDU_MESSAGE(rp_data)))){
+ TSK_DEBUG_INFO("RP-DATA=%s", hex);
+ TSK_FREE(hex);
+ }
+
+
+ // serialize
+ buffer = tsk_buffer_create_null();
+ ret = tsms_rpdu_data_serialize(rp_data, buffer);
+ // send(socket, buffer->data, buffer->size);
+ // print result (hex) to the console
+ printhex("==RP-DATA(SMS-SUBMIT):", buffer->data, buffer->size);
+
+ // receiving
+ test_i_rpdata(buffer->data, buffer->size, tsk_true);
+
+ TSK_OBJECT_SAFE_FREE(buffer);
+ TSK_OBJECT_SAFE_FREE(sms_submit);
+ TSK_OBJECT_SAFE_FREE(rp_data);
+}
+
+void test_o_rpdata_deliver()
+{
+ //== Sending RP-DATA(SMS-DELIVER) ==
+ int ret;
+ tsk_buffer_t* buffer = tsk_null;
+ tsms_tpdu_deliver_t* sms_deliver = tsk_null;
+ tsms_rpdu_data_t* rp_data = tsk_null;
+ const char* smsc = "+331000000";
+ const char* originator = "+3361234567";
+ const char* content = "hello world!";
+
+ // create SMS-DELIVER message
+ sms_deliver = tsms_tpdu_deliver_create(smsc, originator);
+ // Set content for SMS-DELIVER
+ if((buffer = tsms_pack_to_7bit(content))){
+ ret = tsms_tpdu_deliver_set_userdata(sms_deliver, buffer, tsms_alpha_7bit);
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+ // create RP-DATA message
+ rp_data = tsms_rpdu_data_create_mt(0x01, smsc, TSMS_TPDU_MESSAGE(sms_deliver));
+ // serialize
+ buffer = tsk_buffer_create_null();
+ ret = tsms_rpdu_data_serialize(rp_data, buffer);
+ // send(socket, buffer->data, buffer->size);
+ // print result (hex) to the console
+ printhex("==RP-DATA(SMS-DELIVER):", buffer->data, buffer->size);
+
+ // receiving
+ test_i_rpdata(buffer->data, buffer->size, tsk_false);
+
+ TSK_OBJECT_SAFE_FREE(buffer);
+ TSK_OBJECT_SAFE_FREE(sms_deliver);
+ TSK_OBJECT_SAFE_FREE(rp_data);
+}
+
+void test_o_rpdata_smma()
+{
+ //== Sending RP-SMMA ==
+ int ret;
+ tsk_buffer_t* buffer = tsk_null;
+ tsms_rpdu_smma_t* rp_smma = tsk_null;
+ uint8_t mr = 0xF5;
+
+ // create RP-SMMA message
+ rp_smma = tsms_rpdu_smma_create(mr);
+ // serialize
+ buffer = tsk_buffer_create_null();
+ ret = tsms_rpdu_data_serialize(rp_smma, buffer);
+ // send(socket, buffer->data, buffer->size);
+ // print result (hex) to the console
+ printhex("==RP-SMMA:", buffer->data, buffer->size);
+
+ // receiving
+ test_i_rpdata(buffer->data, buffer->size, tsk_true);
+
+ TSK_OBJECT_SAFE_FREE(buffer);
+ TSK_OBJECT_SAFE_FREE(rp_smma);
+}
+
+void test_o_rpdata_ack()
+{
+ //== Sending RP-ACK(SMS-DELIVER-REPORT) ==
+ int ret;
+ tsk_buffer_t* buffer = tsk_null;
+ tsms_tpdu_report_t* sms_report = tsk_null;
+ tsms_rpdu_ack_t* rp_ack= tsk_null;
+ const char* smsc = "+331000000";
+ tsk_bool_t isSUBMIT = tsk_false; /* isDELIVER */
+ tsk_bool_t isERROR = tsk_false;
+ uint8_t mr = 0xF5;
+
+ // create SMS-DELIVER-REPORT message
+ sms_report = tsms_tpdu_report_create(smsc, isSUBMIT, isERROR);
+ // create RP-ACK message (From MS to SC)
+ rp_ack = tsms_rpdu_ack_create_mo(mr, TSMS_TPDU_MESSAGE(sms_report));
+ // serialize
+ buffer = tsk_buffer_create_null();
+ if(!(ret = tsms_rpdu_data_serialize(rp_ack, buffer))){
+ // send(socket, buffer->data, buffer->size);
+ // print result (hex) to the console
+ printhex("==RP-ACK(SMS-DELIVER-REPORT):", buffer->data, buffer->size);
+ }
+
+ // receiving
+ test_i_rpdata(buffer->data, buffer->size, tsk_true);
+
+ TSK_OBJECT_SAFE_FREE(buffer);
+ TSK_OBJECT_SAFE_FREE(sms_report);
+ TSK_OBJECT_SAFE_FREE(rp_ack);
+}
+
+void test_o_rpdata_error()
+{
+ //== Sending RP-ERROR(SMS-DELIVER-REPORT) ==
+ int ret;
+ tsk_buffer_t* buffer = tsk_null;
+ tsms_tpdu_report_t* sms_report = tsk_null;
+ tsms_rpdu_error_t* rp_error= tsk_null;
+ tsk_bool_t isSUBMIT = tsk_false; /* isDELIVER */
+ tsk_bool_t isERROR = tsk_true;
+ const char* smsc = "+331000000";
+ uint8_t mr = 0xF5;
+
+ // create SMS-DELIVER-REPORT message
+ sms_report = tsms_tpdu_report_create(smsc, isSUBMIT, isERROR);
+ // create RP-ERROR message
+ rp_error = tsms_rpdu_error_create_mo(mr, TSMS_TPDU_MESSAGE(sms_report), 0x0A/*call barred*/);
+ // serialize
+ buffer = tsk_buffer_create_null();
+ if(!(ret = tsms_rpdu_data_serialize(rp_error, buffer))){
+ // send(socket, buffer->data, buffer->size);
+ // print result (hex) to the console
+ printhex("==RP-ERROR(SMS-DELIVER-REPORT):", buffer->data, buffer->size);
+ }
+
+ // receiving
+ test_i_rpdata(buffer->data, buffer->size, tsk_true);
+
+ TSK_OBJECT_SAFE_FREE(buffer);
+ TSK_OBJECT_SAFE_FREE(sms_report);
+ TSK_OBJECT_SAFE_FREE(rp_error);
+}
+
+
+void test_rpdu()
+{
+ test_o_rpdata_submit();
+ //test_o_rpdata_deliver();
+ //test_o_rpdata_smma();
+ //test_o_rpdata_ack();
+ //test_o_rpdata_error();
+
+ //const char* data = "\x03\x01\x41\x09\x01\x00\x01\x80\x01\x32\x42\x00\x69";
+ //test_i_rpdata(data, 13, tsk_false);
+}
+
+#endif /* _TEST_SMSRPDU_H */
diff --git a/tinySMS/test/test_tpdu.h b/tinySMS/test/test_tpdu.h
new file mode 100644
index 0000000..27433f8
--- /dev/null
+++ b/tinySMS/test/test_tpdu.h
@@ -0,0 +1,250 @@
+/*
+* 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.
+*
+*/
+#ifndef _TEST_SMSTPDU_H
+#define _TEST_SMSTPDU_H
+
+#define USER_DATA "hellohello"
+
+static uint8_t __pdu_last_mr = 0;
+
+void test_submit()
+{
+ int ret;
+ tsms_tpdu_submit_t* submit = tsk_null;
+ tsk_buffer_t* buffer = tsk_null;
+ char* hex;
+ const char* smsc = "+331000009";
+ const char* destination = "+333361234567";
+ const char* short_message = "hello world";
+ uint8_t mr = 0xF5;
+
+ submit = tsms_tpdu_submit_create(mr, smsc, destination);
+
+ /* encode the user data to GSM 7-bit alphabet */
+ if((buffer = tsms_pack_to_7bit(short_message))){
+ ret = tsms_tpdu_submit_set_userdata(submit, buffer, tsms_alpha_7bit);
+ if((hex = tsms_tpdu_submit_tohexastring(submit))){
+ TSK_DEBUG_INFO("SMS-SUBMIT=%s", hex);
+ TSK_FREE(hex);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+
+ /* receiving */
+ buffer = tsk_buffer_create_null();
+ ret = tsms_tpdu_submit_serialize(submit, buffer);
+ // send(socket, buffer->data, buffer->size);
+
+ TSK_OBJECT_SAFE_FREE(submit);
+ submit = (tsms_tpdu_submit_t*)tsms_tpdu_message_deserialize_mo(buffer->data, buffer->size);
+ if((hex = tsms_tpdu_submit_tohexastring(submit))){
+ TSK_DEBUG_INFO("SMS-SUBMIT=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ TSK_OBJECT_SAFE_FREE(submit);
+ TSK_OBJECT_SAFE_FREE(buffer);
+
+ printf("==========\n");
+}
+
+void test_deliver()
+{
+ int ret;
+ tsms_tpdu_deliver_t* deliver = tsk_null;
+ tsk_buffer_t* buffer = tsk_null;
+ char* hex;
+
+ deliver = tsms_tpdu_deliver_create("+27381000015", "+46708251358");
+
+ /* sending */
+ if((buffer = tsms_pack_to_7bit(USER_DATA))){
+ ret = tsms_tpdu_deliver_set_userdata(deliver, buffer, tsms_alpha_7bit);
+ if((hex = tsms_tpdu_deliver_tohexastring(deliver))){
+ TSK_DEBUG_INFO("SMS-DELIVER=%s", hex);
+ TSK_FREE(hex);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+
+ /* receiving */
+ buffer = tsk_buffer_create_null();
+ tsms_tpdu_deliver_serialize(deliver, buffer);
+
+ TSK_OBJECT_SAFE_FREE(deliver);
+
+ //{
+ // tsms_tpdu_message_t* sms_any = tsms_tpdu_message_deserialize_mt(buffer->data, buffer->size);
+ // if(sms_any && sms_any->mti == tsms_tpdu_mti_deliver_mt){
+ // //tsms_tpdu_deliver_t* sms_deliver = TSMS_TPDU_DELIVER(sms_any); ==> Yes we can !
+ // char* ascii;
+ // if((ascii = tsms_tpdu_message_get_payload(sms_any))){
+ // TSK_DEBUG_INFO("Message=%s", ascii);
+ // TSK_FREE(ascii);
+ // }
+ // }
+ // TSK_OBJECT_SAFE_FREE(sms_any);
+ //}
+
+ deliver = (tsms_tpdu_deliver_t*)tsms_tpdu_message_deserialize_mt(buffer->data, buffer->size);
+ if((hex = tsms_tpdu_deliver_tohexastring(deliver))){
+ TSK_DEBUG_INFO("SMS-DELIVER=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ TSK_OBJECT_SAFE_FREE(deliver);
+ TSK_OBJECT_SAFE_FREE(buffer);
+
+ printf("==========\n");
+}
+
+
+void test_report()
+{
+ int ret;
+ tsms_tpdu_report_t* report = tsk_null;
+ tsk_buffer_t* buffer = tsk_null;
+ char* hex;
+ const char* smsc = "+331000009";
+ tsk_bool_t isSUBMIT = tsk_false;
+ tsk_bool_t isERROR = tsk_false;
+
+ report = tsms_tpdu_report_create(smsc, isSUBMIT, isERROR);
+
+ /* sending */
+ if((buffer = tsms_pack_to_7bit(USER_DATA))){
+ ret = tsms_tpdu_deliver_set_userdata(report, buffer, tsms_alpha_7bit);
+ if((hex = tsms_tpdu_deliver_tohexastring(report))){
+ TSK_DEBUG_INFO("SMS-DELIVER-REPORT for RP-ERROR=%s", hex);
+ TSK_FREE(hex);
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ }
+
+ /* receiving */
+ buffer = tsk_buffer_create_null();
+ tsms_tpdu_report_serialize(report, buffer);
+
+ TSK_OBJECT_SAFE_FREE(report);
+ report = (tsms_tpdu_report_t*)tsms_tpdu_message_deserialize_mo(buffer->data, buffer->size);
+ if((hex = tsms_tpdu_report_tohexastring(report))){
+ TSK_DEBUG_INFO("SMS-DELIVER-REPORT for RP-ERROR=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ TSK_OBJECT_SAFE_FREE(report);
+ TSK_OBJECT_SAFE_FREE(buffer);
+
+ printf("==========\n");
+}
+
+void test_command()
+{
+ tsms_tpdu_command_t* command = tsk_null;
+ char* hex;
+ tsk_buffer_t* buffer = tsk_null;
+ const char* smsc = "+331000009";
+ const char* destination = "+333361234567";
+ uint8_t mr = 0xF5;
+ uint8_t message_number = 0xF8;
+
+ command = tsms_tpdu_command_create(mr, smsc, destination, message_number, tsms_tpdu_cmd_delete);
+
+ /*sending*/
+ if((hex = tsms_tpdu_command_tohexastring(command))){
+ TSK_DEBUG_INFO("SMS-COMMAND=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ /* receiving */
+ buffer = tsk_buffer_create_null();
+ tsms_tpdu_command_serialize(command, buffer);
+
+ TSK_OBJECT_SAFE_FREE(command);
+ command = (tsms_tpdu_command_t*)tsms_tpdu_message_deserialize_mo(buffer->data, buffer->size);
+ if((hex = tsms_tpdu_command_tohexastring(command))){
+ TSK_DEBUG_INFO("SMS-COMMAND=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ TSK_OBJECT_SAFE_FREE(command);
+ TSK_OBJECT_SAFE_FREE(buffer);
+
+ printf("==========\n");
+}
+
+void test_sreport()
+{
+ tsms_tpdu_status_report_t* sreport = tsk_null;
+ char* hex;
+ tsk_buffer_t* buffer = tsk_null;
+
+ sreport = tsms_tpdu_status_report_create(__pdu_last_mr++, "+3310000", "+332666", tsms_tpdu_status_busy, tsk_true);
+
+ if((hex = tsms_tpdu_report_tohexastring(sreport))){
+ TSK_DEBUG_INFO("SMS-STATUS-REPORT=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ /* receiving */
+ buffer = tsk_buffer_create_null();
+ tsms_tpdu_status_report_serialize(sreport, buffer);
+
+
+//tsms_tpdu_message_t* sms_any = tsms_tpdu_message_deserialize_mt(buffer->data, buffer->size);
+//if(sms_any && sms_any->mti == tsms_tpdu_mti_status_report_mt){
+// tsms_tpdu_status_report_t* sms_status_report = TSMS_TPDU_STATUS_REPORT(sms_any);
+// switch(sms_status_report->st){
+// case tsms_tpdu_status_received:
+// case tsms_tpdu_status_forwarded:
+// case tsms_tpdu_status_replaced:
+// // ...
+// default:
+// break;
+// }
+//}
+//TSK_OBJECT_SAFE_FREE(sms_any);
+
+
+ TSK_OBJECT_SAFE_FREE(sreport);
+ sreport = (tsms_tpdu_status_report_t*)tsms_tpdu_message_deserialize_mt(buffer->data, buffer->size);
+ if((hex = tsms_tpdu_status_report_tohexastring(sreport))){
+ TSK_DEBUG_INFO("SMS-STATUS-REPORT=%s", hex);
+ TSK_FREE(hex);
+ }
+
+ TSK_OBJECT_SAFE_FREE(sreport);
+ TSK_OBJECT_SAFE_FREE(buffer);
+
+ printf("==========\n");
+}
+
+void test_tpdu()
+{
+ test_submit();
+ test_deliver();
+ test_report();
+ test_command();
+ test_sreport();
+}
+
+#endif /* _TEST_SMSTPDU_H */
diff --git a/tinySMS/tinySMS.pc.in b/tinySMS/tinySMS.pc.in
new file mode 100644
index 0000000..815c7d2
--- /dev/null
+++ b/tinySMS/tinySMS.pc.in
@@ -0,0 +1,14 @@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+libdir = @libdir@
+includedir = @includedir@
+
+Name : libtinySMS
+Description : Doubango Telecom tinySMS (3GPP SMS) library
+Version : @PACKAGE_VERSION@
+Requires:
+Requires.private: tinySAK = @PACKAGE_VERSION@
+Conflicts:
+Cflags : -I${includedir}/tinysms
+Libs : -L${libdir} -ltinySMS
+Libs.private:
diff --git a/tinySMS/tinySMS.sln b/tinySMS/tinySMS.sln
new file mode 100644
index 0000000..94c0d4f
--- /dev/null
+++ b/tinySMS/tinySMS.sln
@@ -0,0 +1,44 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySMS", "tinySMS.vcproj", "{9A3A5AF3-2333-4477-B880-7F901F9D8972}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySAK", "..\tinySAK\tinySAK.vcproj", "{6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test\test.vcproj", "{BD24A663-4018-41EC-A250-4A57CDD2F13B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ Release|Win32 = Release|Win32
+ Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.Build.0 = Debug|Win32
+ {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32
+ {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.ActiveCfg = Release|Win32
+ {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.Build.0 = Release|Win32
+ {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.ActiveCfg = Debug|Win32
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.Build.0 = Debug|Win32
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.ActiveCfg = Release|Win32
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.Build.0 = Release|Win32
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {BD24A663-4018-41EC-A250-4A57CDD2F13B}.Debug|Win32.ActiveCfg = Debug|Win32
+ {BD24A663-4018-41EC-A250-4A57CDD2F13B}.Debug|Win32.Build.0 = Debug|Win32
+ {BD24A663-4018-41EC-A250-4A57CDD2F13B}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32
+ {BD24A663-4018-41EC-A250-4A57CDD2F13B}.Release|Win32.ActiveCfg = Release|Win32
+ {BD24A663-4018-41EC-A250-4A57CDD2F13B}.Release|Win32.Build.0 = Release|Win32
+ {BD24A663-4018-41EC-A250-4A57CDD2F13B}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/tinySMS/tinySMS.tag b/tinySMS/tinySMS.tag
new file mode 100644
index 0000000..e3fc91e
--- /dev/null
+++ b/tinySMS/tinySMS.tag
@@ -0,0 +1,3104 @@
+<?xml version='1.0' encoding='ISO-8859-1' standalone='yes' ?>
+<tagfile>
+ <compound kind="page">
+ <name>index</name>
+ <title>tinySMS API Overview</title>
+ <filename>index</filename>
+ </compound>
+ <compound kind="file">
+ <name>tinysms.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/</path>
+ <filename>tinysms_8h</filename>
+ <includes id="tsms__packing_8h" name="tsms_packing.h" local="yes" imported="no">tinysms/tsms_packing.h</includes>
+ <includes id="tsms__rpdu_8h" name="tsms_rpdu.h" local="yes" imported="no">tinysms/rpdu/tsms_rpdu.h</includes>
+ <includes id="tsms__tpdu__submit_8h" name="tsms_tpdu_submit.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_submit.h</includes>
+ <includes id="tsms__tpdu__deliver_8h" name="tsms_tpdu_deliver.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_deliver.h</includes>
+ <includes id="tsms__tpdu__report_8h" name="tsms_tpdu_report.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_report.h</includes>
+ <includes id="tsms__tpdu__command_8h" name="tsms_tpdu_command.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_command.h</includes>
+ <includes id="tsms__tpdu__status__report_8h" name="tsms_tpdu_status_report.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_status_report.h</includes>
+ </compound>
+ <compound kind="file">
+ <name>tsms_rpdu.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/rpdu/</path>
+ <filename>tsms__rpdu_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <class kind="struct">tsms_rpdu_data_s</class>
+ <class kind="struct">tsms_rpdu_smma_s</class>
+ <class kind="struct">tsms_rpdu_ack_s</class>
+ <class kind="struct">tsms_rpdu_error_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_RPDU_DATA</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>ad910932f78e7d1caf782e785a0fdfa19</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_data_create_mo</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga4cb5e1528206b1166b0bc6f888d58390</anchor>
+ <arglist>(mr, smsc, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_data_create_mt</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gabe4218acfa2ef004520c11f430867268</anchor>
+ <arglist>(mr, smsc, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_data_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gafa8f26571bb60a110a2b7480b85ede5f</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_RPDU_SMMA</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>ac6b65c3afdc159a4846348a8d9d88185</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_smma_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gabc0ee8d0cb353fb39d5cab752142bcbb</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_RPDU_ACK</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>a01b3dcaae2740383a10852db7b5b99dc</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_ack_create_mo</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga69f8c3b283c13bfa92be006b152cc99e</anchor>
+ <arglist>(mr, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_ack_create_mt</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gabc26f8ee68c9f42555be07cb81ca32dd</anchor>
+ <arglist>(mr, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_ack_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga2aeb9084a881e35c3b1eadd082e764d3</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_RPDU_ERROR</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>a284e1c256fbf810184985ec568e9df91</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_error_create_mo</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga2cba98d965737f6ada9d012d21e82b59</anchor>
+ <arglist>(mr, tpdu, cause)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_error_create_mt</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga069e8b8cdda29fa50adaae3b7365a791</anchor>
+ <arglist>(mr, tpdu, cause)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_error_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gac4dac7b6e1839f32cee2e39d85ac5730</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS struct tsms_rpdu_data_s</type>
+ <name>tsms_rpdu_data_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>a63ee2637de1a5e868f1635aceecc340e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_rpdu_smma_s</type>
+ <name>tsms_rpdu_smma_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>aacacdf9ae6b7dc39e1cd3f8b8d12fe22</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_rpdu_ack_s</type>
+ <name>tsms_rpdu_ack_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>aaf5b14bfcdeee6e3ae8dc73e7f7d2b0b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_rpdu_error_s</type>
+ <name>tsms_rpdu_error_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>acaa94a80785d1db708ae6f568da71f8a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_rpdu_data_t *</type>
+ <name>tsms_rpdu_data_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga5589e131deeab1e25eb08494f7554d55</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_tpdu_message_t *tpdu, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_rpdu_smma_t *</type>
+ <name>tsms_rpdu_smma_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gac588512623e47fdfdbac5cd0a387572a</anchor>
+ <arglist>(uint8_t mr)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_rpdu_ack_t *</type>
+ <name>tsms_rpdu_ack_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga1464b066b6b93ed848049fb80ba4d4a5</anchor>
+ <arglist>(uint8_t mr, const tsms_tpdu_message_t *tpdu, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_rpdu_error_t *</type>
+ <name>tsms_rpdu_error_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga445ece4fe91ccafe88343cf6e1f1bf30</anchor>
+ <arglist>(uint8_t mr, const tsms_tpdu_message_t *tpdu, uint8_t cause, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_rpdu_data_def_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>ab4eff04efc276dc095c78e9d0a3a268b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_rpdu_smma_def_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>a18ba242809e6ce1a059813d1bd18a159</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_rpdu_ack_def_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>aa716e7bcbbc819549a05738b7de9159b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_rpdu_error_def_t</name>
+ <anchorfile>tsms__rpdu_8h.html</anchorfile>
+ <anchor>a72c7f03f6a75ad4a8373dc72e68600c1</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_command.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/tpdu/</path>
+ <filename>tsms__tpdu__command_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <class kind="struct">tsms_tpdu_command_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_COMMAND</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>a87efc321007f3d5aad96c0c0f894381c</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga90864d6bee8ca4e7a84af621671a1ffa</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_tostring</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>a8746521f56ac699a5d80bc9f233d1a2f</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gab7d48f6cda450b0700884ea23b11d709</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_set_cmddata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac2f78b6f771728dcf16c7897db3c4a40</anchor>
+ <arglist>(self, cdata)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS enum tsms_tpdu_cmd_e</type>
+ <name>tsms_tpdu_cmd_t</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>a1f02be47f10a94267b2bfd65053bef77</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_tpdu_command_s</type>
+ <name>tsms_tpdu_command_t</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>ad324eb121c74f4d972cbdc96891ee1cd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_tpdu_cmd_e</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>ae1426b2fc639daabd57c2c6cf0a7be3f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_cmd_rel</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>ae1426b2fc639daabd57c2c6cf0a7be3fa9424f84dce19197c85329b675b516dc9</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_cmd_cancel</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>ae1426b2fc639daabd57c2c6cf0a7be3fa976a1405b0ff59c7222c4f98922bf157</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_cmd_delete</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>ae1426b2fc639daabd57c2c6cf0a7be3fa65bb9c06ed38cf56be40f4fdf26ba2b4</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_cmd_enable_status</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>ae1426b2fc639daabd57c2c6cf0a7be3fa225eefad84c3f9e2594d16f20366d44c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_tpdu_command_t *</type>
+ <name>tsms_tpdu_command_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga239732e7be3081cedc403c97cc9c7497</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest, uint8_t msg_num, tsms_tpdu_cmd_t cmd)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_tpdu_command_def_t</name>
+ <anchorfile>tsms__tpdu__command_8h.html</anchorfile>
+ <anchor>aa5f92536bf46a9c9916f1fbf6500ee36</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_deliver.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/tpdu/</path>
+ <filename>tsms__tpdu__deliver_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <class kind="struct">tsms_tpdu_deliver_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DELIVER</name>
+ <anchorfile>tsms__tpdu__deliver_8h.html</anchorfile>
+ <anchor>a4ae8d26eb33e6a8f6b303b5bcbbd90e3</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga4768097f9e42feff077e821c209be4e9</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_tostring</name>
+ <anchorfile>tsms__tpdu__deliver_8h.html</anchorfile>
+ <anchor>a1553af338facafa905e08df61f32fde0</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga78ff03cc6dceeeea4f3d0cd57e1b272b</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gaf6f60b098a075894156a378ed78e844d</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS struct tsms_tpdu_deliver_s</type>
+ <name>tsms_tpdu_deliver_t</name>
+ <anchorfile>tsms__tpdu__deliver_8h.html</anchorfile>
+ <anchor>a83773d5438d32ad5687317079774aa04</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_tpdu_deliver_t *</type>
+ <name>tsms_tpdu_deliver_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gaec75a2915fc0e29f24075b80a2ac40ff</anchor>
+ <arglist>(const tsms_address_string_t smsc, const tsms_address_string_t orig)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_tpdu_deliver_def_t</name>
+ <anchorfile>tsms__tpdu__deliver_8h.html</anchorfile>
+ <anchor>ac49bcf070b342868e9d3537c785ab4ae</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_report.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/tpdu/</path>
+ <filename>tsms__tpdu__report_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <class kind="struct">tsms_tpdu_report_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_REPORT</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>a01ab8732480ae988c81efaf67ca242c1</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_REPORT_IS_MO</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>af56ca1bcbaf4fc5f752ec6ec5b542041</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga542962bb9f989075a86b3000283d50e9</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_tostring</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>ad2af47ee7b7dd012b9990bdbb4e4d678</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga7eedf91cbe12f7560f9e67b2272245c4</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga46c37f7dc628af1fab3867a346b1223f</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS struct tsms_tpdu_report_s</type>
+ <name>tsms_tpdu_report_t</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>a71f1bf474cec1217548e1307780004b8</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_tpdu_report_t *</type>
+ <name>tsms_tpdu_report_create</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>a33672efeb750b2907604a41261262e88</anchor>
+ <arglist>(const tsms_address_string_t smsc, tsk_bool_t submit, tsk_bool_t error)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API int</type>
+ <name>tsms_tpdu_report_set_fcs</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>ac0ea27857d4fd018f41f4d6bfc0cfb73</anchor>
+ <arglist>(tsms_tpdu_report_t *self, uint8_t code)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_tpdu_report_def_t</name>
+ <anchorfile>tsms__tpdu__report_8h.html</anchorfile>
+ <anchor>a755291aa428a4073a411276b948ff1b4</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_status_report.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/tpdu/</path>
+ <filename>tsms__tpdu__status__report_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <class kind="struct">tsms_tpdu_status_report_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_STATUS_REPORT</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>a32890b60ad34aea550e838a9dad4581e</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac0f04a5b0d9a7fd4c48b0e29a32fd453</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_tostring</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>ad2bb9dcd74eac269f81fbb3285b1598f</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga82cb05b61ab2098932856ff3f94caf7f</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga3d5aa918ccde3cf03373de29346db3d3</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS enum tsms_tpdu_status_type_e</type>
+ <name>tsms_tpdu_status_type_t</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aef005f6482380a54c654982158fa8e77</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_tpdu_status_report_s</type>
+ <name>tsms_tpdu_status_report_t</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>abe5f541f6b3fc5a8fd6b222db9cf7c87</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_tpdu_status_type_e</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_received</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a2be45dfd48b3b65f25b8940a1b5ea5b7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_forwarded</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a9c6459bbd5961a985a91dc0d2accd50f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_replaced</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a154ed26bae7cc6ea904c1f159d2c20a7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_congestion</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786adf7fd3ac88e41056ab15a03dce87cc55</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_busy</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a02323b1d1003e9dafe884fb5b238ae70</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_no_response</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786ae39332ba00813faf2bf3f90f18c7b996</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_serv_rejected</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a51be867166da427c4cb11cb9d058ce78</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_no_qos</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a1139d5a85cf633faec944322c744aa5d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_error_in_sme</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786adab418e468fc05164130faa36b7f856f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_remote_error</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a05d06af405ef4abd6540b4d3047ae3b9</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_incompatible_dest</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786ae6c15616816a6329b94144cabdf7008f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_conn_rejected</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a242994765f74f53bb045bd0dae76379f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_not_obtainable</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786adcfea3bd7b312194813fff9257341d75</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_no_qos_2</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a23e6a86e27c336e89fe96cb7ae0f4cba</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_no_inter_avail</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786acd49fddb7216e7f06aeb673af4dbe27c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_vp_expired</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a442f298bc94df41cedc10d2d0c472478</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_deleted_by_orig</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a8dd88157270624363cb5b1cf808210e0</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_deleted_by_admin</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786ac24899a558d39dce1fc1fbc8a353981c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_sm_not_exist</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a2d7392c011d7d0b9589701903d7ce08d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_congestion_3</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a05f36c81c437e4e655de353b72868a12</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_busy_3</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a77f402d2ca08208fb5fee36ae13b121f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_no_response_3</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a171e4714c58371d533e5954ddf4acc91</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_serv_rejected_3</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a657d38c4f23f03a1e417d8d76c679135</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_temp_no_qos_3</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786a15d6113ab01435d84a6a88aa7e76eeb5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_status_error_in_sme_3</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>aab9cc77afda74d40bc6eeaf5751de786ab41300b6c110507753ca3f9d715bc652</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_tpdu_status_report_t *</type>
+ <name>tsms_tpdu_status_report_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gae3bed7be4b11d147a472ba46616003b3</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t recipient, tsms_tpdu_status_type_t status, tsk_bool_t submit)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_tpdu_status_report_def_t</name>
+ <anchorfile>tsms__tpdu__status__report_8h.html</anchorfile>
+ <anchor>a034aee161d500066a305d4251fc7016c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_submit.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/tpdu/</path>
+ <filename>tsms__tpdu__submit_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <class kind="struct">tsms_tpdu_submit_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_SUBMIT</name>
+ <anchorfile>tsms__tpdu__submit_8h.html</anchorfile>
+ <anchor>a2f3ad26b37878339084fbff7440530ef</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gafe89fa4b138f9f356ee4622210e36358</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_tostring</name>
+ <anchorfile>tsms__tpdu__submit_8h.html</anchorfile>
+ <anchor>a851a10d99d90435c7b48dd0d66ee7e5a</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga2798d593f1ceb66c05345b36c4e4d3e1</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga2fcce553f869100adb016d10f499083c</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS struct tsms_tpdu_submit_s</type>
+ <name>tsms_tpdu_submit_t</name>
+ <anchorfile>tsms__tpdu__submit_8h.html</anchorfile>
+ <anchor>aca617c51526dd733bbb9a4de94e8e804</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_tpdu_submit_t *</type>
+ <name>tsms_tpdu_submit_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gacff03a913d2a97fb9a8201c8f8e7e989</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_tpdu_submit_def_t</name>
+ <anchorfile>tsms__tpdu__submit_8h.html</anchorfile>
+ <anchor>a714d473125a3062e070a24a53e6c271f</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/</path>
+ <filename>tsms_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ </compound>
+ <compound kind="file">
+ <name>tsms_address.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/</path>
+ <filename>tsms__address_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <class kind="struct">tsms_address_s</class>
+ <member kind="typedef">
+ <type>enum tsms_address_type_e</type>
+ <name>tsms_address_type_t</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a0828489bbcf7da6c524adf295662bc7a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum tsms_address_ton_e</type>
+ <name>tsms_address_ton_t</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>afaa8be016a634d33a0d35ff2c33e2d6f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum tsms_address_npi_e</type>
+ <name>tsms_address_npi_t</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a6682d48894029029483b9f94c9a9bcad</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_address_s</type>
+ <name>tsms_address_t</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>ac58eec864cdc56e3ec25c1418ed9975b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_address_type_e</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a2b53b5276f28408b9404f08954724982</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_oa</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a2b53b5276f28408b9404f08954724982a8474a8fd3ea689112119692caece8d92</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_da</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a2b53b5276f28408b9404f08954724982aa30eabc38abf3a7d3c886540ed7133b7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_smsc</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a2b53b5276f28408b9404f08954724982a1f4b63abacdde3cbcaef8b8cecb93b48</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_address_ton_e</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_unknown</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a4ce89cea8e9c121dc4e9b819c5ab4adb</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_international</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a0bb254db5dc9152205b24cb4a4d38f96</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_national</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a5e55efb47ecafa9f9da1ae020f77a77c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_network_specific</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a0e350a6aa686d9330ab672c9c7eabbee</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_subscriber</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a792b672b14c7f51e2247d4b789349cd8</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_alphanumeric</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a29204d9d5707b1aa8b5dcbada78fda4e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_abbreviated</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26a8bd02c2a2a379f7b140b652a88eef742</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_ton_reserved</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a1cc90165eb908a8689b661ef9a568f26aa93b45525b6a9d5ff11b76c49d1b0be0</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_address_npi_e</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_unknown</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469ea6a003127af47339610d4282dd5f6065b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_isdn</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469eae0839c136bfd8143a8f190498a21b44e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_x121</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469ea1986d203d6af80e7d32e85a168a36111</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_telex</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469eaeaf1a8a4b9cbf4adbb272eabe9e59431</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_national</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469ea720713f66c7e7d0735ee00b8c2fe9646</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_private</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469eac3f19518b752af78a3e8d75a8be3c75b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_ermes</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469ea12dab2ccdc76a4a825a6224851920d61</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_addr_npi_reserved</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a9cc1b45edc645eb842bc64afe635469eaaec95395dc3ac31b901527c81aee9e03</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_address_serialize</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a507b9730755fcc9d3ad1027be5ace0d7</anchor>
+ <arglist>(const tsms_address_t *address, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_deserialize</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>abc662334a34e4064a7a6bad52a364905</anchor>
+ <arglist>(const void *data, tsk_size_t size, tsms_address_type_t xtype, tsk_size_t *length)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_create</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>ac56f24c7eca88ff0c3e14ea4ecccab10</anchor>
+ <arglist>(const tsms_address_string_t digits, tsms_address_type_t type)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_oa_create</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>ac76c474e2fba47adb26890326e4737ee</anchor>
+ <arglist>(const tsms_address_string_t digits)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_da_create</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a43e6439ca43a91ad895dc06604d50013</anchor>
+ <arglist>(const tsms_address_string_t digits)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_smsc_create</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a6537fd07058f579223b585ec3b40bf85</anchor>
+ <arglist>(const tsms_address_string_t digits)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TSMS_BEGIN_DECLS typedef uint8_t</type>
+ <name>tsms_address_string_t</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>aa639d2f581a1b27328d3366a24f3fc36</anchor>
+ <arglist>[13]</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYSMS_GEXTERN const tsk_object_def_t *</type>
+ <name>tsms_address_def_t</name>
+ <anchorfile>tsms__address_8h.html</anchorfile>
+ <anchor>a0ddbef1df3e316ae05dfed05005c494c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_common.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/</path>
+ <filename>tsms__common_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <includes id="tsms__address_8h" name="tsms_address.h" local="yes" imported="no">tinysms/tsms_address.h</includes>
+ <class kind="struct">tsms_tpdu_message_s</class>
+ <class kind="struct">tsms_rpdu_message_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ALPHA_FROM_DCS</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a29855df7a97f4604172a86b03e9a4a35</anchor>
+ <arglist>(dcs)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_MTI_IS_RESERVED</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ae3f34fb52e703b4bde104533375751a6</anchor>
+ <arglist>(mti)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_MTI_IS_MO</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a599f33f1f71df271a6f1bf9bb5446458</anchor>
+ <arglist>(mti)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_DECLARE_TPDU_MESSAGE</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>adfae7ed3c2a0e938c6617cb4247a8e10</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_MESSAGE</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a30662e72d0b18b6beaf0a4ac4793bba2</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_serialize_mo</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga87b948f6fddfc874927ec3327694aff8</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_serialize_mt</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga89ecc7dd4f55702eb6aa4491179ebf2f</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_deserialize_mo</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga1d9b57bb99775b017ad8ef672ab23690</anchor>
+ <arglist>(data, size)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_deserialize_mt</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga4621ebda575020c673045e72fe3aa651</anchor>
+ <arglist>(data, size)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_PID</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a1c578c6cfca27b93a7cae4ef60194600</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_DCS</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8bc7230f96d0577effafd7cbb2a45afe</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_VP</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ac75d19e74f74caa40d4fa7aca5b9eb76</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_VPF</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ade2d12fbddb972ff91c0bcb98d781b38</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_FCS</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>af5fd5126b5ec1cd7328fbf0895a109b1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_PI</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a82720cf54931b8a8ffb59bf83e5f40a0</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_SCTS</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>aa87e60e7c29ad71d779231aeffb99669</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_DEFAULT_MMS</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>aa100abd40cae615c1a9a195c07183650</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_TPDU_APPEND_SMSC</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a36b4975358fce9494a1258de0713e093</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_RPDU_TYPE_IS_MO</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a81705e5a0ee5207e7a7a865bff9ecf0c</anchor>
+ <arglist>(type)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_DECLARE_RPDU_MESSAGE</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>aded604170cc2bf281e1dd65202fd43e9</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_RPDU_MESSAGE</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a021282323a27cc99ef15cceaccd286e8</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TSMS_BEGIN_DECLS enum tsms_alphabet_e</type>
+ <name>tsms_alphabet_t</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a13a9cc533b988588cadae86ebdf937a0</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum tsms_tpdu_mti_e</type>
+ <name>tsms_tpdu_mti_t</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8918709f71f141409094082bbbcd300a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum tsms_tpdu_vpf_e</type>
+ <name>tsms_tpdu_vpf_t</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a241e5a68e06bee56f2828bafcd7adaf6</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_tpdu_message_s</type>
+ <name>tsms_tpdu_message_t</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a1e806a13943e7963d4d91e9fd67f80ea</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum tsms_rpdu_type_e</type>
+ <name>tsms_rpdu_type_t</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a6d9e66a8fe61c68830abe3cea6d7e4c6</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct tsms_rpdu_message_s</type>
+ <name>tsms_rpdu_message_t</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>aa61bf674fb0c22284461f8d5703fdad2</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_alphabet_e</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ad0b5824a16041ea60903bf40505fa707</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_alpha_reserved</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ad0b5824a16041ea60903bf40505fa707a894b8f649597c4f51b2c945104aa4445</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_alpha_7bit</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ad0b5824a16041ea60903bf40505fa707a92043505be20e64f83a9cd16207ec380</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_alpha_8bit</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ad0b5824a16041ea60903bf40505fa707a02e4ee43c20d8697c60ae06be8e54689</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_alpha_ucs2</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>ad0b5824a16041ea60903bf40505fa707aac13f6a189dbf03b8507a738b34063fd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_tpdu_mti_e</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_deliver_mt</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68ca55e0aff8ca043b7f6e2fbe5d304ecc00</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_deliver_report_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68ca8a1ec94841e8c679f70d5212b0fa6949</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_status_report_mt</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68ca900ce889f7066b31f9f48bd384408172</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_command_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68ca8a6a855ae9a1ce773fb86d8e99f8f55c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_submit_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68cae30123b35d44fcfbb40a38b37391d5d5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_submit_report_mt</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68caefabfee689a959d7fd5cdbfcf86b8d43</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_mti_reserved</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a8e71a089f7c40066c43f9486914ff68ca17e3003fa583a37739400bd33004cb29</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_tpdu_vpf_e</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a12279bf790f28b7adcef53e3a4f0d9de</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_vpf_not_present</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a12279bf790f28b7adcef53e3a4f0d9deade73839b01ef15988dc167f61932c9a8</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_vpf_relative</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a12279bf790f28b7adcef53e3a4f0d9dea8cea9c578cda9a4025ac2b3303a2db96</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_vpf_enhanced</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a12279bf790f28b7adcef53e3a4f0d9dea55029bd842820b94722b2fb2ea88bd71</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_tpdu_vpf_absolute</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a12279bf790f28b7adcef53e3a4f0d9deae8302746fbc448e32e5e3379dbecf884</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>tsms_rpdu_type_e</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_data_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167aeb1b38eccd3dce70761bbdfe9a4bed3a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_data_mt</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167a437a8e02252512b6a749a53f5b29044f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_ack_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167a9220550e49dcfb2e1fec98169c5c4a2a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_ack_mt</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167af28a8ba87a068a2b175642a4c932d41a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_error_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167ae038a392bb29ffad4dc1ad55c9a31baf</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_error_mt</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167afacd50bbada678fc1232ab0c85f7ef25</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tsms_rpdu_type_smma_mo</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a2c7fcb742c3bc964ca917e4272cb3167a13e64ff416abbfea77a24340c1275007</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_init</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>a47eebcb0667a2fbc1bd7b26618ab2648</anchor>
+ <arglist>(tsms_tpdu_message_t *self, tsms_tpdu_mti_t mti)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API int</type>
+ <name>tsms_tpdu_message_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gad1792455c7f970f3e27ce00f10565f42</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_tpdu_message_t *</type>
+ <name>tsms_tpdu_message_deserialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gad59f30e9edb66eb3d26eafd51dbd09fc</anchor>
+ <arglist>(const void *data, tsk_size_t size, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_tpdu_message_tostring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gae87ed5dcd57b10dd47b8e96785e7f545</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_tpdu_message_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga1daaf76c6f824f4ef888c7a2c0d5b0f9</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_tpdu_message_get_payload</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga733ca5ad5d513f61b68c85570497226d</anchor>
+ <arglist>(const tsms_tpdu_message_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API int</type>
+ <name>tsms_tpdu_message_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac22be8031c22c058341786c5382d726e</anchor>
+ <arglist>(tsms_tpdu_message_t *self, const tsk_buffer_t *udata, tsms_alphabet_t alpha)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_deinit</name>
+ <anchorfile>tsms__common_8h.html</anchorfile>
+ <anchor>aaf563a05778ce503cb518932c191d00f</anchor>
+ <arglist>(tsms_tpdu_message_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API int</type>
+ <name>tsms_rpdu_message_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga3e3d2edcb276313e27838c600ff95c87</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsms_rpdu_message_t *</type>
+ <name>tsms_rpdu_message_deserialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gaddfae888c86bfcbab67b60ddcc963cf0</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_rpdu_message_tohexastring</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gaf1d06a3766290da7873b4362f4efadbb</anchor>
+ <arglist>(const tsms_rpdu_message_t *self)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_etsi_gsm_03_38.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/</path>
+ <filename>tsms__etsi__gsm__03__38_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ETSI_GSM_03_38_COUNT</name>
+ <anchorfile>tsms__etsi__gsm__03__38_8h.html</anchorfile>
+ <anchor>a4dc23fb32f1c903dfdd3acadb5abafb8</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_packing.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/tinysms/</path>
+ <filename>tsms__packing_8h</filename>
+ <includes id="tinysms__config_8h" name="tinysms_config.h" local="yes" imported="no">tinysms_config.h</includes>
+ <member kind="function">
+ <type>TSMS_BEGIN_DECLS TINYSMS_API tsk_buffer_t *</type>
+ <name>tsms_pack_to_7bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga5ec76b83fedbd705f29a2bb8504095c9</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsk_buffer_t *</type>
+ <name>tsms_pack_to_ucs2</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>gafcfc13106399cada5e658b5cdeb520e0</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API tsk_buffer_t *</type>
+ <name>tsms_pack_to_8bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga2618ee85c5f41086a2763b9cfafec223</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_pack_from_7bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga05ce76a51583893258f7ccc38f54fc42</anchor>
+ <arglist>(const void *gsm7bit, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_pack_from_ucs2</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga7d3f412de3f53083056fd7fab2e7aa6b</anchor>
+ <arglist>(const void *ucs2, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYSMS_API char *</type>
+ <name>tsms_pack_from_8bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga56acefc52098c1a66db2bc7e5250eff2</anchor>
+ <arglist>(const void *gsm8bit, tsk_size_t size)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tinysms_config.h</name>
+ <path>C:/Projects/Doubango/tinySMS/include/</path>
+ <filename>tinysms__config_8h</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>TINYSMS_API</name>
+ <anchorfile>tinysms__config_8h.html</anchorfile>
+ <anchor>a7756a01514716f7ebbb2470fef2aaed0</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TINYSMS_GEXTERN</name>
+ <anchorfile>tinysms__config_8h.html</anchorfile>
+ <anchor>a9c16ccde1b4e5f708bfd20548c934232</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_BEGIN_DECLS</name>
+ <anchorfile>tinysms__config_8h.html</anchorfile>
+ <anchor>a084feea3d083f7bc788039073aadc346</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_END_DECLS</name>
+ <anchorfile>tinysms__config_8h.html</anchorfile>
+ <anchor>afc2f6fd3c9090e24b5274c5a0ebaee53</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_rpdu.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/rpdu/</path>
+ <filename>tsms__rpdu_8c</filename>
+ <includes id="tsms__rpdu_8h" name="tsms_rpdu.h" local="yes" imported="no">tinysms/rpdu/tsms_rpdu.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ERROR_TOO_SHORT</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a5cce6a73db203a29a95b1a04e931750b</anchor>
+ <arglist>(type)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rpdata_deserialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>adb99738343fb13e155c842b5453fb1e7</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rpdata_serialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>ae9ac47639ac1bfeb8e7240ce669178f4</anchor>
+ <arglist>(const tsms_rpdu_message_t *_self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_data_t *</type>
+ <name>tsms_rpdu_data_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga5589e131deeab1e25eb08494f7554d55</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_tpdu_message_t *tpdu, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rpsmma_deserialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a42545971352879d43a73cbb8cceaf978</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rpsmma_serialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a5b023ad9c429f7ffc7b917a0636588a6</anchor>
+ <arglist>(const tsms_rpdu_message_t *_self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_smma_t *</type>
+ <name>tsms_rpdu_smma_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gac588512623e47fdfdbac5cd0a387572a</anchor>
+ <arglist>(uint8_t mr)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rpack_deserialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>aa8180fc4f5ba93fb71ba377e5fe1afb3</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rpack_serialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>ad6c821ed10857f4a87e666ee330ce586</anchor>
+ <arglist>(const tsms_rpdu_message_t *_self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_ack_t *</type>
+ <name>tsms_rpdu_ack_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga1464b066b6b93ed848049fb80ba4d4a5</anchor>
+ <arglist>(uint8_t mr, const tsms_tpdu_message_t *tpdu, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rperror_deserialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a7cd5468dc0cd7a1131b83c739936f786</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rperror_serialize</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a36d8067ced8447ec0c025c902e7ac632</anchor>
+ <arglist>(const tsms_rpdu_message_t *_self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_error_t *</type>
+ <name>tsms_rpdu_error_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga445ece4fe91ccafe88343cf6e1f1bf30</anchor>
+ <arglist>(uint8_t mr, const tsms_tpdu_message_t *tpdu, uint8_t cause, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_rpdu_data_def_t</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a5c986cfb3af3555b43f00b2864a9d39a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_rpdu_smma_def_t</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a40a7aea052b217811def43fa33069889</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_rpdu_ack_def_t</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a730afd9d5b464baa516b7c8c6d411b29</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_rpdu_error_def_t</name>
+ <anchorfile>tsms__rpdu_8c.html</anchorfile>
+ <anchor>a2adbd080b2ec726a8c1dc139a360b8a8</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_command.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/tpdu/</path>
+ <filename>tsms__tpdu__command_8c</filename>
+ <includes id="tsms__tpdu__command_8h" name="tsms_tpdu_command.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_command.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ERROR_TOO_SHORT</name>
+ <anchorfile>tsms__tpdu__command_8c.html</anchorfile>
+ <anchor>add2e5155902e6fe23c5aca49835c9d2f</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_command_deserialize</name>
+ <anchorfile>tsms__tpdu__command_8c.html</anchorfile>
+ <anchor>a2a4ef83ce35bd81e61f3bd5db9be92fd</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_command_serialize</name>
+ <anchorfile>tsms__tpdu__command_8c.html</anchorfile>
+ <anchor>a7030a76cfe083ff075274aa487aff4c3</anchor>
+ <arglist>(const tsms_tpdu_command_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_command_t *</type>
+ <name>tsms_tpdu_command_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga239732e7be3081cedc403c97cc9c7497</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest, uint8_t msg_num, tsms_tpdu_cmd_t cmd)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_tpdu_command_def_t</name>
+ <anchorfile>tsms__tpdu__command_8c.html</anchorfile>
+ <anchor>a930685ea13f056c3ac305ab27cdc8897</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_deliver.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/tpdu/</path>
+ <filename>tsms__tpdu__deliver_8c</filename>
+ <includes id="tsms__tpdu__deliver_8h" name="tsms_tpdu_deliver.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_deliver.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ERROR_TOO_SHORT</name>
+ <anchorfile>tsms__tpdu__deliver_8c.html</anchorfile>
+ <anchor>add2e5155902e6fe23c5aca49835c9d2f</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_deliver_deserialize</name>
+ <anchorfile>tsms__tpdu__deliver_8c.html</anchorfile>
+ <anchor>a15b7e7b03ef295e7489577754eda678e</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_deliver_serialize</name>
+ <anchorfile>tsms__tpdu__deliver_8c.html</anchorfile>
+ <anchor>a44d3fc4fabf696737301a5477d870b05</anchor>
+ <arglist>(const tsms_tpdu_deliver_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_deliver_t *</type>
+ <name>tsms_tpdu_deliver_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gaec75a2915fc0e29f24075b80a2ac40ff</anchor>
+ <arglist>(const tsms_address_string_t smsc, const tsms_address_string_t orig)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_tpdu_deliver_def_t</name>
+ <anchorfile>tsms__tpdu__deliver_8c.html</anchorfile>
+ <anchor>a6228aa1c67ce911325f84ba60356923c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_report.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/tpdu/</path>
+ <filename>tsms__tpdu__report_8c</filename>
+ <includes id="tsms__tpdu__report_8h" name="tsms_tpdu_report.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_report.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ERROR_TOO_SHORT</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>add2e5155902e6fe23c5aca49835c9d2f</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_report_deserialize_2</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>af5e6a8f6a19983a7cfd85be48c266780</anchor>
+ <arglist>(const void *data, tsk_size_t size, tsk_bool_t error)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_report_deserialize</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>abebbb58c898c033aacc70f921da5fb15</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_report_serialize</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>a777bc436cd4de3c23e60943b4fb2e70e</anchor>
+ <arglist>(const tsms_tpdu_report_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_report_t *</type>
+ <name>tsms_tpdu_report_create</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>aa3aa4930a806d47ec6199984e867f0d0</anchor>
+ <arglist>(const tsms_address_string_t smsc, tsk_bool_t submit, tsk_bool_t error)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_report_set_fcs</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>a82bfca59830ed60b72aa166780c20011</anchor>
+ <arglist>(tsms_tpdu_report_t *self, uint8_t code)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_tpdu_report_def_t</name>
+ <anchorfile>tsms__tpdu__report_8c.html</anchorfile>
+ <anchor>aaa6fd791d91ce0545cdd116c4c431ce7</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_status_report.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/tpdu/</path>
+ <filename>tsms__tpdu__status__report_8c</filename>
+ <includes id="tsms__tpdu__status__report_8h" name="tsms_tpdu_status_report.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_status_report.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ERROR_TOO_SHORT</name>
+ <anchorfile>tsms__tpdu__status__report_8c.html</anchorfile>
+ <anchor>add2e5155902e6fe23c5aca49835c9d2f</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_status_report_deserialize</name>
+ <anchorfile>tsms__tpdu__status__report_8c.html</anchorfile>
+ <anchor>a5449be5149020e659b9961651324044a</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_status_report_serialize</name>
+ <anchorfile>tsms__tpdu__status__report_8c.html</anchorfile>
+ <anchor>a3b3358ac5b86c1e99cebca53100032b3</anchor>
+ <arglist>(const tsms_tpdu_status_report_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_status_report_t *</type>
+ <name>tsms_tpdu_status_report_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gae3bed7be4b11d147a472ba46616003b3</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t recipient, tsms_tpdu_status_type_t status, tsk_bool_t submit)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_tpdu_status_report_def_t</name>
+ <anchorfile>tsms__tpdu__status__report_8c.html</anchorfile>
+ <anchor>a4b24621760af7a7f904baa2dc271e345</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_tpdu_submit.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/tpdu/</path>
+ <filename>tsms__tpdu__submit_8c</filename>
+ <includes id="tsms__tpdu__submit_8h" name="tsms_tpdu_submit.h" local="yes" imported="no">tinysms/tpdu/tsms_tpdu_submit.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TSMS_ERROR_TOO_SHORT</name>
+ <anchorfile>tsms__tpdu__submit_8c.html</anchorfile>
+ <anchor>add2e5155902e6fe23c5aca49835c9d2f</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_submit_deserialize</name>
+ <anchorfile>tsms__tpdu__submit_8c.html</anchorfile>
+ <anchor>ab2380303ce3c61ead34acbebc552f0db</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_submit_serialize</name>
+ <anchorfile>tsms__tpdu__submit_8c.html</anchorfile>
+ <anchor>a1500ba088ecdab7158439a7358858ec8</anchor>
+ <arglist>(const tsms_tpdu_submit_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_submit_t *</type>
+ <name>tsms_tpdu_submit_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gacff03a913d2a97fb9a8201c8f8e7e989</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_tpdu_submit_def_t</name>
+ <anchorfile>tsms__tpdu__submit_8c.html</anchorfile>
+ <anchor>a962877743e46916338aacc6d393ac0a9</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/</path>
+ <filename>tsms_8c</filename>
+ <includes id="tsms_8h" name="tsms.h" local="yes" imported="no">tinysms/tsms.h</includes>
+ </compound>
+ <compound kind="file">
+ <name>tsms_address.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/</path>
+ <filename>tsms__address_8c</filename>
+ <includes id="tsms__address_8h" name="tsms_address.h" local="yes" imported="no">tinysms/tsms_address.h</includes>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_address_swap</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>adc866491ab290e7acc65bec7a8e827cd</anchor>
+ <arglist>(const char *in, tsk_size_t in_len)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_create</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>ac56f24c7eca88ff0c3e14ea4ecccab10</anchor>
+ <arglist>(const tsms_address_string_t digits, tsms_address_type_t type)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_oa_create</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>ac76c474e2fba47adb26890326e4737ee</anchor>
+ <arglist>(const tsms_address_string_t digits)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_da_create</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>a43e6439ca43a91ad895dc06604d50013</anchor>
+ <arglist>(const tsms_address_string_t digits)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_smsc_create</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>a6537fd07058f579223b585ec3b40bf85</anchor>
+ <arglist>(const tsms_address_string_t digits)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_address_serialize</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>a507b9730755fcc9d3ad1027be5ace0d7</anchor>
+ <arglist>(const tsms_address_t *address, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_address_t *</type>
+ <name>tsms_address_deserialize</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>abc662334a34e4064a7a6bad52a364905</anchor>
+ <arglist>(const void *data, tsk_size_t size, tsms_address_type_t xtype, tsk_size_t *length)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>tsms_address_def_t</name>
+ <anchorfile>tsms__address_8c.html</anchorfile>
+ <anchor>aec178867058428f667610f0ef1750e18</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_common.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/</path>
+ <filename>tsms__common_8c</filename>
+ <includes id="tsms__common_8h" name="tsms_common.h" local="yes" imported="no">tinysms/tsms_common.h</includes>
+ <includes id="tsms__packing_8h" name="tsms_packing.h" local="yes" imported="no">tinysms/tsms_packing.h</includes>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_submit_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>ab2380303ce3c61ead34acbebc552f0db</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_deliver_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a15b7e7b03ef295e7489577754eda678e</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_command_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a2a4ef83ce35bd81e61f3bd5db9be92fd</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_report_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>abebbb58c898c033aacc70f921da5fb15</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>_tsms_tpdu_status_report_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a5449be5149020e659b9961651324044a</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_submit_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>ab87aff09c449a3baeb5f4dc95588cf49</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_deliver_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a3c7cb3012cba9bd4f61018db4f976608</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_command_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a1ea01962f453472e423bf04c45097551</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_report_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a1f1bdbac5c207ec1b9cb844446f891ff</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_tpdu_status_report_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>ad0b95d89481aba76c566e272137fde86</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_init</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a47eebcb0667a2fbc1bd7b26618ab2648</anchor>
+ <arglist>(tsms_tpdu_message_t *self, tsms_tpdu_mti_t mti)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gad1792455c7f970f3e27ce00f10565f42</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>tsms_tpdu_message_deserialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gad59f30e9edb66eb3d26eafd51dbd09fc</anchor>
+ <arglist>(const void *data, tsk_size_t size, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_tpdu_message_tostring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gae87ed5dcd57b10dd47b8e96785e7f545</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_tpdu_message_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga1daaf76c6f824f4ef888c7a2c0d5b0f9</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_tpdu_message_get_payload</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga733ca5ad5d513f61b68c85570497226d</anchor>
+ <arglist>(const tsms_tpdu_message_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac22be8031c22c058341786c5382d726e</anchor>
+ <arglist>(tsms_tpdu_message_t *self, const tsk_buffer_t *udata, tsms_alphabet_t alpha)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_deinit</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>aaf563a05778ce503cb518932c191d00f</anchor>
+ <arglist>(tsms_tpdu_message_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rpdata_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a27c84245caf989f3f407183e7d657817</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rpsmma_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a539fe1c0b79b91057c510dfeaa401830</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rpack_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>ad2309bbddc1c122466646141bb52a87d</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>_tsms_rpdu_rperror_serialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a2034b5f160068d5ecac2dd05823c92c3</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rpdata_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>adb99738343fb13e155c842b5453fb1e7</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rpsmma_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a42545971352879d43a73cbb8cceaf978</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rpack_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>aa8180fc4f5ba93fb71ba377e5fe1afb3</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>_tsms_rpdu_rperror_deserialize</name>
+ <anchorfile>tsms__common_8c.html</anchorfile>
+ <anchor>a7cd5468dc0cd7a1131b83c739936f786</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_rpdu_message_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga3e3d2edcb276313e27838c600ff95c87</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>tsms_rpdu_message_deserialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gaddfae888c86bfcbab67b60ddcc963cf0</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_rpdu_message_tohexastring</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gaf1d06a3766290da7873b4362f4efadbb</anchor>
+ <arglist>(const tsms_rpdu_message_t *self)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tsms_packing.c</name>
+ <path>C:/Projects/Doubango/tinySMS/src/</path>
+ <filename>tsms__packing_8c</filename>
+ <includes id="tsms__packing_8h" name="tsms_packing.h" local="yes" imported="no">tinysms/tsms_packing.h</includes>
+ <includes id="tsms__etsi__gsm__03__38_8h" name="tsms_etsi_gsm_03_38.h" local="yes" imported="no">tinysms/tsms_etsi_gsm_03_38.h</includes>
+ <member kind="function">
+ <type>tsk_buffer_t *</type>
+ <name>tsms_pack_to_7bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga5ec76b83fedbd705f29a2bb8504095c9</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsk_buffer_t *</type>
+ <name>tsms_pack_to_ucs2</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>gafcfc13106399cada5e658b5cdeb520e0</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsk_buffer_t *</type>
+ <name>tsms_pack_to_8bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga2618ee85c5f41086a2763b9cfafec223</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_pack_from_7bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga05ce76a51583893258f7ccc38f54fc42</anchor>
+ <arglist>(const void *gsm7bit, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_pack_from_ucs2</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga7d3f412de3f53083056fd7fab2e7aa6b</anchor>
+ <arglist>(const void *ucs2, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_pack_from_8bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga56acefc52098c1a66db2bc7e5250eff2</anchor>
+ <arglist>(const void *gsm8bit, tsk_size_t size)</arglist>
+ </member>
+ </compound>
+ <compound kind="group">
+ <name>tsms_tpdu_group</name>
+ <title>Service provided by the SM-TL (Transport)</title>
+ <filename>group__tsms__tpdu__group.html</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga90864d6bee8ca4e7a84af621671a1ffa</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gab7d48f6cda450b0700884ea23b11d709</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_command_set_cmddata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac2f78b6f771728dcf16c7897db3c4a40</anchor>
+ <arglist>(self, cdata)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga4768097f9e42feff077e821c209be4e9</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga78ff03cc6dceeeea4f3d0cd57e1b272b</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_deliver_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gaf6f60b098a075894156a378ed78e844d</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga542962bb9f989075a86b3000283d50e9</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga7eedf91cbe12f7560f9e67b2272245c4</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_report_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga46c37f7dc628af1fab3867a346b1223f</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac0f04a5b0d9a7fd4c48b0e29a32fd453</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga82cb05b61ab2098932856ff3f94caf7f</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_status_report_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga3d5aa918ccde3cf03373de29346db3d3</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gafe89fa4b138f9f356ee4622210e36358</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga2798d593f1ceb66c05345b36c4e4d3e1</anchor>
+ <arglist>(self)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_submit_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga2fcce553f869100adb016d10f499083c</anchor>
+ <arglist>(self, udata, alpha)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_serialize_mo</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga87b948f6fddfc874927ec3327694aff8</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_serialize_mt</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga89ecc7dd4f55702eb6aa4491179ebf2f</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_deserialize_mo</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga1d9b57bb99775b017ad8ef672ab23690</anchor>
+ <arglist>(data, size)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_tpdu_message_deserialize_mt</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga4621ebda575020c673045e72fe3aa651</anchor>
+ <arglist>(data, size)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_command_t *</type>
+ <name>tsms_tpdu_command_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga239732e7be3081cedc403c97cc9c7497</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest, uint8_t msg_num, tsms_tpdu_cmd_t cmd)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_deliver_t *</type>
+ <name>tsms_tpdu_deliver_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gaec75a2915fc0e29f24075b80a2ac40ff</anchor>
+ <arglist>(const tsms_address_string_t smsc, const tsms_address_string_t orig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_status_report_t *</type>
+ <name>tsms_tpdu_status_report_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gae3bed7be4b11d147a472ba46616003b3</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t recipient, tsms_tpdu_status_type_t status, tsk_bool_t submit)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_submit_t *</type>
+ <name>tsms_tpdu_submit_create</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gacff03a913d2a97fb9a8201c8f8e7e989</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_address_string_t dest)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_serialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gad1792455c7f970f3e27ce00f10565f42</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_buffer_t *output, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_tpdu_message_t *</type>
+ <name>tsms_tpdu_message_deserialize</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gad59f30e9edb66eb3d26eafd51dbd09fc</anchor>
+ <arglist>(const void *data, tsk_size_t size, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_tpdu_message_tostring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gae87ed5dcd57b10dd47b8e96785e7f545</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_tpdu_message_tohexastring</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga1daaf76c6f824f4ef888c7a2c0d5b0f9</anchor>
+ <arglist>(const tsms_tpdu_message_t *self, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_tpdu_message_get_payload</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>ga733ca5ad5d513f61b68c85570497226d</anchor>
+ <arglist>(const tsms_tpdu_message_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_tpdu_message_set_userdata</name>
+ <anchorfile>group__tsms__tpdu__group.html</anchorfile>
+ <anchor>gac22be8031c22c058341786c5382d726e</anchor>
+ <arglist>(tsms_tpdu_message_t *self, const tsk_buffer_t *udata, tsms_alphabet_t alpha)</arglist>
+ </member>
+ <docanchor file="group__tsms__tpdu__group">tsms_tpdu_group_SUBMIT</docanchor>
+ <docanchor file="group__tsms__tpdu__group">tsms_tpdu_group_STATUS_REPORT</docanchor>
+ <docanchor file="group__tsms__tpdu__group">tsms_tpdu_group_COMMAND</docanchor>
+ <docanchor file="group__tsms__tpdu__group">tsms_tpdu_group_DELIVER</docanchor>
+ </compound>
+ <compound kind="group">
+ <name>tsms_rpdu_group</name>
+ <title>Service provided by the SM-RL (Relay)</title>
+ <filename>group__tsms__rpdu__group.html</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_data_create_mo</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga4cb5e1528206b1166b0bc6f888d58390</anchor>
+ <arglist>(mr, smsc, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_data_create_mt</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gabe4218acfa2ef004520c11f430867268</anchor>
+ <arglist>(mr, smsc, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_data_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gafa8f26571bb60a110a2b7480b85ede5f</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_smma_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gabc0ee8d0cb353fb39d5cab752142bcbb</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_ack_create_mo</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga69f8c3b283c13bfa92be006b152cc99e</anchor>
+ <arglist>(mr, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_ack_create_mt</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gabc26f8ee68c9f42555be07cb81ca32dd</anchor>
+ <arglist>(mr, tpdu)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_ack_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga2aeb9084a881e35c3b1eadd082e764d3</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_error_create_mo</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga2cba98d965737f6ada9d012d21e82b59</anchor>
+ <arglist>(mr, tpdu, cause)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_error_create_mt</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga069e8b8cdda29fa50adaae3b7365a791</anchor>
+ <arglist>(mr, tpdu, cause)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>tsms_rpdu_error_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gac4dac7b6e1839f32cee2e39d85ac5730</anchor>
+ <arglist>(self, output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_data_t *</type>
+ <name>tsms_rpdu_data_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga5589e131deeab1e25eb08494f7554d55</anchor>
+ <arglist>(uint8_t mr, const tsms_address_string_t smsc, const tsms_tpdu_message_t *tpdu, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_smma_t *</type>
+ <name>tsms_rpdu_smma_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gac588512623e47fdfdbac5cd0a387572a</anchor>
+ <arglist>(uint8_t mr)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_ack_t *</type>
+ <name>tsms_rpdu_ack_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga1464b066b6b93ed848049fb80ba4d4a5</anchor>
+ <arglist>(uint8_t mr, const tsms_tpdu_message_t *tpdu, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_error_t *</type>
+ <name>tsms_rpdu_error_create</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga445ece4fe91ccafe88343cf6e1f1bf30</anchor>
+ <arglist>(uint8_t mr, const tsms_tpdu_message_t *tpdu, uint8_t cause, tsk_bool_t MobOrig)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>tsms_rpdu_message_serialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>ga3e3d2edcb276313e27838c600ff95c87</anchor>
+ <arglist>(const tsms_rpdu_message_t *self, tsk_buffer_t *output)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsms_rpdu_message_t *</type>
+ <name>tsms_rpdu_message_deserialize</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gaddfae888c86bfcbab67b60ddcc963cf0</anchor>
+ <arglist>(const void *data, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_rpdu_message_tohexastring</name>
+ <anchorfile>group__tsms__rpdu__group.html</anchorfile>
+ <anchor>gaf1d06a3766290da7873b4362f4efadbb</anchor>
+ <arglist>(const tsms_rpdu_message_t *self)</arglist>
+ </member>
+ <docanchor file="group__tsms__rpdu__group">tsms_rpdu_group_ACK</docanchor>
+ <docanchor file="group__tsms__rpdu__group">tsms_rpdu_group_ERROR</docanchor>
+ <docanchor file="group__tsms__rpdu__group">tsms_rpdu_group_SMMA</docanchor>
+ <docanchor file="group__tsms__rpdu__group">tsms_rpdu_group_DATA</docanchor>
+ </compound>
+ <compound kind="group">
+ <name>tsms_packing_group</name>
+ <title>SMS Packing</title>
+ <filename>group__tsms__packing__group.html</filename>
+ <member kind="function">
+ <type>tsk_buffer_t *</type>
+ <name>tsms_pack_to_7bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga5ec76b83fedbd705f29a2bb8504095c9</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsk_buffer_t *</type>
+ <name>tsms_pack_to_ucs2</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>gafcfc13106399cada5e658b5cdeb520e0</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>tsk_buffer_t *</type>
+ <name>tsms_pack_to_8bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga2618ee85c5f41086a2763b9cfafec223</anchor>
+ <arglist>(const char *ascii)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_pack_from_7bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga05ce76a51583893258f7ccc38f54fc42</anchor>
+ <arglist>(const void *gsm7bit, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_pack_from_ucs2</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga7d3f412de3f53083056fd7fab2e7aa6b</anchor>
+ <arglist>(const void *ucs2, tsk_size_t size)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>tsms_pack_from_8bit</name>
+ <anchorfile>group__tsms__packing__group.html</anchorfile>
+ <anchor>ga56acefc52098c1a66db2bc7e5250eff2</anchor>
+ <arglist>(const void *gsm8bit, tsk_size_t size)</arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_address_s</name>
+ <filename>structtsms__address__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSK_DECLARE_OBJECT</name>
+ <anchorfile>structtsms__address__s.html</anchorfile>
+ <anchor>a6cb2c811d40d14ceb34bd3b2e7dc5e6a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_ton_t</type>
+ <name>ton</name>
+ <anchorfile>structtsms__address__s.html</anchorfile>
+ <anchor>a95079efd1c4e93614773267bb9a4dffa</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_npi_t</type>
+ <name>npi</name>
+ <anchorfile>structtsms__address__s.html</anchorfile>
+ <anchor>adefcd3395d99f67ab125abc5449ec75e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_type_t</type>
+ <name>type</name>
+ <anchorfile>structtsms__address__s.html</anchorfile>
+ <anchor>a60327bf05c699312651b1f69e4539231</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>digits</name>
+ <anchorfile>structtsms__address__s.html</anchorfile>
+ <anchor>ad27b3581399ea814fa77a0e76f7dba82</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_rpdu_ack_s</name>
+ <filename>structtsms__rpdu__ack__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_RPDU_MESSAGE</name>
+ <anchorfile>structtsms__rpdu__ack__s.html</anchorfile>
+ <anchor>ad34c3b1ed52661c3624730d0a77ac3e1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_buffer_t *</type>
+ <name>udata</name>
+ <anchorfile>structtsms__rpdu__ack__s.html</anchorfile>
+ <anchor>a9bcf3ed5adc35d2101b4fdb398a7924c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_rpdu_data_s</name>
+ <filename>structtsms__rpdu__data__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_RPDU_MESSAGE</name>
+ <anchorfile>structtsms__rpdu__data__s.html</anchorfile>
+ <anchor>ad34c3b1ed52661c3624730d0a77ac3e1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>oa</name>
+ <anchorfile>structtsms__rpdu__data__s.html</anchorfile>
+ <anchor>aace8fb066adc91b9b611b8ca1f68d615</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>da</name>
+ <anchorfile>structtsms__rpdu__data__s.html</anchorfile>
+ <anchor>a880175daede78c0951a4504a186d0dcd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_buffer_t *</type>
+ <name>udata</name>
+ <anchorfile>structtsms__rpdu__data__s.html</anchorfile>
+ <anchor>a9bcf3ed5adc35d2101b4fdb398a7924c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_rpdu_error_s</name>
+ <filename>structtsms__rpdu__error__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_RPDU_MESSAGE</name>
+ <anchorfile>structtsms__rpdu__error__s.html</anchorfile>
+ <anchor>ad34c3b1ed52661c3624730d0a77ac3e1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>cause</name>
+ <anchorfile>structtsms__rpdu__error__s.html</anchorfile>
+ <anchor>a4043e3447cb38a051b81832fd15d98e2</anchor>
+ <arglist>[3]</arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_buffer_t *</type>
+ <name>udata</name>
+ <anchorfile>structtsms__rpdu__error__s.html</anchorfile>
+ <anchor>a9bcf3ed5adc35d2101b4fdb398a7924c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_rpdu_message_s</name>
+ <filename>structtsms__rpdu__message__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSK_DECLARE_OBJECT</name>
+ <anchorfile>structtsms__rpdu__message__s.html</anchorfile>
+ <anchor>a6cb2c811d40d14ceb34bd3b2e7dc5e6a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_rpdu_type_t</type>
+ <name>mti</name>
+ <anchorfile>structtsms__rpdu__message__s.html</anchorfile>
+ <anchor>a621af770c025ef2c39f37c6682dd4c94</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>mr</name>
+ <anchorfile>structtsms__rpdu__message__s.html</anchorfile>
+ <anchor>ab9c147a8a545b6ffc9640b0ad4532d1c</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_rpdu_smma_s</name>
+ <filename>structtsms__rpdu__smma__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_RPDU_MESSAGE</name>
+ <anchorfile>structtsms__rpdu__smma__s.html</anchorfile>
+ <anchor>ad34c3b1ed52661c3624730d0a77ac3e1</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_tpdu_command_s</name>
+ <filename>structtsms__tpdu__command__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_TPDU_MESSAGE</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>a3e10964f384560d83a82cb4eb61f2226</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>smsc</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>a38e40692d827af97d4bcedb4dbbffab5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>udhi</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>a4bb414943b60bf3e2891e2e74f4ba6bd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>srr</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>a03bfe36a49496db5c02e536f55bdf8ef</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>mr</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>ab9c147a8a545b6ffc9640b0ad4532d1c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_tpdu_cmd_t</type>
+ <name>ct</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>a3b099cecc32eb10c444a0d323c29d67e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>mn</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>aa56680e8399c7c13b715d67ab6d083e7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>da</name>
+ <anchorfile>structtsms__tpdu__command__s.html</anchorfile>
+ <anchor>a880175daede78c0951a4504a186d0dcd</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_tpdu_deliver_s</name>
+ <filename>structtsms__tpdu__deliver__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_TPDU_MESSAGE</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>a3e10964f384560d83a82cb4eb61f2226</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>smsc</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>a38e40692d827af97d4bcedb4dbbffab5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>mms</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>ad9fabb1dca4bee43c9a920a254d9f26f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>lp</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>a6444e99fe8e0d97fe5453f7592ac515c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>rp</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>a1118d743a178dc0d92dd8a096b77524f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>udhi</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>a4bb414943b60bf3e2891e2e74f4ba6bd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>sri</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>a722252e68f2b52cf31f74ece5662a49f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>oa</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>aace8fb066adc91b9b611b8ca1f68d615</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>scts</name>
+ <anchorfile>structtsms__tpdu__deliver__s.html</anchorfile>
+ <anchor>ada219ad73e4dfbce10e3ff2f70464f59</anchor>
+ <arglist>[7]</arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_tpdu_message_s</name>
+ <filename>structtsms__tpdu__message__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSK_DECLARE_OBJECT</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a6cb2c811d40d14ceb34bd3b2e7dc5e6a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_bool_t</type>
+ <name>MobOrig</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a6e6aeef330a9a8dec2b2e35027ad65c6</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_tpdu_mti_t</type>
+ <name>mti</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a5343c332e8f0900254d58a3ff8111163</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>pid</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a108af4844b813f4ea332bab4e84aa87e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>dcs</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a3670021244908632f923d920b860e433</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>udl</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a17382327252db61e15f14aa7447f4631</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_buffer_t *</type>
+ <name>ud</name>
+ <anchorfile>structtsms__tpdu__message__s.html</anchorfile>
+ <anchor>a3db0d301634cbd0a517ab31fd2801bfd</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_tpdu_report_s</name>
+ <filename>structtsms__tpdu__report__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_TPDU_MESSAGE</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>a3e10964f384560d83a82cb4eb61f2226</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>smsc</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>a38e40692d827af97d4bcedb4dbbffab5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_bool_t</type>
+ <name>error</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>a6e79ee96ed2260a83b37ddffadd0a3bf</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>udhi</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>a4bb414943b60bf3e2891e2e74f4ba6bd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>fcs</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>a551cefcd48f2a929589e54d67f029107</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>pi</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>a1459382aaf3e683abc00c4d7d242425d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>scts</name>
+ <anchorfile>structtsms__tpdu__report__s.html</anchorfile>
+ <anchor>ada219ad73e4dfbce10e3ff2f70464f59</anchor>
+ <arglist>[7]</arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_tpdu_status_report_s</name>
+ <filename>structtsms__tpdu__status__report__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_TPDU_MESSAGE</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a3e10964f384560d83a82cb4eb61f2226</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>smsc</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a38e40692d827af97d4bcedb4dbbffab5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>udhi</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a4bb414943b60bf3e2891e2e74f4ba6bd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>mms</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>ad9fabb1dca4bee43c9a920a254d9f26f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>lp</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a6444e99fe8e0d97fe5453f7592ac515c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>srq</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a687595b129dd6852c930d410fb987b5c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>mr</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>ada5dc0a6758b35f32c0827370e8a9141</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>ra</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a71c646440dfbe9ed0d5277b1665f27a7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>scts</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>ada219ad73e4dfbce10e3ff2f70464f59</anchor>
+ <arglist>[7]</arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>dt</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a2827a99332f6e3d5eb6b00d2586f26d1</anchor>
+ <arglist>[7]</arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_tpdu_status_type_t</type>
+ <name>st</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a992dede7e7c799965fbb107a0873f83f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>pi</name>
+ <anchorfile>structtsms__tpdu__status__report__s.html</anchorfile>
+ <anchor>a1459382aaf3e683abc00c4d7d242425d</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>tsms_tpdu_submit_s</name>
+ <filename>structtsms__tpdu__submit__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSMS_DECLARE_TPDU_MESSAGE</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a3e10964f384560d83a82cb4eb61f2226</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>smsc</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a38e40692d827af97d4bcedb4dbbffab5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>rd</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a76f4ecb9ec6bab244793e2c729ccddca</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_tpdu_vpf_t</type>
+ <name>vpf</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>ab5a68e196359edf0c74fbedb99727113</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>rp</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a1118d743a178dc0d92dd8a096b77524f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>udhi</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a4bb414943b60bf3e2891e2e74f4ba6bd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>unsigned</type>
+ <name>srr</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a03bfe36a49496db5c02e536f55bdf8ef</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>mr</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>ab9c147a8a545b6ffc9640b0ad4532d1c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsms_address_t *</type>
+ <name>da</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a880175daede78c0951a4504a186d0dcd</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>uint8_t</type>
+ <name>vp</name>
+ <anchorfile>structtsms__tpdu__submit__s.html</anchorfile>
+ <anchor>a1771b7b4f4d81ba158d309419427647e</anchor>
+ <arglist>[7]</arglist>
+ </member>
+ </compound>
+</tagfile>
diff --git a/tinySMS/tinySMS.vcproj b/tinySMS/tinySMS.vcproj
new file mode 100644
index 0000000..6f6dd3b
--- /dev/null
+++ b/tinySMS/tinySMS.vcproj
@@ -0,0 +1,307 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="tinySMS"
+ ProjectGUID="{9A3A5AF3-2333-4477-B880-7F901F9D8972}"
+ RootNamespace="tinySMS"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="..\thirdparties\win32\include;include;..\tinySAK/src"
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TINYSMS_EXPORTS"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ WarnAsError="true"
+ DebugInformationFormat="4"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(OutDir)\tinySAK.lib"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="3"
+ EnableIntrinsicFunctions="true"
+ AdditionalIncludeDirectories="..\thirdparties\win32\include;include;..\tinySAK/src"
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TINYSMS_EXPORTS"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ WarnAsError="true"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(OutDir)\tinySAK.lib"
+ LinkIncremental="1"
+ GenerateDebugInformation="false"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="0"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="headers(*.h)"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\include\tinysms.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms_config.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tsms.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tsms_address.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tsms_common.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tsms_etsi_gsm_03_38.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tsms_packing.h"
+ >
+ </File>
+ <Filter
+ Name="tpdu"
+ >
+ <File
+ RelativePath=".\include\tinysms\tpdu\tsms_tpdu_command.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tpdu\tsms_tpdu_deliver.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tpdu\tsms_tpdu_report.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tpdu\tsms_tpdu_status_report.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinysms\tpdu\tsms_tpdu_submit.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="rpdu"
+ >
+ <File
+ RelativePath=".\include\tinysms\rpdu\tsms_rpdu.h"
+ >
+ </File>
+ </Filter>
+ </Filter>
+ <Filter
+ Name="source(*.c)"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ <File
+ RelativePath=".\src\tsms.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tsms_address.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tsms_common.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tsms_packing.c"
+ >
+ </File>
+ <Filter
+ Name="tpdu"
+ >
+ <File
+ RelativePath=".\src\tpdu\tsms_tpdu_command.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tpdu\tsms_tpdu_deliver.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tpdu\tsms_tpdu_report.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tpdu\tsms_tpdu_status_report.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\tpdu\tsms_tpdu_submit.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="rpdu"
+ >
+ <File
+ RelativePath=".\src\rpdu\tsms_rpdu.c"
+ >
+ </File>
+ </Filter>
+ </Filter>
+ <Filter
+ Name="resources(*.rc)"
+ >
+ <File
+ RelativePath=".\version.rc"
+ >
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/tinySMS/version.rc b/tinySMS/version.rc
new file mode 100644
index 0000000..186a4e0
--- /dev/null
+++ b/tinySMS/version.rc
@@ -0,0 +1,102 @@
+// Microsoft Visual C++ generated resource script.
+//
+// #include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 2.0.0.1156
+ PRODUCTVERSION 2.0.0.1156
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "CompanyName", "Doubango telecom"
+ VALUE "FileDescription", "Doubango IMS Framework"
+ VALUE "FileVersion", "2.0.0.1156"
+ VALUE "InternalName", "tinysms.dll"
+ VALUE "LegalCopyright", "(c) 2010-2013 Doubango Telecom. All rights reserved."
+ VALUE "OriginalFilename", "tinysms.dll"
+ VALUE "ProductName", "Doubango IMS Framework"
+ VALUE "ProductVersion", "2.0.0.1156"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/tinySMS/winrt/tinySMS.sln b/tinySMS/winrt/tinySMS.sln
new file mode 100644
index 0000000..0c70bd7
--- /dev/null
+++ b/tinySMS/winrt/tinySMS.sln
@@ -0,0 +1,39 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows Phone
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySMS", "tinySMS.vcxproj", "{65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}"
+ ProjectSection(ProjectDependencies) = postProject
+ {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySAK", "..\..\tinySAK\winrt\tinySAK.vcxproj", "{19279F5B-CDAF-4187-9F09-2A896A828B05}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|ARM = Debug|ARM
+ Debug|Win32 = Debug|Win32
+ Release|ARM = Release|ARM
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|ARM.ActiveCfg = Debug|ARM
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|ARM.Build.0 = Debug|ARM
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|Win32.ActiveCfg = Debug|Win32
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|Win32.Build.0 = Debug|Win32
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|ARM.ActiveCfg = Release|ARM
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|ARM.Build.0 = Release|ARM
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|Win32.ActiveCfg = Release|Win32
+ {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|Win32.Build.0 = Release|Win32
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|ARM.ActiveCfg = Debug|ARM
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|ARM.Build.0 = Debug|ARM
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|Win32.ActiveCfg = Debug|Win32
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|Win32.Build.0 = Debug|Win32
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|ARM.ActiveCfg = Release|ARM
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|ARM.Build.0 = Release|ARM
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|Win32.ActiveCfg = Release|Win32
+ {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/tinySMS/winrt/tinySMS.vcxproj b/tinySMS/winrt/tinySMS.vcxproj
new file mode 100644
index 0000000..e7e1fbf
--- /dev/null
+++ b/tinySMS/winrt/tinySMS.vcxproj
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|ARM">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM">
+ <Configuration>Release</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{65cdf0ff-3b84-45f3-9bb6-468c79b8e0bc}</ProjectGuid>
+ <RootNamespace>tinySMS</RootNamespace>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v110_wp80</PlatformToolset>
+ <IgnoreImportLibrary>false</IgnoreImportLibrary>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v110_wp80</PlatformToolset>
+ <IgnoreImportLibrary>false</IgnoreImportLibrary>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v110_wp80</PlatformToolset>
+ <IgnoreImportLibrary>false</IgnoreImportLibrary>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v110_wp80</PlatformToolset>
+ <IgnoreImportLibrary>false</IgnoreImportLibrary>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <OutDir>$(SolutionDir)$(Configuration)\$(MSBuildProjectName)\</OutDir>
+ <IntDir>$(Platform)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <OutDir>$(SolutionDir)$(Configuration)\$(MSBuildProjectName)\</OutDir>
+ <IntDir>$(Platform)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+ <OutDir>$(SolutionDir)$(Configuration)\$(MSBuildProjectName)\</OutDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+ <OutDir>$(SolutionDir)$(Configuration)\$(MSBuildProjectName)\</OutDir>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <PreprocessorDefinitions>_USRDLL;TINYSMS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <AdditionalIncludeDirectories>..\..\thirdparties\winrt\include;..\include;..\..\tinySAK/src</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>"$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <PreprocessorDefinitions>_USRDLL;TINYSMS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <AdditionalIncludeDirectories>..\..\thirdparties\winrt\include;..\include;..\..\tinySAK/src</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>"$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+ <ClCompile>
+ <PreprocessorDefinitions>_USRDLL;TINYSMS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <PrecompiledHeaderFile>
+ </PrecompiledHeaderFile>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <AdditionalIncludeDirectories>..\..\thirdparties\winrt\include;..\include;..\..\tinySAK/src</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>"$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+ <ClCompile>
+ <PreprocessorDefinitions>_USRDLL;TINYSMS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
+ <AdditionalIncludeDirectories>..\..\thirdparties\winrt\include;..\include;..\..\tinySAK/src</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>"$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";%(AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <Reference Include="Windows">
+ <IsWinMDFile>true</IsWinMDFile>
+ </Reference>
+ <Reference Include="platform.winmd">
+ <IsWinMDFile>true</IsWinMDFile>
+ <Private>false</Private>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="..\include\tinysms.h" />
+ <ClInclude Include="..\include\tinysms\rpdu\tsms_rpdu.h" />
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_command.h" />
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_deliver.h" />
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_report.h" />
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_status_report.h" />
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_submit.h" />
+ <ClInclude Include="..\include\tinysms\tsms.h" />
+ <ClInclude Include="..\include\tinysms\tsms_address.h" />
+ <ClInclude Include="..\include\tinysms\tsms_common.h" />
+ <ClInclude Include="..\include\tinysms\tsms_etsi_gsm_03_38.h" />
+ <ClInclude Include="..\include\tinysms\tsms_packing.h" />
+ <ClInclude Include="..\include\tinysms_config.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\src\rpdu\tsms_rpdu.c" />
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_command.c" />
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_deliver.c" />
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_report.c" />
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_status_report.c" />
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_submit.c" />
+ <ClCompile Include="..\src\tsms.c" />
+ <ClCompile Include="..\src\tsms_address.c" />
+ <ClCompile Include="..\src\tsms_common.c" />
+ <ClCompile Include="..\src\tsms_packing.c" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsPhone\v$(TargetPlatformVersion)\Microsoft.Cpp.WindowsPhone.$(TargetPlatformVersion).targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/tinySMS/winrt/tinySMS.vcxproj.filters b/tinySMS/winrt/tinySMS.vcxproj.filters
new file mode 100644
index 0000000..64e7708
--- /dev/null
+++ b/tinySMS/winrt/tinySMS.vcxproj.filters
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ <Filter Include="include">
+ <UniqueIdentifier>{5215a6e5-180a-4ff9-8578-a8f5a3a026da}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="src">
+ <UniqueIdentifier>{acc14f20-428c-4461-8098-c72dcb784449}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="include\tinysms">
+ <UniqueIdentifier>{73a0f76a-e417-4556-bb2c-62e99793a905}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="include\tinysms\rpdu">
+ <UniqueIdentifier>{ae0dc84b-3812-4a01-9904-dbae4eb1f7f8}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="include\tinysms\tpdu">
+ <UniqueIdentifier>{a1b2fbd8-d455-43c2-85c1-e125737cac05}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="src\rpdu">
+ <UniqueIdentifier>{6f4767dd-5fbf-4aae-83c7-621c3592c1cf}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="src\tpdu">
+ <UniqueIdentifier>{e70fa535-4e7d-4c46-bd91-ed76b9c0d140}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="..\include\tinysms.h">
+ <Filter>include</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms_config.h">
+ <Filter>include</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tsms.h">
+ <Filter>include\tinysms</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tsms_address.h">
+ <Filter>include\tinysms</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tsms_common.h">
+ <Filter>include\tinysms</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tsms_etsi_gsm_03_38.h">
+ <Filter>include\tinysms</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tsms_packing.h">
+ <Filter>include\tinysms</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\rpdu\tsms_rpdu.h">
+ <Filter>include\tinysms\tpdu</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_command.h">
+ <Filter>include\tinysms\rpdu</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_deliver.h">
+ <Filter>include\tinysms\rpdu</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_report.h">
+ <Filter>include\tinysms\rpdu</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_status_report.h">
+ <Filter>include\tinysms\rpdu</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\tinysms\tpdu\tsms_tpdu_submit.h">
+ <Filter>include\tinysms\rpdu</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\src\tsms.c">
+ <Filter>src</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tsms_address.c">
+ <Filter>src</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tsms_common.c">
+ <Filter>src</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tsms_packing.c">
+ <Filter>src</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_command.c">
+ <Filter>src\tpdu</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_deliver.c">
+ <Filter>src\tpdu</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_report.c">
+ <Filter>src\tpdu</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_status_report.c">
+ <Filter>src\tpdu</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\tpdu\tsms_tpdu_submit.c">
+ <Filter>src\tpdu</Filter>
+ </ClCompile>
+ <ClCompile Include="..\src\rpdu\tsms_rpdu.c">
+ <Filter>src\rpdu</Filter>
+ </ClCompile>
+ </ItemGroup>
+</Project> \ No newline at end of file
OpenPOWER on IntegriCloud