summaryrefslogtreecommitdiffstats
path: root/tinyXCAP
diff options
context:
space:
mode:
Diffstat (limited to 'tinyXCAP')
-rw-r--r--tinyXCAP/Doxyfile1560
-rw-r--r--tinyXCAP/droid-makefile33
-rw-r--r--tinyXCAP/footer.html7
-rw-r--r--tinyXCAP/header.html38
-rw-r--r--tinyXCAP/include/tinyxcap.h38
-rw-r--r--tinyXCAP/include/tinyxcap/txcap_action.h311
-rw-r--r--tinyXCAP/include/tinyxcap/txcap_auid.h159
-rw-r--r--tinyXCAP/include/tinyxcap/txcap_document.h43
-rw-r--r--tinyXCAP/include/tinyxcap/txcap_node.h100
-rw-r--r--tinyXCAP/include/tinyxcap/txcap_selector.h43
-rw-r--r--tinyXCAP/include/tinyxcap_config.h78
-rw-r--r--tinyXCAP/include/txcap.h245
-rw-r--r--tinyXCAP/installdox.sh1
-rw-r--r--tinyXCAP/src/txcap.c1079
-rw-r--r--tinyXCAP/src/txcap_action.c208
-rw-r--r--tinyXCAP/src/txcap_auid.c325
-rw-r--r--tinyXCAP/src/txcap_document.c137
-rw-r--r--tinyXCAP/src/txcap_node.c155
-rw-r--r--tinyXCAP/src/txcap_selector.c167
-rw-r--r--tinyXCAP/test/droid-makefile28
-rw-r--r--tinyXCAP/test/stdafx.c26
-rw-r--r--tinyXCAP/test/stdafx.h38
-rw-r--r--tinyXCAP/test/targetver.h18
-rw-r--r--tinyXCAP/test/test.c79
-rw-r--r--tinyXCAP/test/test.vcproj387
-rw-r--r--tinyXCAP/test/test_selector.h155
-rw-r--r--tinyXCAP/test/test_stack.h323
-rw-r--r--tinyXCAP/tinyXCAP.sln72
-rw-r--r--tinyXCAP/tinyXCAP.tag1482
-rw-r--r--tinyXCAP/tinyXCAP.vcproj248
30 files changed, 7583 insertions, 0 deletions
diff --git a/tinyXCAP/Doxyfile b/tinyXCAP/Doxyfile
new file mode 100644
index 0000000..d826c6b
--- /dev/null
+++ b/tinyXCAP/Doxyfile
@@ -0,0 +1,1560 @@
+# Doxyfile 1.6.1
+
+# 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 = tinyXCAP
+
+# 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 is your file systems
+# 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, C#, 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 make 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 to 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 rougly 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 namespace 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 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 define 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 defines 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
+
+# This WARN_NO_PARAMDOC option can be abled 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++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+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 =
+
+# 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 =
+
+# 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
+
+# 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 =
+
+# 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 [1..20])
+# that doxygen will group on one line in the generated HTML documentation.
+
+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
+
+# 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
+
+# When the SEARCHENGINE tag is enable 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) or Qt help (GENERATE_QHP)
+# there is already a search function so this one should typically
+# be disabled.
+
+SEARCHENGINE = 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.
+
+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, a4wide, 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 \
+ ../tinyHTTP/tinyHTTP.tag \
+ ../tinyNET/tinyNET.tag
+
+# 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 = tinyXCAP.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 is superseded by the HAVE_DOT option below. This is only a
+# fallback. 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
+
+# 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 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 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/tinyXCAP/droid-makefile b/tinyXCAP/droid-makefile
new file mode 100644
index 0000000..d983365
--- /dev/null
+++ b/tinyXCAP/droid-makefile
@@ -0,0 +1,33 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I../tinyNET/src -I../tinyHTTP/include -I./include
+LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH) -ltinyHTTP_$(MARCH)
+
+all: $(APP)
+
+OBJS = \
+ src/txcap.o\
+ src/txcap_auid.o\
+ src/txcap_document.o\
+ src/txcap_node.o\
+ src/txcap_selector.o\
+ src/txcap_action.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/tinyXCAP/footer.html b/tinyXCAP/footer.html
new file mode 100644
index 0000000..b4891eb
--- /dev/null
+++ b/tinyXCAP/footer.html
@@ -0,0 +1,7 @@
+<html>
+<head></head>
+<body>
+<hr>
+<b>doubango project - tinyXCAP 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/tinyXCAP/header.html b/tinyXCAP/header.html
new file mode 100644
index 0000000..cec0de9
--- /dev/null
+++ b/tinyXCAP/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 - tinyXCAP</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 LTE/IMS 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">
+ tinyXCAP</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/tinyXCAP/include/tinyxcap.h b/tinyXCAP/include/tinyxcap.h
new file mode 100644
index 0000000..5df320d
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap.h
@@ -0,0 +1,38 @@
+/*
+* Copyright (C) 2009-2010 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 tinyxcap.h
+ * @brief API functions.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "txcap.h"
+
+/* TINYHTTP */
+#include "tinyhttp.h"
+
+#include "tinyxcap/txcap_selector.h"
+#include "tinyxcap/txcap_document.h"
+#include "tinyxcap/txcap_node.h"
+#include "tinyxcap/txcap_action.h"
+
diff --git a/tinyXCAP/include/tinyxcap/txcap_action.h b/tinyXCAP/include/tinyxcap/txcap_action.h
new file mode 100644
index 0000000..0fc892f
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap/txcap_action.h
@@ -0,0 +1,311 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_action.h
+ * @brief XCAP actions.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#ifndef TINYXCAP_TXCAP_ACTION_H
+#define TINYXCAP_TXCAP_ACTION_H
+
+#include "tinyxcap_config.h"
+
+#include "txcap.h"
+
+#include "tinyhttp/thttp_action.h"
+
+TXCAP_BEGIN_DECLS
+
+#define TXCAP_MIME_TYPE_ELEMENT "application/xcap-el+xml" /**< as per rfc 4825 subclause 15.2.1 */
+#define TXCAP_MIME_TYPE_ATTRIBUTE "application/xcap-att+xml" /**< as per rfc 4825 subclause 15.2.2 */
+#define TXCAP_MIME_TYPE_NS "application/xcap-ns+xml" /**< as per rfc 4825 subclause 15.2.3 */
+#define TXCAP_MIME_TYPE_ERROR "application/xcap-error+xml" /**< as per rfc 4825 subclause 15.2.4 */
+
+/** List of all supported types.
+*/
+typedef enum txcap_action_type_e
+{
+ txcap_atp_create,
+ txcap_atp_replace,
+ txcap_atp_fetch,
+ txcap_atp_delete
+}
+txcap_action_type_t;
+
+/** List of all supported targets.
+*/
+typedef enum txcap_action_target_e
+{
+ txcap_atg_element,
+ txcap_atg_document,
+ txcap_atg_attribute
+}
+txcap_action_target_t;
+
+/** List of all supported options.
+* To pass an option to the sesion, use @ref TXCAP_ACTION_SET_OPTION() macro.
+*/
+typedef enum txcap_action_option_e
+{
+ TXCAP_ACTION_OPTION_TIMEOUT = THTTP_ACTION_OPTION_TIMEOUT,
+
+ //TXCAP_ACTION_OPTION_*** = 0xFF,
+ //TXCAP_ACTION_OPTION_****,
+}
+txcap_action_option_t;
+
+typedef enum txcap_action_param_type_e
+{
+ txcap_apt_null = 0,
+
+ txcap_apt_option,
+ txcap_apt_header,
+ txcap_apt_payload,
+ txcap_apt_selector,
+ txcap_apt_urlstring
+}
+txcap_action_param_type_t;
+
+/**@ingroup txcap_action_group
+* @def TXCAP_ACTION_SET_OPTION
+* Adds or updates an option.
+* This is a helper macro for @a txcap_action_*() functions.
+* @param ID_INT The id of the option to add/update (@ref txcap_action_option_t).
+* @param VALUE_STR The new value of the option (<i>const char*</i>).
+*
+* @code
+int ret = txcap_action_fetch_document(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*/
+/**@ingroup txcap_action_group
+* @def TXCAP_ACTION_SET_HEADER
+* Adds new XCAP headers to the request.
+* This is a helper macro for @a txcap_action_*() functions.
+* @param NAME_STR The name of the header (<i>const char*</i>).
+* @param VALUE_STR The value of the header (<i>const char*</i>). Should not contains the trailing CRLF.
+*
+* @code
+int ret = txcap_action_fetch_element(stack,
+ // action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* @sa @ref TXCAP_STACK_SET_HEADER
+*/
+/**@ingroup txcap_action_group
+* @def TXCAP_ACTION_SET_PAYLOAD
+* Adds a content (or payload) to the request. You should also add a content-type header by using
+* @ref TXCAP_ACTION_SET_HEADER() macro. You should not add the content-length header.
+* This is a helper macro for @a txcap_action_*() functions.
+* @param PAY_PTR A pointer to the payload (<i>const void*</i>).
+* @param PAY_SIZE The size of the payload (<i>size_t</i>).
+*
+* @code
+const char* PAYLOAD = "....";
+int ret = txcap_action_create_element(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD, strlen(PAYLOAD)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*/
+/**@ingroup txcap_action_group
+* @def TXCAP_ACTION_SET_SELECTOR
+* Helps building the XCAP Request-URI. You should use @ref TXCAP_ACTION_SET_REQUEST_URI if you want to provide
+* your own URI.
+* @param AUID_STR The AUID (<i>const char*</i>) to use. You should use @ref TXCAP_STACK_SET_AUID macro to register the the AUID
+* if it's missing. This parameter is mandatory.
+* @param ... Node selection steps. You must use @a TXCAP_SELECTOR_NODE_SET_*() macros to set these parameters.
+* MUST always ends with @ref TXCAP_SELECTOR_NODE_SET_NULL.
+*
+* @code
+int ret = txcap_action_fetch_attribute(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS("entry", 1),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* @sa @ref TXCAP_ACTION_SET_REQUEST_URI
+*/
+/**@ingroup txcap_action_group
+* @def TXCAP_ACTION_SET_REQUEST_URI
+* Sets the request URI. This macro is useful if you want to provide your own request URI instead of using @ref TXCAP_ACTION_SET_SELECTOR.
+* @param URI_STR Fully Qualified HTTP/HTTPS URI.
+*
+* @code
+const char* PAYLOAD = "....";
+int ret = txcap_action_create_element(stack,
+ // custom Request URI
+ TXCAP_ACTION_SET_REQUEST_URI("http://doubango.org:8080/services/mycustom/uri"),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD, strlen(PAYLOAD)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+ getchar();
+* @endcode
+*
+* @sa @ref TXCAP_ACTION_SET_SELECTOR
+*/
+/**@ingroup txcap_action_group
+* @def TXCAP_ACTION_SET_NULL
+* Ends action parameters. Must always be the last one.
+*/
+#define TXCAP_ACTION_SET_OPTION(ID_INT, VALUE_STR) txcap_apt_option, (thttp_action_option_t)ID_INT, (const char*)VALUE_STR
+#define TXCAP_ACTION_SET_HEADER(NAME_STR, VALUE_STR) txcap_apt_header, (const char*)NAME_STR, (const char*)VALUE_STR
+#define TXCAP_ACTION_UNSET_HEADER(NAME_STR) TXCAP_ACTION_SET_HEADER(NAME_STR, (const char*)-1)
+#define TXCAP_ACTION_SET_PAYLOAD(PAY_PTR, PAY_SIZE) txcap_apt_payload, (const void*)PAY_PTR, (size_t)PAY_SIZE
+#define TXCAP_ACTION_SET_SELECTOR(AUID_STR, ...) txcap_apt_selector, (const char*)AUID_STR, ##__VA_ARGS__
+#define TXCAP_ACTION_SET_REQUEST_URI(URI_STR) txcap_apt_urlstring, (const char*)URI_STR
+#define TXCAP_ACTION_SET_NULL() txcap_apt_null
+
+
+/**@ingroup txcap_action_group
+* @def txcap_action_create_element
+* Creates new element by sending a <i>HTTP/HTTPS PUT</i> request.
+* The default Content-Type will be "application/xcap-el+xml", unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_create_document
+* Creates new document by sending a <i>HTTP/HTTPS PUT</i> request.
+* The default Content-Type will be the one associated with the AUID of the document, unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_create_attribute
+* Creates new attribute by sending a <i>HTTP/HTTPS PUT</i> request.
+* The default Content-Type will be "application/xcap-att+xml", unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_replace_element
+* Replaces an element by sending a <i>HTTP/HTTPS PUT</i> request.
+* The default Content-Type will be "application/xcap-el+xml", unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_replace_document
+* Replaces a document by sending a <i>HTTP/HTTPS PUT</i> request.
+* The default Content-Type will be the one associated with the AUID of the document, unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_replace_attribute
+* Replaces an attribute by sending a <i>HTTP/HTTPS PUT</i> request.
+* The default Content-Type will be "application/xcap-att+xml", unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_fetch_element
+* Retrieves an element from the XDMS by sending a <i>HTTP/HTTPS GET</i> request.
+* The default Content-Type will be "application/xcap-el+xml", unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_fetch_document
+* Retrieves a document from the XDMS sending a <i>HTTP/HTTPS GET</i> request.
+* The default Content-Type will be the one associated with the AUID of the document, unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_fetch_attribute
+* Retrieves an attribute from the XDMS by sending a <i>HTTP/HTTPS GET</i> request.
+* The default Content-Type will be "application/xcap-att+xml", unless you provide your own Content-Type by using @ref TXCAP_ACTION_SET_HEADER().
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_delete_element
+* Deletes an element from the XDMS by sending a <i>HTTP/HTTPS DELETE</i> request.
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_delete_document
+* Deletes a document from the XDMS sending a <i>HTTP/HTTPS DELETE</i> request.
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+/**@ingroup txcap_action_group
+* @def txcap_action_delete_attribute
+* Deletes an attribute from the XDMS by sending a <i>HTTP/HTTPS DELETE</i> request.
+* @param stack The HTTP/HTTPS stack created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_ACTION_SET_*() macros. MUST ends with @ref TXCAP_ACTION_SET_NULL().
+*/
+TINYXCAP_API int txcap_action_perform(txcap_stack_handle_t* stack, txcap_action_type_t type, txcap_action_target_t target, ...);
+#define txcap_action_create_element(stack, ...) txcap_action_perform(stack, txcap_atp_create, txcap_atg_element, __VA_ARGS__)
+#define txcap_action_create_document(stack, ...) txcap_action_perform(stack, txcap_atp_create, txcap_atg_document, __VA_ARGS__)
+#define txcap_action_create_attribute(stack, ...) txcap_action_perform(stack, txcap_atp_create, txcap_atg_attribute, __VA_ARGS__)
+#define txcap_action_replace_element(stack, ...) txcap_action_perform(stack, txcap_atp_replace, txcap_atg_element, __VA_ARGS__)
+#define txcap_action_replace_document(stack, ...) txcap_action_perform(stack, txcap_atp_replace, txcap_atg_document, __VA_ARGS__)
+#define txcap_action_replace_attribute(stack, ...) txcap_action_perform(stack, txcap_atp_replace, txcap_atg_attribute, __VA_ARGS__)
+#define txcap_action_fetch_element(stack, ...) txcap_action_perform(stack, txcap_atp_fetch, txcap_atg_element, __VA_ARGS__)
+#define txcap_action_fetch_document(stack, ...) txcap_action_perform(stack, txcap_atp_fetch, txcap_atg_document, __VA_ARGS__)
+#define txcap_action_fetch_attribute(stack, ...) txcap_action_perform(stack, txcap_atp_fetch, txcap_atg_attribute, __VA_ARGS__)
+#define txcap_action_delete_element(stack, ...) txcap_action_perform(stack, txcap_atp_delete, txcap_atg_element, __VA_ARGS__)
+#define txcap_action_delete_document(stack, ...) txcap_action_perform(stack, txcap_atp_delete, txcap_atg_document, __VA_ARGS__)
+#define txcap_action_delete_attribute(stack, ...) txcap_action_perform(stack, txcap_atp_delete, txcap_atg_attribute, __VA_ARGS__)
+
+TXCAP_END_DECLS
+
+#endif /* TINYXCAP_TXCAP_ACTION_H */
diff --git a/tinyXCAP/include/tinyxcap/txcap_auid.h b/tinyXCAP/include/tinyxcap/txcap_auid.h
new file mode 100644
index 0000000..735a5a9
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap/txcap_auid.h
@@ -0,0 +1,159 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_auid.h
+ * @brief XCAP AUID manager.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#ifndef TINYXCAP_TXCAP_AUID_H
+#define TINYXCAP_TXCAP_AUID_H
+
+#include "tinyxcap_config.h"
+
+#include "tsk_list.h"
+
+TXCAP_BEGIN_DECLS
+
+/*== xcap-caps ==*/
+#define TXCAP_AUID_IETF_XCAP_CAPS_ID "xcap-caps"
+#define TXCAP_AUID_IETF_XCAP_CAPS_MIME_TYPE "application/xcap-caps+xml"
+#define TXCAP_AUID_IETF_XCAP_CAPS_NS "urn:ietf:params:xml:ns:xcap-caps"
+#define TXCAP_AUID_IETF_XCAP_CAPS_DOC "index"
+
+/*== resource-lists ==*/
+#define TXCAP_AUID_IETF_RESOURCE_LISTS_ID "resource-lists"
+#define TXCAP_AUID_IETF_RESOURCE_LISTS_MIME_TYPE "application/resource-lists+xml"
+#define TXCAP_AUID_IETF_RESOURCE_LISTS_NS "urn:ietf:params:xml:ns:resource-lists"
+#define TXCAP_AUID_IETF_RESOURCE_LISTS_DOC "index"
+
+/*== rls-services ==*/
+#define TXCAP_AUID_IETF_RLS_SERVICES_ID "rls-services"
+#define TXCAP_AUID_IETF_RLS_SERVICES_MIME_TYPE "application/rls-services+xml"
+#define TXCAP_AUID_IETF_RLS_SERVICES_NS "urn:ietf:params:xml:ns:resource-lists"
+#define TXCAP_AUID_IETF_RLS_SERVICES_DOC "index"
+
+/*== pres-rules ==*/
+#define TXCAP_AUID_IETF_PRES_RULES_ID "pres-rules"
+#define TXCAP_AUID_IETF_PRES_RULES_MIME_TYPE "application/auth-policy+xml"
+#define TXCAP_AUID_IETF_PRES_RULES_NS "urn:ietf:params:xml:ns:pres-rules"
+#define TXCAP_AUID_IETF_PRES_RULES_DOC "index"
+
+/*== pidf-manipulation ==*/
+#define TXCAP_AUID_IETF_PIDF_MANIPULATION_ID "pidf-manipulation"
+#define TXCAP_AUID_IETF_PIDF_MANIPULATION_MIME_TYPE "application/pidf+xml"
+#define TXCAP_AUID_IETF_PIDF_MANIPULATION_NS "urn:ietf:params:xml:ns:pidf"
+#define TXCAP_AUID_IETF_PIDF_MANIPULATION_DOC "index"
+
+/*== org.openmobilealliance.pres-rules ==*/
+#define TXCAP_AUID_OMA_PRES_RULES_ID "org.openmobilealliance.pres-rules"
+#define TXCAP_AUID_OMA_PRES_RULES_MIME_TYPE "application/auth-policy+xml"
+#define TXCAP_AUID_OMA_PRES_RULES_NS "urn:ietf:params:xml:ns:common-policy"
+#define TXCAP_AUID_OMA_PRES_RULES_DOC "pres-rules"
+
+/*== directory ==*/
+#define TXCAP_AUID_IETF_DIRECTORY_ID "directory"
+#define TXCAP_AUID_IETF_DIRECTORY_MIME_TYPE "application/directory+xml"
+#define TXCAP_AUID_IETF_DIRECTORY_NS "urn:ietf:params:xml:ns:xcap-directory"
+#define TXCAP_AUID_IETF_DIRECTORY_DOC "directory.xml"
+
+/*== org.openmobilealliance.xcap-directory ==*/
+#define TXCAP_AUID_OMA_DIRECTORY_ID "org.openmobilealliance.xcap-directory"
+#define TXCAP_AUID_OMA_DIRECTORY_MIME_TYPE "application/vnd.oma.xcap-directory+xml"
+#define TXCAP_AUID_OMA_DIRECTORY_NS "urn:oma:xml:xdm:xcap-directory"
+#define TXCAP_AUID_OMA_DIRECTORY_DOC "directory.xml"
+
+/*== org.openmobilealliance.pres-content ==*/
+#define TXCAP_AUID_OMA_PRES_CONTENT_ID "org.openmobilealliance.pres-content"
+#define TXCAP_AUID_OMA_PRES_CONTENT_MIME_TYPE "application/vnd.oma.pres-content+xml"
+#define TXCAP_AUID_OMA_PRES_CONTENT_NS "urn:oma:xml:prs:pres-content"
+#define TXCAP_AUID_OMA_PRES_CONTENT_DOC "oma_status-icon/rcs_status_icon"
+
+/*== org.openmobilealliance.conv-history ==*/
+#define TXCAP_AUID_OMA_CONV_HISTORY_ID "org.openmobilealliance.conv-history"
+#define TXCAP_AUID_OMA_CONV_HISTORY_MIME_TYPE "application/vnd.oma.im.history-list+xml"
+#define TXCAP_AUID_OMA_CONV_HISTORY_NS "urn:oma:xml:im:history-list"
+#define TXCAP_AUID_OMA_CONV_HISTORY_DOC "conv-history"
+
+/*== org.openmobilealliance.deferred-list ==*/
+#define TXCAP_AUID_OMA_DEFERRED_LIST_ID "org.openmobilealliance.deferred-list"
+#define TXCAP_AUID_OMA_DEFERRED_LIST_MIME_TYPE "application/vnd.oma.im.deferred-list+xml"
+#define TXCAP_AUID_OMA_DEFERRED_LIST_NS "urn:oma:xml:im:history-list"
+#define TXCAP_AUID_OMA_DEFERRED_LIST_DOC "deferred-list"
+
+/*== org.openmobilealliance.group-usage-list ==*/
+#define TXCAP_AUID_OMA_SHARED_GROUPS_ID "org.openmobilealliance.group-usage-list"
+#define TXCAP_AUID_OMA_SHARED_GROUPS_MIME_TYPE "application/vnd.oma.group-usage-list+xml"
+#define TXCAP_AUID_OMA_SHARED_GROUPS_NS "urn:ietf:params:xml:ns:resource-lists"
+#define TXCAP_AUID_OMA_SHARED_GROUPS_DOC "index"
+
+
+/** List of supported AUIDs.
+*/
+typedef enum txcap_auid_type_e
+{
+ tauid_dummy, /**< any auid */
+
+ tauid_ietf_xcap_caps, /**< xcap-caps */
+ tauid_ietf_resource_lists, /**< resource-lists */
+ tauid_ietf_rls_services, /**< rls-services */
+ tauid_ietf_pres_rules, /**< pres-rules */
+ tauid_ietf_directory, /**< directory */
+
+ tauid_oma_conv_history, /**< org.openmobilealliance.conv-history */
+ tauid_oma_pres_rules, /**< org.openmobilealliance.pres-rules */
+ tauid_oma_directory, /**< org.openmobilealliance.xcap-directory */
+ tauid_oma_deferred_list, /**< org.openmobilealliance.deferred-list */
+ tauid_oma_pres_content, /**< org.openmobilealliance.pres-content*/
+ tauid_oma_shared_groups /**< org.openmobilealliance.group-usage-list */
+}
+txcap_auid_type_t;
+
+/** XCAP AUID.
+*/
+typedef struct txcap_auid_s
+{
+ TSK_DECLARE_OBJECT;
+
+ txcap_auid_type_t type;
+ char* id; /**< The id of the AUID (e.g. 'xcap-caps' or 'rls-services' or 'resource-lists' or ...)*/
+ char* mime_type; /**< The default MIME-type of the document associated to this auid. */
+ char* ns; /**< The namespace associated to this auid. */
+ char* document_name; /**< The default name of the document associated to this auid. */
+ tsk_bool_t global; /**< Indicates the auid scope. */
+}
+txcap_auid_t;
+
+typedef tsk_list_t txcap_auids_L_t;
+
+TINYXCAP_API int txcap_auid_register(txcap_auids_L_t* auids, const char* id, const char* mime_type, const char* ns, const char* document_name, tsk_bool_t is_global);
+txcap_auid_t* txcap_auid_get_by_id(txcap_auids_L_t* auids, const char* id);
+int txcap_auids_init(txcap_auids_L_t** auids);
+
+
+TINYXCAP_GEXTERN const tsk_object_def_t *txcap_auid_def_t;
+
+TXCAP_END_DECLS
+
+#endif // TINYXCAP_TXCAP_AUID_H
+
diff --git a/tinyXCAP/include/tinyxcap/txcap_document.h b/tinyXCAP/include/tinyxcap/txcap_document.h
new file mode 100644
index 0000000..88fe2b0
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap/txcap_document.h
@@ -0,0 +1,43 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_document.h
+ * @brief XCAP documents.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#ifndef TINYXCAP_TXCAP_DOCUMENT_H
+#define TINYXCAP_TXCAP_DOCUMENT_H
+
+#include "tinyxcap_config.h"
+
+#include "txcap.h"
+
+TXCAP_BEGIN_DECLS
+
+TINYXCAP_API char* txcap_selector_get_document(const txcap_stack_handle_t* stack, const char* auid_id);
+TINYXCAP_API char* txcap_selector_get_document_2(const char* xcap_root, const char* auid_id, const char* xui, const char* doc_name);
+
+TXCAP_END_DECLS
+
+#endif /* TINYXCAP_TXCAP_DOCUMENT_H */
diff --git a/tinyXCAP/include/tinyxcap/txcap_node.h b/tinyXCAP/include/tinyxcap/txcap_node.h
new file mode 100644
index 0000000..e1e8603
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap/txcap_node.h
@@ -0,0 +1,100 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_node.h
+ * @brief XCAP nodes.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#ifndef TINYXCAP_TXCAP_NODE_H
+#define TINYXCAP_TXCAP_NODE_H
+
+#include "tinyxcap_config.h"
+
+#include "tsk_common.h"
+
+#include <stdarg.h> /* va_list* */
+
+TXCAP_BEGIN_DECLS
+
+typedef enum txcap_selector_param_type_e
+{
+ xcapp_node_null = 0,
+
+ xcapp_node_name,
+ xcapp_node_pos,
+ xcapp_node_attribute,
+ xcapp_node_pos_n_attribute,
+ xcapp_node_namespace
+}
+txcap_selector_param_type_t;
+
+/**@ingroup txcap_selector_group
+* @def TXCAP_SELECTOR_NODE_SET_NAME
+* Node selection step. Selects by name as per <a href="http://tools.ietf.org/html/rfc4825#section-6.3">RFC 4825 subclause 6.3</a>.
+* @param QNAME_STR The name of the node to select. The @a QName grammar is defined in the XML namespaces [<a href="http://tools.ietf.org/html/rfc4825#ref-3">3</a>] specification (<i>const char*</i>).
+*/
+/**@ingroup txcap_selector_group
+* @def TXCAP_SELECTOR_NODE_SET_POS
+* Node selection step. Selects by position as per <a href="http://tools.ietf.org/html/rfc4825#section-6.3">RFC 4825 subclause 6.3</a>.
+* @param QNAME_STR The name of the node to select. The @a QName grammar is defined in the XML namespaces [<a href="http://tools.ietf.org/html/rfc4825#ref-3">3</a>] specification.
+* @param POS_UINT The position of the node to select (1*DIGIT) (<i>unsigned int</i>).
+*/
+/**@ingroup txcap_selector_group
+* @def TXCAP_SELECTOR_NODE_SET_ATTRIBUTE
+* Node selection step. Selects by position and attribute as per <a href="http://tools.ietf.org/html/rfc4825#section-6.3">RFC 4825 subclause 6.3</a>.
+* @param QNAME_STR The name of the node to select. The @a QName grammar is defined in the XML namespaces [<a href="http://tools.ietf.org/html/rfc4825#ref-3">3</a>] specification (<i>const char*</i>).
+* @param ATT_QNAME_STR The name of the attribute (<i>const char*</i>).
+* @param ATT_VALUE_STR The value of the attribute. @a AttValue grammar is defined in the XML specification XML 1.0 [<a href="http://tools.ietf.org/html/rfc4825#ref-1">1</a>] (<i>const char*</i>).
+*/
+/**@ingroup txcap_selector_group
+* @def TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE
+* Node selection step. Selects by position and attribute as per <a href="http://tools.ietf.org/html/rfc4825#section-6.3">RFC 4825 subclause 6.3</a>.
+* @param QNAME_STR The name of the node to select. The @a QName grammar is defined in the XML namespaces [<a href="http://tools.ietf.org/html/rfc4825#ref-3">3</a>] specification.
+* @param POS_UINT The position of the node to select (1*DIGIT) (<i>unsigned int</i>).
+* @param ATT_QNAME_STR The name of the attribute (<i>const char*</i>).
+* @param ATT_VALUE_STR The value of the attribute. @a AttValue grammar is defined in the XML specification XML 1.0 [<a href="http://tools.ietf.org/html/rfc4825#ref-1">1</a>] (<i>const char*</i>).
+*/
+/**@ingroup txcap_selector_group
+* @def TXCAP_SELECTOR_NODE_SET_NAMESPACE
+* Node selection step. Appends XML namespace("namespace::*") as per <a href="http://tools.ietf.org/html/rfc4825#section-6.3">RFC 4825 subclause 6.3</a>.
+* @param PREFIX_STR The prefix to use for this namespace (<i>const char*</i>).
+* @param VALUE_STR The value of the namespace (<i>const char*</i>).
+*/
+/**@ingroup txcap_selector_group
+* @def TXCAP_SELECTOR_NODE_SET_NULL
+* Ends node selection steps. Must always be present and should be the last one.
+*/
+#define TXCAP_SELECTOR_NODE_SET_NAME(QNAME_STR) xcapp_node_name, (const char*)QNAME_STR
+#define TXCAP_SELECTOR_NODE_SET_POS(QNAME_STR, POS_UINT) xcapp_node_pos, (const char*)QNAME_STR, (unsigned int)POS_UINT
+#define TXCAP_SELECTOR_NODE_SET_ATTRIBUTE(QNAME_STR, ATT_QNAME_STR, ATT_VALUE_STR) xcapp_node_attribute, (const char*)QNAME_STR, (const char*)ATT_QNAME_STR, (const char*)ATT_VALUE_STR
+#define TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE(QNAME_STR, POS_UINT, ATT_QNAME_STR, ATT_VALUE_STR) xcapp_node_pos_n_attribute, (const char*)QNAME_STR, (unsigned int)POS_UINT, (const char*)ATT_QNAME_STR, (const char*)ATT_VALUE_STR
+#define TXCAP_SELECTOR_NODE_SET_NAMESPACE(PREFIX_STR, VALUE_STR) xcapp_node_namespace, (const char*)PREFIX_STR, (const char*)VALUE_STR
+#define TXCAP_SELECTOR_NODE_SET_NULL() xcapp_node_null
+
+TINYXCAP_API char* txcap_selector_get_node(const char* auid_id, ...);
+TINYXCAP_API char* txcap_selector_get_node_2(const char* auid_id, va_list* app);
+
+TXCAP_END_DECLS
+
+#endif /* TINYXCAP_TXCAP_NODE_H */
diff --git a/tinyXCAP/include/tinyxcap/txcap_selector.h b/tinyXCAP/include/tinyxcap/txcap_selector.h
new file mode 100644
index 0000000..e10bd4b
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap/txcap_selector.h
@@ -0,0 +1,43 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_selector.h
+ * @brief XCAP selector.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#ifndef TINYXCAP_TXCAP_SELECTOR_H
+#define TINYXCAP_TXCAP_SELECTOR_H
+
+#include "tinyxcap_config.h"
+
+#include "txcap.h"
+
+TXCAP_BEGIN_DECLS
+
+TINYXCAP_API char* txcap_selector_get_url(const txcap_stack_handle_t* stack, const char* auid_id, ...);
+TINYXCAP_API char* txcap_selector_get_url_2(const char* xcap_root, const char* auid_id, const char* xui, const char* doc_name, ...);
+
+TXCAP_END_DECLS
+
+#endif /* TINYXCAP_TXCAP_SELECTOR_H */
diff --git a/tinyXCAP/include/tinyxcap_config.h b/tinyXCAP/include/tinyxcap_config.h
new file mode 100644
index 0000000..5e29b21
--- /dev/null
+++ b/tinyXCAP/include/tinyxcap_config.h
@@ -0,0 +1,78 @@
+/*
+* Copyright (C) 2009-2010 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 TINYXCAP_CONFIG_H
+#define TINYXCAP_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 TXCAP_UNDER_WINDOWS 1
+#endif
+
+#if (TXCAP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && defined(TINYXCAP_EXPORTS)
+# define TINYXCAP_API __declspec(dllexport)
+# define TINYXCAP_GEXTERN __declspec(dllexport)
+#elif (TXCAP_UNDER_WINDOWS || defined(__SYMBIAN32__)) /*&& defined(TINYXCAP_IMPORTS)*/
+# define TINYXCAP_API __declspec(dllimport)
+# define TINYXCAP_GEXTERN __declspec(dllimport)
+#else
+# define TINYXCAP_API
+# define TINYXCAP_GEXTERN extern
+#endif
+
+/* Guards against C++ name mangling
+*/
+#ifdef __cplusplus
+# define TXCAP_BEGIN_DECLS extern "C" {
+# define TXCAP_END_DECLS }
+#else
+# define TXCAP_BEGIN_DECLS
+# define TXCAP_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 // TINYXCAP_CONFIG_H
diff --git a/tinyXCAP/include/txcap.h b/tinyXCAP/include/txcap.h
new file mode 100644
index 0000000..8d6d503
--- /dev/null
+++ b/tinyXCAP/include/txcap.h
@@ -0,0 +1,245 @@
+/*
+* Copyright (C) 2009-2010 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 txcap.h
+ * @brief RFC 4825 (XCAP) implementation.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#ifndef TINYXCAP_TXCAP_H
+#define TINYXCAP_TXCAP_H
+
+#include "tinyxcap_config.h"
+
+#include "tinyxcap/txcap_auid.h"
+
+#include "tsk_options.h"
+
+#include "tinyhttp.h"
+
+TXCAP_BEGIN_DECLS
+
+typedef enum txcap_stack_option_e
+{
+ //! request timeout
+ TXCAP_STACK_OPTION_TIMEOUT,
+ //! time to live
+ TXCAP_STACK_OPTION_TTL,
+
+ //! xcap-root
+ TXCAP_STACK_OPTION_ROOT,
+ //! user's password
+ TXCAP_STACK_OPTION_PASSWORD,
+ //! xcap user indentifier (e.g. sip:bob@example.com)
+ TXCAP_STACK_OPTION_XUI,
+ //! local ip address
+ TXCAP_STACK_OPTION_LOCAL_IP,
+ //! local port
+ TXCAP_STACK_OPTION_LOCAL_PORT,
+}
+txcap_stack_option_t;
+
+typedef enum txcap_stack_param_type_e
+{
+ xcapp_null = 0,
+
+ xcapp_option,
+ xcapp_header,
+ xcapp_userdata,
+ xcapp_auid,
+}
+txcap_stack_param_type_t;
+
+/* For systems that support SIP applications, it is
+ RECOMMENDED that the XUI be equal to the Address-of-Record (AOR) for
+ the user (i.e., sip:joe@example.com) */
+
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_OPTION
+* Adds or updates an option.
+* This is a helper macro for @ref txcap_stack_create() and @ref txcap_stack_set().
+* @param ID_ENUM The id of the option to add/update (@ref txcap_stack_option_t).
+* @param VALUE_STR The new value of the option (<i>const char*</i>).
+*
+* @code
+int ret = txcap_stack_set(stack,
+ // stack-level options
+ TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_TIMEOUT, "6000"),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_PASSWORD
+* Sets or updates the user's password.
+* @param PASSWORD_STR The new password (<i>const char*</i>).
+*
+* @code
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_SET_PASSWORD("mysecret"),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref TXCAP_STACK_OPTION_PASSWORD
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_ROOT
+* Sets or updates the xcap-root Url.
+* @param XCAP_ROOT_STR A valid Http Url(<i>const char*</i>).
+*
+* @code
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_SET_ROOT("http://192.168.0.10:8080/services"),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref TXCAP_STACK_OPTION_ROOT
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_XUI
+* Sets or updates the user's identifier.
+* @param XUI_STR The new identifier (<i>const char*</i>).For systems that support SIP applications, it is
+* RECOMMENDED that the XUI be equal to the Address-of-Record (AOR) for the user (i.e., sip:bob@example.com).
+*
+* @code
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_SET_XUI("sip:bob@example.com"),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref TXCAP_STACK_OPTION_PASSWORD
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_LOCAL_IP
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_LOCAL_PORT
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_HEADER
+* Adds new stack-level HTTP header. This header will be added to all outgoing requests.
+* If you want that the header only appear in the current outgoing request, then you should use
+* @ref TXCAP_ACTION_SET_HEADER().
+* @param NAME_STR The name of the header.
+* @param VALUE_STR The value of the header. Will be added "as is".
+*
+* @code
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_SET_HEADER("User-Agent", "XDM-client/OMA1.1"),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref TXCAP_ACTION_SET_HEADER(), @ref TXCAP_STACK_UNSET_HEADER()
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_UNSET_HEADER
+* Removes a stack-level HTTP header.
+* @param NAME_STR The name of the header.
+*
+* @code
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_UNSET_HEADER("User-Agent"),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref TXCAP_ACTION_UNSET_HEADER(), @ref TXCAP_ACTION_SET_HEADER()
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_CONTEXT
+* Sets or updates the user's context. The context will be returned to the application layer
+* throught the callback function.
+* @param CTX_PTR A pointer to the context (<i>const void*</i>).
+*
+* @code
+const struct application_s context;
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_SET_CONTEXT(&context),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_AUID
+* Register or update an AUID.
+* @param ID_STR The identifier associated to this aplication usage (e.g. "xcap-caps").
+* @param MIME_TYPE_STR The mime-type (e.g. "application/xcap-caps+xml").
+* @param NS_STR The namespace (e.g. "urn:ietf:params:xml:ns:xcap-caps").
+* @param DOC_NAME_STR The document name (e.g. "index").
+* @param IS_GLOBAL_BOOL The scope (@a tsk_true or @a tsk_false).
+*
+* @code
+// the code below shows how to register two new AUIDs
+int ret = txcap_stack_set(stack,
+ TXCAP_STACK_SET_AUID("my-xcap-caps", "application/my-xcap-caps+xml", "urn:ietf:params:xml:ns:my-xcap-caps", "my-document", tsk_true),
+ TXCAP_STACK_SET_AUID("my-resource-lists", "application/my-resource-lists+xml", "urn:ietf:params:xml:ns:my-resource-lists", "my-document", tsk_false),
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*/
+/**@ingroup txcap_stack_group
+* @def TXCAP_STACK_SET_NULL
+* Ends the stack parameters. Mandatory and should be the last one.
+*/
+
+#define TXCAP_STACK_SET_OPTION(ID_ENUM, VALUE_STR) xcapp_option, (txcap_stack_option_t)ID_ENUM, (const char*)VALUE_STR
+#define TXCAP_STACK_SET_TIMEOUT(TIMEOUT_STR) TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_TIMEOUT, TIMEOUT_STR)
+#define TXCAP_STACK_SET_ROOT(XCAP_ROOT_STR) TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_ROOT, XCAP_ROOT_STR)
+#define TXCAP_STACK_SET_PASSWORD(PASSWORD_STR) TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_PASSWORD, PASSWORD_STR)
+#define TXCAP_STACK_SET_XUI(XUI_STR) TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_XUI, XUI_STR)
+#define TXCAP_STACK_SET_LOCAL_IP(IP_STR) TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_LOCAL_IP, IP_STR)
+#define TXCAP_STACK_SET_LOCAL_PORT(PORT_STR) TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_LOCAL_PORT, PORT_STR)
+#define TXCAP_STACK_SET_HEADER(NAME_STR, VALUE_STR) xcapp_header, (const char*)NAME_STR, (const char*)VALUE_STR
+#define TXCAP_STACK_UNSET_HEADER(NAME_STR) TXCAP_STACK_SET_HEADER(NAME_STR, (const char*)-1)
+#define TXCAP_STACK_SET_USERDATA(CTX_PTR) xcapp_userdata, (const void*)CTX_PTR
+#define TXCAP_STACK_SET_AUID(ID_STR, MIME_TYPE_STR, NS_STR, DOC_NAME_STR, IS_GLOBAL_BOOL) xcapp_auid, (const char*)ID_STR, (const char*)MIME_TYPE_STR, (const char*)NS_STR, (const char*)DOC_NAME_STR, (tsk_bool_t)IS_GLOBAL_BOOL
+
+#define TXCAP_STACK_SET_NULL() xcapp_null
+
+
+typedef struct txcap_stack_s
+{
+ TSK_DECLARE_OBJECT;
+
+ char* xui; /**< user's name as per RFC 4825 subclause 4.Also used to fill @b "X-3GPP-Intended-Identity" header.*/
+ char* password; /**< user's password used to authenticate to the XDMS . */
+ char* xcap_root; /**< xcap-root URI as per RFC 4825 subclause 6.1. MUST be a valid HTPP/HTTPS URL and will be used to build all request-uris. */
+
+ thttp_session_handle_t* http_session;
+ thttp_stack_handle_t* http_stack; /**< http/https stack */
+
+ tsk_options_L_t *options; /**< list of user options */
+ const void* context; /**< user's context */
+ txcap_auids_L_t* auids; /**< user's auids */
+
+ TSK_DECLARE_SAFEOBJ;
+}
+txcap_stack_t;
+typedef void txcap_stack_handle_t;/**< Pointer to a XCAP stack. Should be created using @ref txcap_stack_create().*/
+
+TINYXCAP_API txcap_stack_handle_t* txcap_stack_create(thttp_stack_callback_f callback, const char* xui, const char* password, const char* xcap_root, ...);
+TINYXCAP_API int txcap_stack_start(txcap_stack_handle_t* self);
+TINYXCAP_API int txcap_stack_set(txcap_stack_handle_t* self, ...);
+TINYXCAP_API int txcap_stack_stop(txcap_stack_handle_t* self);
+
+TINYXCAP_GEXTERN const tsk_object_def_t *txcap_stack_def_t;
+
+TXCAP_END_DECLS
+
+#endif // TINYXCAP_CONFIG_H
diff --git a/tinyXCAP/installdox.sh b/tinyXCAP/installdox.sh
new file mode 100644
index 0000000..a55fbbd
--- /dev/null
+++ b/tinyXCAP/installdox.sh
@@ -0,0 +1 @@
+docs/html/installdox -l tinySAK.tag@http://doubango.org/API/tinySAK docs/html/*.html -l tinyNET.tag@http://doubango.org/API/tinyNET docs/html/*.html -l tinyHTTP.tag@http://doubango.org/API/tinyHTTP docs/html/*.html
diff --git a/tinyXCAP/src/txcap.c b/tinyXCAP/src/txcap.c
new file mode 100644
index 0000000..5341a30
--- /dev/null
+++ b/tinyXCAP/src/txcap.c
@@ -0,0 +1,1079 @@
+/*
+* Copyright (C) 2009-2010 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 txcap.c
+ * @brief RFC 4825 (XCAP) implementation.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "txcap.h"
+
+#include "tinyhttp/thttp_url.h"
+
+/**@defgroup txcap_stack_group XCAP stack
+*/
+
+
+/**@mainpage tinyXCAP API Overview
+*
+*
+* <h1>16 XCAP</h1>
+*
+* The XCAP Framework is mainly based on RFC 4825 and uses tinyHTTP project. The framework can be used to implements advanced OMA functionalities such Enhanced Address Book, Presence Authorization Rules, Service Configuration …
+* At startup the stack will load all supported AUIDs with their default values.
+*
+*
+*
+* <h2>16.1 Initialization</h2>
+*
+* As the XCAP stack depends on the HTTP/HTTPS stack (<a href="http://www.doubango.org/API/tinyHTTP/">tinyHTTP</a>) which uses the network library (<a href="http://www.doubango.org/API/tinyNET/"tinyNET</a>), you MUST call <a href="http://doubango.org/API/tinyNET/tnet_8c.html#affba6c2710347476f615b0135777c640"> tnet_startup()</a> before using any XCAP function (txcap_*). <br>
+* <a href="http://doubango.org/API/tinyNET/tnet_8c.html#ac42b22a7ac5831f04326aee9de033c84"> tnet_cleanup()</a> is used to terminate use of network functions. <br>
+* The example below demonstrates how to create and start a XCAP stack. In this example, the xcap-root URI is http://doubango.org:8080/services and the SIP AOR (used as XUI) is sip:bob@doubango.org.
+*
+* @code
+txcap_stack_handle_t* stack = tsk_null;
+int ret;
+
+tnet_startup();
+
+stack = txcap_stack_create(test_stack_callback, "sip:bob@doubango.org", "mysecret", "http://doubango.org:8080/services",
+
+ // options
+ TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_TIMEOUT, "6000"),
+
+ // stack-level headers (not mandatory)
+ TXCAP_STACK_SET_HEADER("Pragma", "No-Cache"),
+ TXCAP_STACK_SET_HEADER("Connection", "Keep-Alive"),
+ TXCAP_STACK_SET_HEADER("X-3GPP-Intended-Identity", "sip:bob@doubango.org"),
+ TXCAP_STACK_SET_HEADER("User-Agent", "XDM-client/OMA1.1"),
+ TXCAP_STACK_SET_NULL());
+
+if((ret = txcap_stack_start(stack))){
+ goto bail;
+}
+
+// …………
+
+bail:
+ TSK_OBJECT_SAFE_FREE(stack);
+tnet_cleanup();
+
+* @endcode
+*
+* The stack-level headers will be added in all outgoing requests.
+* A stack is a well-defined object and must be destroyed by using @a TSK_OBJECT_SAFE_FREE() macro. The stack will be automatically stopped when destroyed.
+*
+*
+*
+* <h2>16.2 Application Unique ID (AUID) object</h2>
+*
+* An AUID object is defined by:
+* - An id (e.g. “xcap-caps”),
+* - A MIME-Type (e.g. “application/xcap-caps+xml”),
+* - A namespace (e.g. “urn:ietf:params:xml:ns:xcap-caps”),
+* - A document name (e.g. “index”), which defines the name of the default document associated with this AUID
+* - A scope (“global” or “users”)
+*
+* At startup, the stack will load all supported AUIDs with their default values. You can at any time change these values or register your own AUID object. The list of default AUIDs with their default values are shown in the next sections.
+* When you are about to send a request, it’s not mandatory to use a registered AUID but it’s easier to generate the selector as all parameters are pre-configured.
+*
+*
+*
+* <h3>16.2.1 Default AUIDs</h3>
+*
+* The table below shows the default AUIDs as they are defined by the stack at startup.
+* <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139 BGCOLOR="#d9d9d9">
+*
+* <P STYLE="border: none; padding: 0in"><B>Id</B></P>
+* </TD>
+* <TD WIDTH=132 BGCOLOR="#d9d9d9">
+* <P STYLE="border: none; padding: 0in"><B>MIME-Type</B></P>
+* </TD>
+* <TD WIDTH=120 BGCOLOR="#d9d9d9">
+* <P STYLE="border: none; padding: 0in"><B>Namespace</B></P>
+*
+* </TD>
+* <TD WIDTH=84 BGCOLOR="#d9d9d9">
+* <P STYLE="border: none; padding: 0in"><B>Document </B>
+* </P>
+* </TD>
+* <TD WIDTH=53 BGCOLOR="#d9d9d9">
+* <P STYLE="border: none; padding: 0in"><B>Scope</B></P>
+* </TD>
+*
+* <TD WIDTH=129 BGCOLOR="#d9d9d9">
+* <P STYLE="border: none; padding: 0in"><B>Reference</B></P>
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">xcap-caps</P>
+* </TD>
+*
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/xcap-caps+xml</P>
+* </TD>
+* <TD WIDTH=120>
+* <P STYLE="border: none; padding: 0in">urn:ietf:params:xml:ns:xcap-caps</P>
+* </TD>
+* <TD WIDTH=84>
+* <P STYLE="border: none; padding: 0in">index</P>
+*
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">global</P>
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">RFC
+* 4825 section 12.1</P>
+* </TD>
+* </TR>
+*
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">resource-lists</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/resource-lists+xml</P>
+* </TD>
+* <TD WIDTH=120>
+*
+* <P STYLE="border: none; padding: 0in">urn:ietf:params:xml:ns:resource-lists</P>
+* </TD>
+* <TD WIDTH=84>
+* <P STYLE="border: none; padding: 0in">index</P>
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+*
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">RFC
+* 4826 section 3.4.1</P>
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">rls-services</P>
+*
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/rls-services+xml</P>
+* </TD>
+* <TD WIDTH=120>
+* <P STYLE="border: none; padding: 0in">urn:ietf:params:xml:ns:rls-services&quot;</P>
+* </TD>
+* <TD WIDTH=84>
+*
+* <P STYLE="border: none; padding: 0in">index</P>
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">RFC
+* 4826 section 4.4.1</P>
+*
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">pres-rules</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/auth-policy+xml</P>
+*
+* </TD>
+* <TD WIDTH=120>
+* <P STYLE="border: none; padding: 0in">urn:ietf:params:xml:ns:pres-rules</P>
+* </TD>
+* <TD WIDTH=84>
+* <P STYLE="border: none; padding: 0in">index</P>
+* </TD>
+* <TD WIDTH=53>
+*
+* <P STYLE="border: none; padding: 0in">users</P>
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">RFC
+* 5025 section 9.1</P>
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+*
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">org.openmobilealliance.pres-rules</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/auth-policy+xml</P>
+* </TD>
+* <TD WIDTH=120>
+* <P STYLE="border: none; padding: 0in">urn:ietf:params:xml:ns:common-policy</P>
+*
+* </TD>
+* <TD WIDTH=84>
+* <P STYLE="border: none; padding: 0in">pres-rules</P>
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+* </TD>
+* <TD WIDTH=129>
+*
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">[OMA-TS-Presence_SIMPLE_XDM-V1_1-20080627-A]
+* section 5.1.1.2</P>
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">directory</P>
+* </TD>
+* <TD WIDTH=132>
+*
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/directory+xml</P>
+* </TD>
+* <TD WIDTH=120>
+* <P STYLE="border: none; padding: 0in">urn:ietf:params:xml:ns:xcap-directory</P>
+* </TD>
+* <TD WIDTH=84>
+* <P STYLE="border: none; padding: 0in">directory.xml</P>
+*
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">draft-garcia-simple-xcap-directory-00
+* section 9.1</P>
+* </TD>
+* </TR>
+*
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">org.openmobilealliance.xcap-directory</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/vnd.oma.xcap-directory+xml</P>
+* </TD>
+* <TD WIDTH=120>
+*
+* <P STYLE="border: none; padding: 0in">urn:oma:xml:xdm:xcap-directory</P>
+* </TD>
+* <TD WIDTH=84>
+* <P STYLE="border: none; padding: 0in">directory.xml</P>
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+*
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">[OMA-TS-XDM_Core-V1_1-20080627-A]
+* section 6.7.2.1</P>
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">org.openmobilealliance.pres-content</P>
+*
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/vnd.oma.pres-content+xml</P>
+* </TD>
+* <TD WIDTH=120>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">urn:oma:xml:prs:pres-content</P>
+* </TD>
+* <TD WIDTH=84>
+*
+* <P STYLE="border: none; padding: 0in">oma_status-icon/rcs_status_icon</P>
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+* </TD>
+* <TD WIDTH=129>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">[OMA-TS-Presence-SIMPLE_Content_XDM-V1_0-20081223-C]
+* section 5.1.2</P>
+*
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">org.openmobilealliance.conv-history</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="en-GB" STYLE="border: none; padding: 0in">application/vnd.oma.im.history-list+xml</P>
+*
+* </TD>
+* <TD WIDTH=120>
+* <P STYLE="border: none; padding: 0in">urn:oma:xml:im:history-list</P>
+* </TD>
+* <TD WIDTH=84>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">conv-history</P>
+* </TD>
+* <TD WIDTH=53>
+*
+* <P STYLE="border: none; padding: 0in">users</P>
+* </TD>
+* <TD WIDTH=129>
+* <P STYLE="border: none; padding: 0in">[OMA-TS-IM_XDM-V1_0-20070816-C]
+* <SPAN LANG="fr-FR">section</SPAN>
+* 5.1.2</P>
+* </TD>
+* </TR>
+*
+* <TR VALIGN=TOP>
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">org.openmobilealliance.deferred-list</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="en-GB" STYLE="border: none; padding: 0in">application/vnd.oma.im.deferred-list+xml</P>
+* </TD>
+* <TD WIDTH=120>
+*
+* <P STYLE="border: none; padding: 0in">urn:oma:xml:im:history-list</P>
+* </TD>
+* <TD WIDTH=84>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">deferred-list</P>
+* </TD>
+* <TD WIDTH=53>
+* <P STYLE="border: none; padding: 0in">users</P>
+*
+* </TD>
+* <TD WIDTH=129>
+* <P STYLE="border: none; padding: 0in">[OMA-TS-IM_XDM-V1_0-20070816-C]
+* <SPAN LANG="fr-FR">section</SPAN>
+* 5.2.2</P>
+* </TD>
+* </TR>
+* <TR VALIGN=TOP>
+*
+* <TD WIDTH=139>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">org.openmobilealliance.group-usage-list</P>
+* </TD>
+* <TD WIDTH=132>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">application/vnd.oma.group-usage-list+xml</P>
+* </TD>
+* <TD WIDTH=120>
+* <PRE CLASS="western" STYLE="margin-bottom: 0.2in; border: none; padding: 0in">rn:ietf:params:xml:ns:resource-lists</PRE><P STYLE="border: none; padding: 0in">
+*
+* &nbsp;</P>
+* </TD>
+* <TD WIDTH=84>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">index</P>
+* </TD>
+* <TD WIDTH=53>
+* <P LANG="fr-FR" STYLE="border: none; padding: 0in">users</P>
+* </TD>
+*
+* <TD WIDTH=129>
+* <P STYLE="border: none; padding: 0in">[OMA-TS-XDM_Shared-V1_1-20080627-A]
+* subclause 5.2.2</P>
+* </TD>
+* </TR>
+* </TABLE>
+*
+*
+* <h3>16.2.2 AUID registration</h3>
+*
+* === The code below shows how to register two AUIDs. If the AUID object already exist (case-insensitive comparison on the id), then it will be updated. All fields are mandatory (id, mime-type, namespace, document and scope).
+*
+* @code
+txcap_stack_set(stack,
+ TXCAP_STACK_SET_AUID("my-xcap-caps", "application/my-xcap-caps+xml", "urn:ietf:params:xml:ns:my-xcap-caps", "my-document", tsk_true),
+ TXCAP_STACK_SET_AUID("my-resource-lists", "application/my-resource-lists+xml", "urn:ietf:params:xml:ns:my-resource-lists", "my-document", tsk_false),
+
+ TXCAP_STACK_SET_NULL()); // mandatory
+*
+* @endcode
+*
+* The stack should be created as shown at section 16.1.
+* Only AUIDs which don’t appear in the table above should be registered using this method
+*
+*
+
+* <h2>16.3 Selector</h2>
+*
+* The selector is a helper function which could be used to construct XCAP URIs. XCAP URI is constructed as per RFC 4825 section 6. @a TXCAP_SELECTOR_NODE_SET*() macros are used to build a complete and well-formed URI (already percent encoded).
+* All examples below assume that our AOR (used as XUI) is sip:bob@doubango.com, we are using the ‘rcs’list and the xcap-root URI is http://doubango.org:8080/services. All these parameters should be set when the stack is created. You will also notice that TXCAP_SELECTOR_NODE_SET_NULL() macro is used to ends the node selection parameters passed to txcap_selector_get_url(), it’s mandatory and should always be the last one.
+*
+* - Select XDMS capabilities:
+* @code
+char* urlstring = txcap_selector_get_url(stack, "xcap-caps",
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("%s\n", urlstring);
+ TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/xcap-caps/global/index</i>
+* - Select 'resource-lists' document
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index</i>
+*
+* - Select 'rcs' list
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22rcs\%22\%5D</i>
+*
+* - Select the 2nd list
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_POS("list", 2),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B2\%5D</i>
+*
+* - Select the 4th list using wildcard
+* @code
+urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_POS("*", 4),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/*\%5B4\%5D</i>
+*
+* - Select bob's entry
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", "sip:bob@doubango.com"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22rcs\%22\%5D/entry\%5B\@uri=\%22sip:bob@doubango.org\%22\%5D</i>
+*
+* - Select bob’s display-name
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", "sip:bob@doubango.org"),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22rcs\%22\%5D/entry\%5B\@uri=\%22sip:bob@doubango.org\%22\%5D/display-name</i>
+*
+* - Select the display-name of the 1st entry
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS("entry", 1),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22rcs\%22\%5D/entry\%5B1\%5D/display-name</i>
+*
+* - Select bob from position 23
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE("entry", 23, "uri", "sip:bob@doubango.org"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22rcs\%22\%5D/entry\%5B23\%5D\%5B\@uri=\%22sip:bob@doubango.org\%22\%5D</i>
+*
+* - Namespaces test
+* @code
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NAME("foo"),
+ TXCAP_SELECTOR_NODE_SET_NAME("a:bar"),
+ TXCAP_SELECTOR_NODE_SET_NAME("b:baz"),
+ TXCAP_SELECTOR_NODE_SET_NAMESPACE("a", "urn:namespace1-uri"),
+ TXCAP_SELECTOR_NODE_SET_NAMESPACE("b", "urn:namespace2-uri"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* Console Output:
+* <i>http://doubango.org:8080/services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/foo/a:bar/b:baz%3Fxmlns(a=\%22urn:namespace1-uri\%22)xmlns(b=\%22urn:namespace2-uri\%22)</i>
+*
+* <h2>16.4 XDMC Usage</h2>
+*
+* It is assumed that the address of the XDMS (or aggregation Proxy) is “doubango.org:8080/services” and thus the XCAP Root URI is “doubango.org:8080/services”. “sip:bob@doubango.org” will be used as the XUI.
+* An XDMC can perform twelve actions:
+* - @ref txcap_action_create_element(): Creates new element by sending a HTTP/HTTPS PUT request. The default Content-Type will be “application/xcap-el+xml”, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_create_document(): Creates new document by sending a HTTP/HTTPS PUT request. The default Content-Type will be the one associated with the AUID of the document, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_create_attribute(): Creates new attribute by sending a HTTP/HTTPS PUT request. The default Content-Type will be “application/xcap-att+xml”, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_replace_element(): Replaces an element by sending a HTTP/HTTPS PUT request. The default Content-Type will be “application/xcap-el+xml”, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_replace_document(): Replaces a document by sending a HTTP/HTTPS PUT request. The default Content-Type will be the one associated with the AUID of the document, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_replace_attribute(): Replaces an attribute by sending a HTTP/HTTPS PUT request. The default Content-Type will be “application/xcap-att+xml”, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_fetch_element(): Retrieves an element from the XDMS by sending a HTTP/HTTPS GET request. The default Content-Type will be “application/xcap-el+xml”, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_fetch_document(): Retrieves a document from the XDMS by sending a HTTP/HTTPS GET request. The default Content-Type will be the one associated with the AUID of the document, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_fetch_attribute(): Retrieves an attribute from the XDMS by sending a HTTP/HTTPS GET request. The default Content-Type will be “application/xcap-att+xml”, unless you provide your own Content-Type by using TXCAP_ACTION_SET_HEADER().
+* - @ref txcap_action_delete_element(): Deletes an element from the XDMS by sending a HTTP/HTTPS DELETE request.
+* - @ref txcap_action_delete_document(): Deletes a document from the XDMS by sending a HTTP/HTTPS DELETE request.
+* - @ref txcap_action_delete_attribute(): Deletes an attribute from the XDMS by sending a HTTP/HTTPS DELETE request.
+*
+* To understand how the stack is created, please refer to section 16.1.
+*
+*
+* <h3>16.4.1 Retrieving XDMS capabilities</h3>
+* === The code below shows how an XDMC obtains the XDMS capabilities document.
+* @code
+int ret = txcap_action_fetch_document(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("xcap-caps",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* The XDMC will send:
+* @code
+GET /services/xcap-caps/global/index HTTP/1.1
+Host: doubango.org:8080
+Connection: Keep-Alive
+User-Agent: XDM-client/OMA1.1
+X-3GPP-Intended-Identity: sip:bob@doubango.org
+Content-Type: application/xcap-caps+xml
+* @endcode
+*
+* <h3>16.4.2 Address Book</h3>
+*
+* === The code below shows how an XDMC obtains URI Lists (Address Book).
+*
+* @code
+int ret = txcap_action_fetch_document(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ //action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* The XDMC will send:
+* @code
+GET /services/resource-lists/users/sip:bob@doubango.org/index HTTP/1.1
+Host: doubango.org:8080
+Connection: Keep-Alive
+User-Agent: XDM-client/OMA1.1
+X-3GPP-Intended-Identity: sip:bob@doubango.org
+Pragma: No-Cache
+Content-Type: application/resource-lists+xml
+* @endcode
+*
+* === The code below shows how to add a new list to the address book
+* @code
+int ret = txcap_action_create_element(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD, strlen(PAYLOAD)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* The XDMC will send:
+* @code
+PUT /services/resource-lists/users/sip:bob@doubano.org/index/~~/resource-lists/list\%5B\@name=\%22newlist\%22\%5D HTTP/1.1
+Host: doubango.org:8080
+Content-Length: 110
+Connection: Keep-Alive
+User-Agent: XDM-client/OMA1.1
+X-3GPP-Intended-Identity: sip:bob@doubango.org
+Content-Type: application/xcap-el+xml
+
+<list name="newlist" xmlns="urn:ietf:params:xml:ns:resource-lists"><display-name>newlist</display-name></list>
+* @endcode
+*
+* === The code below shows how to retrieve the previously added list
+* @code
+int ret = txcap_action_fetch_element(stack,
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* The XDMC will send:
+* @code
+GET /services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22newlist\%22\%5D HTTP/1.1
+Host: doubango.org:8080
+Connection: Keep-Alive
+User-Agent: XDM-client/OMA1.1
+X-3GPP-Intended-Identity: sip:bob@doubango.org
+Content-Type: application/xcap-el+xml
+** @endcode
+*
+* === The code below shows how to add a new entry (“sip:alice@doubango.org”) to the previously added list
+* @code
+int ret = txcap_action_create_element(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", “sip:alice@doubango.org”),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD, strlen(PAYLOAD)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* The XDMC will send:
+* @code
+PUT /services/resource-lists/users/sip:bob@doubango.org/index/~~/resource-lists/list\%5B\@name=\%22newlist\%22\%5D/entry\%5B\@uri=\%22sip:alice@doubango.org\%22\%5D HTTP/1.1
+Host: doubango.org:8080
+Content-Length: 125
+Connection: Keep-Alive
+User-Agent: XDM-client/OMA1.1
+X-3GPP-Intended-Identity: sip:bob@doubango.org
+Content-Type: application/xcap-el+xml
+
+<entry uri="sip:alice@doubango.org" xmlns="urn:ietf:params:xml:ns:resource-lists"><display-name>alice</display-name></entry>
+* @endcode
+*
+* <h3>16.4.3 Obtaining Presence Content Document </h3>
+*
+* === The code below shows how an XDMC obtains the Presence Content document (avatar).
+*
+* @code
+int ret = txcap_action_fetch_document(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ //action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("org.openmobilealliance.pres-content",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+* @endcode
+*
+* The XDMC will send:
+*
+* @code
+GET /services/org.openmobilealliance.pres-content/users/sip:mamadou@micromethod.com/oma_status-icon/rcs_status_icon HTTP/1.1
+Host: doubango.org:8080
+Connection: Keep-Alive
+User-Agent: XDM-client/OMA1.1
+X-3GPP-Intended-Identity: sip:bob@doubango.org
+Pragma: No-Cache
+Content-Type: application/vnd.oma.pres-content+xml
+* @endcode
+*/
+
+/** Internal function used to set options.
+*/
+int __txcap_stack_set(txcap_stack_t* self, va_list *app)
+{
+ txcap_stack_param_type_t curr;
+ tsk_bool_t cred_updated = tsk_false;
+
+ if(!self || !self->http_session){
+ return -1;
+ }
+
+ while((curr = va_arg(*app, txcap_stack_param_type_t)) != xcapp_null){
+ switch(curr){
+ case xcapp_option:
+ { /* (txcap_stack_option_t)ID_ENUM, (const char*)VALUE_STR */
+ txcap_stack_option_t ID_ENUM = va_arg(*app, txcap_stack_option_t);
+ const char* VALUE_STR = va_arg(*app, const char*);
+ switch(ID_ENUM){
+ case TXCAP_STACK_OPTION_ROOT:
+ {
+ tsk_strupdate(&self->xcap_root, VALUE_STR);
+ break;
+ }
+ /* PASSWORD and XUI are not used as options in the HTTP/HTTPS stack */
+ case TXCAP_STACK_OPTION_PASSWORD:
+ {
+ tsk_strupdate(&self->password, VALUE_STR);
+ cred_updated = tsk_true;
+ break;
+ }
+ case TXCAP_STACK_OPTION_XUI:
+ {
+ tsk_strupdate(&self->xui, VALUE_STR);
+ cred_updated = tsk_true;
+ break;
+ }
+ case TXCAP_STACK_OPTION_LOCAL_IP:
+ {
+ thttp_stack_set(self->http_stack, THTTP_STACK_SET_LOCAL_IP(VALUE_STR),
+ THTTP_STACK_SET_NULL());
+ break;
+ }
+ case TXCAP_STACK_OPTION_LOCAL_PORT:
+ {
+ int port = atoi(VALUE_STR);
+ thttp_stack_set(self->http_stack, THTTP_STACK_SET_LOCAL_PORT(port),
+ THTTP_STACK_SET_NULL());
+ break;
+ }
+ default:
+ { /* HTTP Options: MUST be changed to valid HTTP option enum */
+ switch(ID_ENUM){
+ case TXCAP_STACK_OPTION_TIMEOUT:
+ tsk_options_add_option(&((thttp_session_t*)self->http_session)->options, THTTP_SESSION_OPTION_TIMEOUT, VALUE_STR);
+ break;
+ case TXCAP_STACK_OPTION_TTL:
+ tsk_options_add_option(&((thttp_session_t*)self->http_session)->options, THTTP_SESSION_OPTION_TTL, VALUE_STR);
+ break;
+ default:
+ TSK_DEBUG_WARN("%d is an invalid XCAP option", ID_ENUM);
+ break;
+ }
+
+ break;
+ }
+ }
+ break;
+ }
+
+ case xcapp_header:
+ { /* (const char*)NAME_STR, (const char*)VALUE_STR */
+ const char* NAME_STR = va_arg(*app, const char*);
+ const char* VALUE_STR = va_arg(*app, const char*);
+ if(VALUE_STR == (const char*)-1){
+ tsk_params_remove_param(((thttp_session_t*)self->http_session)->headers, NAME_STR);
+ }
+ else{
+ tsk_params_add_param(&((thttp_session_t*)self->http_session)->headers, NAME_STR, VALUE_STR);
+ }
+ break;
+ }
+
+ case xcapp_userdata:
+ { /* (const void*)CTX_PTR */
+ const void* CTX_PTR = va_arg(*app, const void*);
+ ((thttp_session_t*)self->http_session)->userdata = CTX_PTR;
+ break;
+ }
+
+ case xcapp_auid:
+ { /* (const char*)ID_STR, (const char*)MIME_TYPE_STR, (const char*)NS_STR, (const char*)DOC_NAME_STR, (tsk_bool_t)IS_GLOBAL_BOOL */
+ const char* ID_STR = va_arg(*app, const char*);
+ const char* MIME_TYPE_STR = va_arg(*app, const char*);
+ const char* NS_STR = va_arg(*app, const char*);
+ const char* DOC_NAME_STR = va_arg(*app, const char*);
+ tsk_bool_t IS_GLOBAL_BOOL = va_arg(*app, tsk_bool_t);
+
+ if(txcap_auid_register(self->auids, ID_STR, MIME_TYPE_STR, NS_STR, DOC_NAME_STR, IS_GLOBAL_BOOL)){
+ // do nothing
+ }
+
+ break;
+ }
+
+ default:
+ {
+ TSK_DEBUG_ERROR("NOT SUPPORTED.");
+ goto bail;
+ }
+ } /* switch */
+ } /* while */
+
+ if(cred_updated && self->http_session){
+ /* credentials */
+ thttp_session_set(self->http_session,
+ THTTP_SESSION_SET_CRED(self->xui, self->password),
+ THTTP_SESSION_SET_NULL());
+ }
+ return 0;
+
+bail:
+ return -2;
+}
+
+/**@ingroup txcap_stack_group
+* Creates new XCAP stack.
+* @param callback Poiner to the callback function to call when new messages come to the transport layer.
+* Can be set to Null if you don't want to be alerted.
+* @param xui user's id as per RFC 4825 subclause 4. Also used to fill @b "X-3GPP-Intended-Identity" header.
+* This paramter is mandatory and must not be null. If for any reason you'd like to update the user's id, then use @ref TXCAP_STACK_SET_XUI().
+* @param password user's password used to authenticate to the XDMS.
+* This parameter is not mandatory. If for any reason you'd like to update the password, then use @ref TXCAP_STACK_SET_PASSWORD().
+* @param xcap_root xcap-root URI as per RFC 4825 subclause 6.1, used to build all request-uris.
+* This parameter is not mandatory and must be a valid HTPP/HTTPS URL.
+* @param ... User configuration. You must use @a TXCAP_STACK_SET_*() macros to set these options.
+* The list of options must always end with @ref TXCAP_STACK_SET_NULL() even if these is no option to pass to the stack.
+* @retval A Pointer to the newly created stack if succeed and @a Null otherwise.
+* A stack is a well-defined object.
+*
+* @code
+int test_stack_callback(const thttp_event_t *httpevent);
+
+txcap_stack_handle_t* stack = txcap_stack_create(test_stack_callback, "sip:bob@example.com", "mysecret", "http://doubango.org:8080/services",
+
+ // stack-level options
+ TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_TIMEOUT, "6000"),
+
+ // stack-level headers
+ TXCAP_STACK_SET_HEADER("Connection", "Keep-Alive"),
+ TXCAP_STACK_SET_HEADER("User-Agent", "XDM-client/OMA1.1"),
+ TXCAP_STACK_SET_HEADER("X-3GPP-Intended-Identity", XUI),
+
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref txcap_stack_set
+*/
+txcap_stack_handle_t* txcap_stack_create(thttp_stack_callback_f callback, const char* xui, const char* password, const char* xcap_root, ...)
+{
+ txcap_stack_t* ret = tsk_null;
+
+ if(!xui || !xcap_root){
+ TSK_DEBUG_ERROR("Both xui and xcap_root are mandatory and should be non-null");
+ goto bail;
+ }
+
+ /* check url validity */
+ if(!thttp_url_isvalid(xcap_root)){
+ TSK_DEBUG_ERROR("%s is not a valid HTTP/HTTPS url", xcap_root);
+ goto bail;
+ }
+
+ if(!(ret = tsk_object_new(txcap_stack_def_t, callback, xui, password, xcap_root))){
+ TSK_DEBUG_FATAL("Failed to create the XCAP stack");
+ goto bail;
+ }
+ else{
+ /* set parameters */
+ va_list ap;
+ va_start(ap, xcap_root);
+ __txcap_stack_set(ret, &ap);
+ va_end(ap);
+ /* credendials */
+ tsk_strupdate(&ret->xui, xui);
+ tsk_strupdate(&ret->password, password);
+ if(ret->http_session){
+ thttp_session_set(ret->http_session,
+ THTTP_SESSION_SET_CRED(ret->xui, ret->password),
+ THTTP_SESSION_SET_NULL());
+ }
+ }
+
+bail:
+ return ret;
+}
+
+/**@ingroup txcap_stack_group
+* Starts the stack.
+* @param self A pointer to the stack to stark. The stack shall be created using @ref txcap_stack_create().
+* @retval Zero if succeed and non-zero error code otherwise.
+* @sa @ref txcap_stack_stop
+*/
+int txcap_stack_start(txcap_stack_handle_t* self)
+{
+ int ret = -1;
+ txcap_stack_t* stack = self;
+
+ if(!stack){
+ goto bail;
+ }
+
+ if(!(ret = thttp_stack_start(stack->http_stack))){
+ //if(!stack->http_session){
+ // stack->http_session = thttp_session_create(stack->http_stack ,
+ // THTTP_SESSION_SET_NULL());
+ //}
+ }
+
+bail:
+ return ret;
+}
+
+/**@ingroup txcap_stack_group
+* Updates the stack configuration.
+* @param self The XCAP stack to update. The stack shall be created using @ref txcap_stack_create().
+* @param ... Any @a TXCAP_STACK_SET_*() macros. MUST ends with @ref TXCAP_STACK_SET_NULL().
+* @retval Zero if succeed and non-zero error code otherwise.
+*
+* @code
+txcap_stack_handle_t* stack;
+// ... create the stack
+
+txcap_stack_set(stack,
+ // add new AUIDs
+ TXCAP_STACK_SET_AUID("xcap-caps2", "application/xcap-caps2+xml", "urn:ietf:params:xml:ns:xcap-caps2", "index2", tsk_true),
+ TXCAP_STACK_SET_AUID("resource-lists2", "application/resource-lists+xml2", "urn:ietf:params:xml:ns:resource-lists2", "index2", tsk_false),
+ // stack-level headers
+ TXCAP_STACK_SET_HEADER("Connection", "Keep-Alive"),
+ TXCAP_STACK_SET_HEADER("User-Agent", "XDM-client/OMA1.1"),
+
+ TXCAP_STACK_SET_NULL());
+* @endcode
+*
+* @sa @ref txcap_stack_create
+*/
+int txcap_stack_set(txcap_stack_handle_t* self, ...)
+{
+ int ret = -1;
+ va_list ap;
+
+ if(!self){
+ goto bail;
+ }
+
+ va_start(ap, self);
+ ret = __txcap_stack_set(self, &ap);
+ va_end(ap);
+
+bail:
+ return ret;
+}
+
+/**@ingroup txcap_stack_group
+* Stops the stack. The stack must already be started.
+* @param self A pointer to the stack to stop. The stack shall be created using @ref txcap_stack_create().
+* @retval Zero if succeed and non-zero error code otherwise.
+* @sa @ref txcap_stack_start
+*/
+int txcap_stack_stop(txcap_stack_handle_t* self)
+{
+ int ret = -1;
+ txcap_stack_t* stack = self;
+
+ if(!stack){
+ goto bail;
+ }
+ else{
+ if(!(ret = thttp_stack_stop(stack->http_stack))){
+ //TSK_OBJECT_SAFE_FREE(stack->http_session);
+ }
+ }
+
+bail:
+ return ret;
+}
+
+
+
+
+
+
+
+
+
+//========================================================
+// XCAP stack object definition
+//
+static tsk_object_t* _txcap_stack_create(tsk_object_t * self, va_list * app)
+{
+ txcap_stack_t *stack = self;
+ if(stack){
+ thttp_stack_callback_f callback;
+ tsk_safeobj_init(stack);
+
+ callback = va_arg(*app, thttp_stack_callback_f);
+ stack->xui = tsk_strdup( va_arg(*app, const char*) );
+ stack->password = tsk_strdup( va_arg(*app, const char*) );
+ stack->xcap_root = tsk_strdup( va_arg(*app, const char*) );
+
+ /* HTTP/HTTPS stack and session */
+ stack->http_stack = thttp_stack_create(callback,
+ THTTP_STACK_SET_NULL());
+ stack->http_session = thttp_session_create(stack->http_stack ,
+ THTTP_SESSION_SET_NULL());
+
+ /* Options */
+ stack->options = tsk_list_create();
+
+ /* AUIDs */
+ txcap_auids_init(&stack->auids);
+ }
+ return self;
+}
+
+static tsk_object_t* txcap_stack_destroy(tsk_object_t* self)
+{
+ txcap_stack_t *stack = self;
+ if(stack){
+ /* vars */
+ TSK_FREE(stack->xui);
+ TSK_FREE(stack->password);
+ TSK_FREE(stack->xcap_root);
+
+ /* HTTP/HTTPS resources */
+ TSK_OBJECT_SAFE_FREE(stack->http_session);
+ TSK_OBJECT_SAFE_FREE(stack->http_stack);
+
+ /* Options */
+ TSK_OBJECT_SAFE_FREE(stack->options);
+
+ /* AUIDs */
+ TSK_OBJECT_SAFE_FREE(stack->auids);
+
+ tsk_safeobj_deinit(stack);
+ }
+ return self;
+}
+
+static const tsk_object_def_t txcap_stack_def_s =
+{
+ sizeof(txcap_stack_t),
+ _txcap_stack_create,
+ txcap_stack_destroy,
+ tsk_null,
+};
+const tsk_object_def_t *txcap_stack_def_t = &txcap_stack_def_s;
diff --git a/tinyXCAP/src/txcap_action.c b/tinyXCAP/src/txcap_action.c
new file mode 100644
index 0000000..9276273
--- /dev/null
+++ b/tinyXCAP/src/txcap_action.c
@@ -0,0 +1,208 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_action.c
+ * @brief XCAP actions.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "tinyxcap/txcap_action.h"
+
+#include "tsk_options.h"
+#include "tsk_params.h"
+#include "tinyxcap/txcap_selector.h"
+
+/**@defgroup txcap_action_group XDMC (Sending Requests)
+*/
+
+extern char* __txcap_selector_get_url(const txcap_stack_handle_t* stack, const char* auid_id, va_list* app);
+
+
+/** Sends HTTP/HTTPS request to the XDMS.
+*/
+int txcap_action_perform(txcap_stack_handle_t* stack, txcap_action_type_t type, txcap_action_target_t target, ...)
+{
+ tsk_options_L_t* options = tsk_null;
+ tsk_params_L_t* headers = tsk_null;
+ char* urlstring = tsk_null;
+ thttp_action_t* action;
+ thttp_dialog_t* dialog;
+ int ret = -1;
+ txcap_action_param_type_t curr;
+ const char* method = "GET";
+ const char* mime_type = tsk_null;
+ const char* AUID_STR = tsk_null;
+ const void* PAY_PTR = tsk_null;
+ size_t PAY_SIZE = 0;
+ va_list ap;
+ txcap_stack_t* xcap_stack = stack;
+
+ if(!xcap_stack){
+ goto bail;
+ }
+ else{
+ xcap_stack = tsk_object_ref(stack);
+ options = tsk_list_create();
+ headers = tsk_list_create();
+ }
+
+ va_start(ap, target);
+ while((curr = va_arg(ap, txcap_action_param_type_t)) != txcap_apt_null){
+ switch(curr){
+ case txcap_apt_option:
+ { /*(thttp_action_option_t)ID_INT, (const char*)VALUE_STR*/
+ thttp_action_option_t ID_INT = va_arg(ap, thttp_action_option_t);
+ const char* VALUE_STR = va_arg(ap, const char *);
+ tsk_options_add_option(&options, ID_INT, VALUE_STR);
+ break;
+ }
+ case txcap_apt_header:
+ { /* (const char*)NAME_STR, (const char*)VALUE_STR */
+ const char* NAME_STR = va_arg(ap, const char *);
+ const char* VALUE_STR = va_arg(ap, const char *);
+ if(VALUE_STR == (const char*)-1){
+ tsk_params_remove_param(headers, NAME_STR);
+ }
+ else{
+ tsk_params_add_param(&headers, NAME_STR, VALUE_STR);
+ }
+ break;
+ }
+ case txcap_apt_payload:
+ { /*(const void*)PAY_PTR, (size_t)PAY_SIZE*/
+ PAY_PTR = va_arg(ap, const void *);
+ PAY_SIZE = va_arg(ap, size_t);
+ break;
+ }
+ case txcap_apt_selector:
+ { /*(const char*)AUID_STR, __VA_ARGS__*/
+ AUID_STR = va_arg(ap, const char *);
+ if(!urlstring){
+ urlstring = __txcap_selector_get_url(stack, AUID_STR, &ap);
+ }
+ break;
+ }
+ case txcap_apt_urlstring:
+ { /* (const char*)URI_STR */
+ const char* URI_STR = va_arg(ap, const char *);
+ if(!urlstring){
+ urlstring = tsk_strdup(URI_STR);
+ }
+ break;
+ }
+ default:
+ {
+ TSK_DEBUG_ERROR("NOT SUPPORTED.");
+ goto done;
+ }
+ }/* switch */
+ } /* while */
+
+done:
+ va_end(ap);
+
+ /* checks urlstring */
+ if(!urlstring){
+ TSK_DEBUG_ERROR("Failed to compute XCAP URL");
+ goto bail;
+ }
+
+ /* HTTP method */
+ switch(type){
+ case txcap_atp_create:
+ case txcap_atp_replace:
+ method = "PUT"; break;
+ case txcap_atp_fetch:
+ method = "GET"; break;
+ case txcap_atp_delete:
+ method = "DELETE"; break;
+ }
+
+ /*content-type*/
+ switch(target){
+ case txcap_atg_element:
+ mime_type = TXCAP_MIME_TYPE_ELEMENT; break;
+ case txcap_atg_document:
+ {
+ if(AUID_STR){
+ txcap_auid_t* auid;
+ if((auid = txcap_auid_get_by_id(xcap_stack->auids, AUID_STR))){
+ mime_type = (const char*)auid->mime_type; // (cont char*) do not strdup()
+ TSK_OBJECT_SAFE_FREE(auid);
+ }
+ else{
+ TSK_DEBUG_WARN("Failed to find auid with id=%s", AUID_STR);
+ }
+ }
+ break;
+ }
+ case txcap_atg_attribute:
+ mime_type = TXCAP_MIME_TYPE_ATTRIBUTE; break;
+ }
+
+ /* HTTP action */
+ if((action = thttp_action_create(thttp_atype_o_request, urlstring, method, tsk_null))){
+ const tsk_list_item_t* item;
+ if((dialog = thttp_dialog_new(xcap_stack->http_session))){
+ /* copy options */
+ tsk_list_foreach(item, options){
+ tsk_options_add_option(&action->options, ((const tsk_option_t*)item->data)->id, ((const tsk_option_t*)item->data)->value);
+ }
+ /* copy action-level headers */
+ tsk_list_foreach(item, headers){
+ tsk_params_add_param(&action->headers, ((const tsk_param_t*)item->data)->name, ((const tsk_param_t*)item->data)->value);
+ }
+ /* copy session-level headers ==> will be added by thttp_dialog_send_request()*/
+ //--tsk_list_pushback_list(action->headers, ((thttp_session_t*)xcap_stack->http_session)->headers);
+
+ /* Content-Type */
+ if(mime_type){
+ if(!tsk_params_have_param(action->headers, "Content-Type")){
+ tsk_params_add_param(&action->headers, "Content-Type", mime_type);
+ }
+ }
+
+ /* payload */
+ if(PAY_PTR && PAY_SIZE){
+ action->payload = tsk_buffer_create(PAY_PTR, PAY_SIZE);
+ }
+
+ /* performs */
+ ret = thttp_dialog_fsm_act(dialog, action->type, tsk_null, action);
+ tsk_object_unref(dialog);
+ }
+ else{
+ TSK_DEBUG_ERROR("Failed to create new HTTP/HTTPS dialog.");
+ ret = -2;
+ }
+ TSK_OBJECT_SAFE_FREE(action);
+ }
+
+bail:
+ TSK_FREE(urlstring);
+ TSK_OBJECT_SAFE_FREE(options);
+ TSK_OBJECT_SAFE_FREE(headers);
+ tsk_object_unref(xcap_stack);
+ return ret;
+}
+
diff --git a/tinyXCAP/src/txcap_auid.c b/tinyXCAP/src/txcap_auid.c
new file mode 100644
index 0000000..731065b
--- /dev/null
+++ b/tinyXCAP/src/txcap_auid.c
@@ -0,0 +1,325 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_auid.c
+ * @brief XCAP AUID manager.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "tinyxcap/txcap_auid.h"
+
+#include "tsk_string.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+
+typedef struct auid_s
+{
+ txcap_auid_type_t type;
+ const char* id;
+ const char* mime_type;
+ const char* ns;
+ const char* document_name;
+ tsk_bool_t global;
+}
+auid_t;
+
+/** List of all default auids */
+static const auid_t __txcap_auids[] =
+{
+ /*== xcap-caps ==*/{
+ tauid_ietf_xcap_caps,
+ TXCAP_AUID_IETF_XCAP_CAPS_ID,
+ TXCAP_AUID_IETF_XCAP_CAPS_MIME_TYPE,
+ TXCAP_AUID_IETF_XCAP_CAPS_NS,
+ TXCAP_AUID_IETF_XCAP_CAPS_DOC,
+ tsk_true
+ },
+
+ /*== resource-lists ==*/{
+ tauid_ietf_resource_lists,
+ TXCAP_AUID_IETF_RESOURCE_LISTS_ID,
+ TXCAP_AUID_IETF_RESOURCE_LISTS_MIME_TYPE,
+ TXCAP_AUID_IETF_RESOURCE_LISTS_NS,
+ TXCAP_AUID_IETF_RESOURCE_LISTS_DOC,
+ tsk_false
+ },
+
+ /*== rls-services ==*/{
+ tauid_ietf_rls_services,
+ TXCAP_AUID_IETF_RLS_SERVICES_ID,
+ TXCAP_AUID_IETF_RLS_SERVICES_MIME_TYPE,
+ TXCAP_AUID_IETF_RLS_SERVICES_NS,
+ TXCAP_AUID_IETF_RLS_SERVICES_DOC,
+ tsk_false
+ },
+
+ /*== pres-rules ==*/{
+ tauid_ietf_pres_rules,
+ TXCAP_AUID_IETF_PRES_RULES_ID,
+ TXCAP_AUID_IETF_PRES_RULES_MIME_TYPE,
+ TXCAP_AUID_IETF_PRES_RULES_NS,
+ TXCAP_AUID_IETF_PRES_RULES_DOC,
+ tsk_false
+ },
+
+ /*== pidf-manipulation ==*/{
+ tauid_ietf_pres_rules,
+ TXCAP_AUID_IETF_PIDF_MANIPULATION_ID,
+ TXCAP_AUID_IETF_PIDF_MANIPULATION_MIME_TYPE,
+ TXCAP_AUID_IETF_PIDF_MANIPULATION_NS,
+ TXCAP_AUID_IETF_PIDF_MANIPULATION_DOC,
+ tsk_false
+ },
+
+ /*== org.openmobilealliance.pres-rules ==*/{
+ tauid_oma_pres_rules,
+ TXCAP_AUID_OMA_PRES_RULES_ID,
+ TXCAP_AUID_OMA_PRES_RULES_MIME_TYPE,
+ TXCAP_AUID_OMA_PRES_RULES_NS,
+ TXCAP_AUID_OMA_PRES_RULES_DOC,
+ tsk_false
+ },
+
+ /*== directory ==*/{
+ tauid_ietf_directory,
+ TXCAP_AUID_IETF_DIRECTORY_ID,
+ TXCAP_AUID_IETF_DIRECTORY_MIME_TYPE,
+ TXCAP_AUID_IETF_DIRECTORY_NS,
+ TXCAP_AUID_IETF_DIRECTORY_DOC,
+ tsk_false
+ },
+
+ /*== org.openmobilealliance.xcap-directory ==*/{
+ tauid_oma_directory,
+ TXCAP_AUID_OMA_DIRECTORY_ID,
+ TXCAP_AUID_OMA_DIRECTORY_MIME_TYPE,
+ TXCAP_AUID_OMA_DIRECTORY_NS,
+ TXCAP_AUID_OMA_DIRECTORY_DOC,
+ tsk_false
+ },
+
+ /*== org.openmobilealliance.pres-content ==*/{
+ tauid_oma_pres_content,
+ TXCAP_AUID_OMA_PRES_CONTENT_ID,
+ TXCAP_AUID_OMA_PRES_CONTENT_MIME_TYPE,
+ TXCAP_AUID_OMA_PRES_CONTENT_NS,
+ TXCAP_AUID_OMA_PRES_CONTENT_DOC,
+ tsk_false
+ },
+
+ /*== org.openmobilealliance.conv-history ==*/{
+ tauid_oma_conv_history,
+ TXCAP_AUID_OMA_CONV_HISTORY_ID,
+ TXCAP_AUID_OMA_CONV_HISTORY_MIME_TYPE,
+ TXCAP_AUID_OMA_CONV_HISTORY_NS,
+ TXCAP_AUID_OMA_CONV_HISTORY_DOC,
+ tsk_false
+ },
+
+ /*== org.openmobilealliance.deferred-list ==*/{
+ tauid_oma_deferred_list,
+ TXCAP_AUID_OMA_DEFERRED_LIST_ID,
+ TXCAP_AUID_OMA_DEFERRED_LIST_MIME_TYPE,
+ TXCAP_AUID_OMA_DEFERRED_LIST_NS,
+ TXCAP_AUID_OMA_DEFERRED_LIST_DOC,
+ tsk_false
+ },
+
+ /*== org.openmobilealliance.group-usage-list ==*/{
+ tauid_oma_shared_groups,
+ TXCAP_AUID_OMA_SHARED_GROUPS_ID,
+ TXCAP_AUID_OMA_SHARED_GROUPS_MIME_TYPE,
+ TXCAP_AUID_OMA_SHARED_GROUPS_NS,
+ TXCAP_AUID_OMA_SHARED_GROUPS_DOC,
+ tsk_false
+ },
+};
+
+txcap_auid_t* txcap_auid_create(txcap_auid_type_t type, const char* id, const char* mime_type, const char* ns, const char* document_name, tsk_bool_t is_global)
+{
+ return tsk_object_new(txcap_auid_def_t, type, id, mime_type, ns, document_name, is_global);
+}
+
+/** Predicate function used to find an option by id.
+*/
+static int pred_find_auid_by_id(const tsk_list_item_t *item, const void *id)
+{
+ if(item && item->data){
+ txcap_auid_t *auid = item->data;
+ return tsk_stricmp(auid->id, (const char*)id);
+ }
+ return -1;
+}
+
+
+
+/** Initialze the list of auids with default values from __txcap_auids
+* auids must be null;
+*/
+int txcap_auids_init(txcap_auids_L_t** auids)
+{
+ size_t i;
+ size_t count;
+ if(!auids){
+ TSK_DEBUG_ERROR("invalid parameter.");
+ return -1;
+ }
+ else if(*auids){
+ TSK_DEBUG_WARN("auids already initialized.");
+ }
+ else{
+ *auids = tsk_list_create();
+ }
+
+ count = sizeof(__txcap_auids)/sizeof(auid_t);
+ for(i = 0; i<count; i++){
+ txcap_auid_t* auid = txcap_auid_create(__txcap_auids[i].type,
+ __txcap_auids[i].id,
+ __txcap_auids[i].mime_type,
+ __txcap_auids[i].ns,
+ __txcap_auids[i].document_name,
+ __txcap_auids[i].global);
+ tsk_list_push_back_data(*auids, (void**)&auid);
+ }
+
+ return 0;
+}
+
+/**
+* Registers a new AUID. If the AUID already exist (case-insensitive comparison on the id),
+* then it will be updated with the new supplied values.
+* @param auids The destination list.
+* @param id The id of the new AUID to add (e.g. xcap-caps).
+* @param mime_type The MIME-Type of the new AUID to add (e.g. application/xcap-caps+xml).
+* @param ns The Namespace of the new AUID to add (e.g. urn:ietf:params:xml:ns:xcap-caps).
+* @param document_name The name of the new AUID to add (e.g. index).
+* @param is_global Indicates whether the AUID scope is global or not (user).
+* @retval Zero if succeed and non-zero error code otherwise.
+*/
+int txcap_auid_register(txcap_auids_L_t* auids, const char* id, const char* mime_type, const char* ns, const char* document_name, tsk_bool_t is_global)
+{
+ const tsk_list_item_t* item;
+ int ret = -1;
+
+ if(!auids || !id){
+ return -1;
+ }
+
+ if((item = tsk_list_find_item_by_pred(auids, pred_find_auid_by_id, id))){
+ tsk_strupdate(&((txcap_auid_t*)item->data)->mime_type, mime_type);
+ tsk_strupdate(&((txcap_auid_t*)item->data)->ns, ns);
+ tsk_strupdate(&((txcap_auid_t*)item->data)->document_name, document_name);
+ ((txcap_auid_t*)item->data)->global = is_global;
+ ret = 0;
+ }
+ else{
+ txcap_auid_t* auid;
+ if((auid = txcap_auid_create(tauid_dummy, id, mime_type, ns, document_name, is_global))){
+ tsk_list_push_back_data(auids, (void**)&auid);
+ ret = 0;
+ }else{
+ ret = -2;
+ }
+ }
+
+ return ret;
+}
+
+/**
+* Finds an AUID by id (case-insensitive).
+* @param auids List of AUIDs from which to find the AUID.
+* @param id The @a id of the AUID to find.
+* @retval An AUID with the matching id or null if does not exist.
+* It's up to you to free the returned object.
+*/
+txcap_auid_t* txcap_auid_get_by_id(txcap_auids_L_t* auids, const char* id)
+{
+ //const txcap_auid_t* ret = tsk_null;
+ const tsk_list_item_t* item;
+
+ if(!auids){
+ return tsk_null;
+ }
+
+ if((item = tsk_list_find_item_by_pred(auids, pred_find_auid_by_id, id))){
+ return tsk_object_ref((void*)item->data);
+ }
+ else{
+ return tsk_null;
+ }
+
+}
+
+//=================================================================================================
+// AUID object definition
+//
+static tsk_object_t* txcap_auid_ctor(tsk_object_t * self, va_list * app)
+{
+ txcap_auid_t *auid = self;
+ if(auid){
+ auid->type = va_arg(*app, txcap_auid_type_t);
+ auid->id = tsk_strdup( va_arg(*app, const char*) );
+ auid->mime_type = tsk_strdup( va_arg(*app, const char*) );
+ auid->ns = tsk_strdup( va_arg(*app, const char*) );
+ auid->document_name = tsk_strdup( va_arg(*app, const char*) );
+ auid->global = va_arg(*app, tsk_bool_t);
+ }
+ return self;
+}
+
+static tsk_object_t* txcap_auid_dtor(tsk_object_t * self)
+{
+ txcap_auid_t *auid = self;
+ if(auid){
+ TSK_FREE(auid->id);
+ TSK_FREE(auid->mime_type);
+ TSK_FREE(auid->ns);
+ TSK_FREE(auid->document_name);
+ }
+
+ return self;
+}
+
+static int txcap_auid_cmp(const tsk_object_t *_a1, const tsk_object_t *_a2)
+{
+ const txcap_auid_t *a1 = _a1;
+ const txcap_auid_t *a2 = _a2;
+
+ if(a1 && a2){
+ return tsk_stricmp(a1->id, a2->id);
+ }
+ else{
+ return -1;
+ }
+}
+
+static const tsk_object_def_t txcap_auid_def_s =
+{
+ sizeof(txcap_auid_t),
+ txcap_auid_ctor,
+ txcap_auid_dtor,
+ txcap_auid_cmp,
+};
+const tsk_object_def_t *txcap_auid_def_t = &txcap_auid_def_s;
+
diff --git a/tinyXCAP/src/txcap_document.c b/tinyXCAP/src/txcap_document.c
new file mode 100644
index 0000000..b212e08
--- /dev/null
+++ b/tinyXCAP/src/txcap_document.c
@@ -0,0 +1,137 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_document.c
+ * @brief XCAP documents.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "tinyxcap/txcap_document.h"
+
+#include "tinyxcap/txcap_auid.h"
+
+/**@ingroup txcap_selector_group
+* Create a custom XCAP document selector URI as per <a href="http://tools.ietf.org/html/rfc4825#section-6.2">RFC 4825 subclause 6.2</a>.
+* @param stack The XCAP stack from which to load the user's preference (xcap-root, AUIDs, XUI, name of the document, ...).
+* Should be created using @ref txcap_stack_create().
+* @param auid_id The Application Unique ID. Unique identifier within the namespace of application unique IDs created by this specification (RFC 4825)
+* that differentiates XCAP resources accessed by one application from XCAP resources accessed by another.
+* For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* @retval The HTTP/HTTPS URI containing the XCAP root and document selector, resulting in the selection of a specific document. As a
+* result, performing a GET against the document URI would retrieve the document.
+* If supplied parameters are not valid this method will return NULL.
+* You must free the returned string.
+*
+* @code
+* // resource-lists document
+* char* urlstring;
+* if((urlstring = txcap_selector_get_document(stack, "resource-lists"))){
+* TSK_FREE(urlstring);
+* }
+* @endcode
+*
+* @code
+* // xcap-caps document
+* char* urlstring;
+* if((urlstring = txcap_selector_get_document(stack, "xcap-caps"))){
+* TSK_FREE(urlstring);
+* }
+* @endcode
+*
+* @sa @ref txcap_selector_get_document_2<br>@ref txcap_selector_get_url
+*/
+char* txcap_selector_get_document(const txcap_stack_handle_t* stack, const char* auid_id)
+{
+ char* ret = tsk_null;
+ txcap_auid_t* auid;
+
+ const txcap_stack_t* xcap_stack = stack;
+ if(xcap_stack && xcap_stack->auids && auid_id){
+ if((auid = txcap_auid_get_by_id(xcap_stack->auids, auid_id))){
+ ret = txcap_selector_get_document_2(xcap_stack->xcap_root, auid->id, auid->global? tsk_null: xcap_stack->xui, auid->document_name);
+ TSK_OBJECT_SAFE_FREE(auid);
+ }
+ else{
+ TSK_DEBUG_ERROR("Fail to find AUID with id %s.", auid_id);
+ }
+ }
+ else{
+ TSK_DEBUG_ERROR("Invalid parameter.");
+ }
+ return ret;
+}
+
+/**@ingroup txcap_selector_group
+* Create a custom XCAP document selector URI as per <a href="http://tools.ietf.org/html/rfc4825#section-6.2">RFC 4825 subclause 6.2</a>.
+* @param xcap_root The XCAP Root URI (valid HTTP/HTTPS URL). A context that contains all the documents across all
+* application usages and users that are managed by the server. For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* @param auid_id The Application Unique ID. Unique identifier within the namespace of application unique IDs created by this specification (RFC 4825)
+* that differentiates XCAP resources accessed by one application from XCAP resources accessed by another.
+* For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* @param xui The XCAP User Identifier. The XUI is a string, valid as a path element in an HTTP URI, that is associated with each user served
+* by the XCAP server. For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* For global document, this parameter should be NULL or equal to "global".
+* @param doc_name The name of the document (e.g. index).
+* @retval The HTTP/HTTPS URI containing the XCAP root and document selector, resulting in the selection of a specific document. As a
+ result, performing a GET against the document URI would retrieve the document.
+* If supplied parameters are not valid this method will return NULL.
+* You must free the returned string.
+*
+* @code
+* // resource-lists document
+* char* urlstring;
+* if((urlstring = txcap_selector_get_document("http://doubango.org:8080/services", "resource-lists", "sip:bob@doubango.org", "index"))){
+* TSK_FREE(urlstring);
+* }
+* @endcode
+*
+* @code
+* // xcap-caps document
+* char* urlstring;
+* if((urlstring = txcap_selector_get_document("http://doubango.org:8080/services", "xcap-caps", "global", "index"))){
+* TSK_FREE(urlstring);
+* }
+* @endcode
+*
+* @sa @ref txcap_selector_get_document<br>@ref txcap_selector_get_url
+*/
+char* txcap_selector_get_document_2(const char* xcap_root, const char* auid_id, const char* xui, const char* doc_name)
+{
+ char* ret = tsk_null;
+
+ if(!xcap_root || !auid_id || !doc_name){
+ TSK_DEBUG_ERROR("Invalid parameter");
+ return tsk_null;
+ }
+
+ if(!xui || tsk_striequals("global", xui)){
+ /* xdm-root/auid-name/global/doc-name */
+ tsk_sprintf(&ret, "%s/%s/global/%s", xcap_root, auid_id, doc_name);
+ }
+ else{
+ /* xdm-root/auid-name/users/xui/doc-name */
+ tsk_sprintf(&ret, "%s/%s/users/%s/%s", xcap_root, auid_id, xui, doc_name);
+ }
+
+ return ret;
+} \ No newline at end of file
diff --git a/tinyXCAP/src/txcap_node.c b/tinyXCAP/src/txcap_node.c
new file mode 100644
index 0000000..60e1aa2
--- /dev/null
+++ b/tinyXCAP/src/txcap_node.c
@@ -0,0 +1,155 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_node.c
+ * @brief XCAP nodes.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "tinyxcap/txcap_node.h"
+
+#include "tsk_string.h"
+#include "tsk_buffer.h"
+#include "tsk_memory.h"
+#include "tsk_debug.h"
+
+#include <string.h> /* strlen() */
+
+/**@ingroup txcap_selector_group
+* Gets the Node Url.
+* @param auid_id The id of the AUID (e.g 'resource-lists').
+* @param ... Node selection steps. You must use @a TXCAP_SELECTOR_NODE_SET*() macros to set these steps.
+* The list of parameters must end with @ref TXCAP_SELECTOR_NODE_SET_NULL() even if there is no step.<br>
+* @retval The Url of the node (e.g. 'resource-lists/list[2]').
+*
+* @code
+char* node = txcap_selector_get_node("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", "sip:bob@example.com"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+
+ TSK_FREE(node);
+* @endcode
+*
+* @sa @ref txcap_selector_get_node_2<br>@ref txcap_selector_get_document<br> @ref txcap_selector_get_document_2<br>@ref txcap_selector_get_url
+*/
+char* txcap_selector_get_node(const char* auid_id, ...)
+{
+ char* ret = tsk_null;
+ va_list ap;
+
+ va_start(ap, auid_id);
+ ret = txcap_selector_get_node_2(auid_id, &ap);
+ va_end(ap);
+
+ return ret;
+}
+
+/**@ingroup txcap_selector_group
+* Gets the Node Url.
+* @param auid_id The id of the AUID (e.g 'resource-lists').
+* @param app Node selection steps. You must use @a TXCAP_SELECTOR_NODE_SET*() macros to set these steps.
+* The list of parameters must end with @ref TXCAP_SELECTOR_NODE_SET_NULL() even if there is no step.<br>
+* @retval The Url of the node (e.g. 'resource-lists/list[2]').
+*
+* @code
+* @endcode
+*
+* @sa @ref txcap_selector_get_node<br>@ref txcap_selector_get_document<br> @ref txcap_selector_get_document_2<br>@ref txcap_selector_get_url
+*/
+char* txcap_selector_get_node_2(const char* auid_id, va_list* app)
+{
+ char* ret = tsk_null;
+ char* namespace = tsk_null;
+ tsk_buffer_t* buffer = tsk_buffer_create_null();
+ txcap_selector_param_type_t step;
+
+ while((step = va_arg(*app, txcap_selector_param_type_t)) != xcapp_node_null){
+ switch(step){
+ case xcapp_node_name:
+ { /* (const char*)QNAME_STR */
+ const char* QNAME_STR = va_arg(*app, const char*);
+ if(tsk_buffer_append_2(buffer, "/%s", QNAME_STR)){
+ goto bail;
+ }
+ break;
+ }
+ case xcapp_node_pos:
+ { /* (const char*)QNAME_STR, (unsigned int)POS_UINT */
+ const char* QNAME_STR = va_arg(*app, const char*);
+ unsigned int POS_UINT = va_arg(*app, unsigned int);
+ tsk_buffer_append_2(buffer, "/%s%%5B%u%%5D",
+ QNAME_STR, POS_UINT);
+ break;
+ }
+ case xcapp_node_attribute:
+ { /* (const char*)QNAME_STR, (const char*)ATT_QNAME_STR, (const char*)ATT_VALUE_STR */
+ const char* QNAME_STR = va_arg(*app, const char*);
+ const char* ATT_QNAME_STR = va_arg(*app, const char*);
+ const char* ATT_VALUE_STR = va_arg(*app, const char*);
+ tsk_buffer_append_2(buffer, "/%s%%5B@%s=%%22%s%%22%%5D",
+ QNAME_STR, ATT_QNAME_STR, ATT_VALUE_STR);
+ break;
+ }
+ case xcapp_node_pos_n_attribute:
+ { /* (const char*)QNAME_STR, (unsigned int)POS_UINT, (const char*)ATT_QNAME_STR, (const char*)ATT_VALUE_STR */
+ const char* QNAME_STR = va_arg(*app, const char*);
+ unsigned int POS_UINT = va_arg(*app, unsigned int);
+ const char* ATT_QNAME_STR = va_arg(*app, const char*);
+ const char* ATT_VALUE_STR = va_arg(*app, const char*);
+ tsk_buffer_append_2(buffer, "/%s%%5B%u%%5D%%5B@%s=%%22%s%%22%%5D",
+ QNAME_STR, POS_UINT, ATT_QNAME_STR, ATT_VALUE_STR);
+ break;
+ }
+ case xcapp_node_namespace:
+ { /* (const char*)PREFIX_STR, (const char*)VALUE_STR */
+ const char* PREFIX_STR = va_arg(*app, const char*);
+ const char* VALUE_STR = va_arg(*app, const char*);
+ char* temp = tsk_null;
+ tsk_sprintf(&temp, "%sxmlns(%s=%%22%s%%22)",
+ namespace?"":"%3F",PREFIX_STR, VALUE_STR);
+ tsk_strcat(&namespace, temp);
+ TSK_FREE(temp);
+ break;
+ }
+ default:
+ {
+ TSK_DEBUG_ERROR("NOT SUPPORTED.");
+ goto bail;
+ }
+ } /* switch */
+ } /* while */
+
+ /* append the namespace */
+ if(namespace){
+ tsk_buffer_append(buffer, namespace, strlen(namespace));
+ TSK_FREE(namespace);
+ }
+
+bail:
+ if(TSK_BUFFER_DATA(buffer) && TSK_BUFFER_SIZE(buffer)){
+ ret = tsk_strndup(TSK_BUFFER_DATA(buffer), TSK_BUFFER_SIZE(buffer));
+ }
+ TSK_OBJECT_SAFE_FREE(buffer);
+ return ret;
+}
diff --git a/tinyXCAP/src/txcap_selector.c b/tinyXCAP/src/txcap_selector.c
new file mode 100644
index 0000000..9d336d7
--- /dev/null
+++ b/tinyXCAP/src/txcap_selector.c
@@ -0,0 +1,167 @@
+/*
+* Copyright (C) 2009-2010 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 txcap_selector.c
+ * @brief XCAP selector.
+ *
+ * @author Mamadou Diop <diopmamadou(at)doubango.org>
+ *
+ * @date Created: Sat Nov 8 16:54:58 2009 mdiop
+ */
+#include "tinyxcap/txcap_selector.h"
+
+#include "tinyxcap/txcap_document.h"
+#include "tinyxcap/txcap_node.h"
+
+/**@defgroup txcap_selector_group XCAP URL selector
+*/
+
+/** Internal function
+ */
+char* __txcap_selector_get_url(const txcap_stack_handle_t* stack, const char* auid_id, va_list* app)
+{
+ char* ret = tsk_null;
+ char* node = tsk_null;
+ if(!stack && !auid_id){
+ goto bail;
+ }
+
+ /* ==document== */
+ if(!(ret = txcap_selector_get_document(stack, auid_id))){
+ TSK_DEBUG_ERROR("Failed to compute XCAP document URL.");
+ goto bail;
+ }
+
+ /* ==node== */
+ if((node = txcap_selector_get_node_2(auid_id, app))){
+ /* append node root */
+ char* temp = tsk_null;
+ tsk_sprintf(&temp, "/~~/%s", auid_id);
+ tsk_strcat(&ret, temp);
+ /* append node */
+ tsk_strcat(&ret, node);
+ /* free */
+ TSK_FREE(temp);
+ TSK_FREE(node);
+ }
+
+bail:
+ return ret;
+}
+
+/** Internal function
+ */
+char* __txcap_selector_get_url_2(const char* xcap_root, const char* auid_id, const char* xui, const char* doc_name, va_list* app)
+{
+ char* ret = tsk_null;
+ char* node = tsk_null;
+ if(!xcap_root && !auid_id){
+ goto bail;
+ }
+
+ /* ==document== */
+ if(!(ret = txcap_selector_get_document_2(xcap_root, auid_id, xui, doc_name))){
+ TSK_DEBUG_ERROR("Failed to compute XCAP document URL.");
+ goto bail;
+ }
+
+ /* ==node== */
+ if((node = txcap_selector_get_node_2(auid_id, app))){
+ /* append node root */
+ char* temp = tsk_null;
+ tsk_sprintf(&temp, "/~~/%s", auid_id);
+ tsk_strcat(&ret, temp);
+ /* append node */
+ tsk_strcat(&ret, node);
+ /* free */
+ TSK_FREE(temp);
+ TSK_FREE(node);
+ }
+
+bail:
+ return ret;
+}
+
+/**@ingroup txcap_selector_group
+* Gets the full XCAP URL with both the document and node selector parts.
+* @param stack The XCAP stack from which to load the user's preference (xcap-root, AUIDs, XUI, name of the document, ...).
+* Should be created using @ref txcap_stack_create().
+* @param auid_id The Application Unique ID. Unique identifier within the namespace of application unique IDs created by this specification (RFC 4825)
+* that differentiates XCAP resources accessed by one application from XCAP resources accessed by another.
+* For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* @param ... Any @a TXCAP_SELECTOR_NODE_SET*() macros. MUST ends with @ref TXCAP_SELECTOR_NODE_SET_NULL().
+* @retval A well-formed (already escaped) HTTP/HTTPS URL which can be used as Request-Uri (e.g. GET, PUT or DELETE). As a
+* result, performing a GET against the return URL would retrieve a document, element or attribute.
+*
+* @code
+// Retrieve the entry with: uri='sip:bob@example.com' and list='rcs'
+// Expected node: /resource-lists/list[@name="rcs"]/entry[@uri="sip:bob@example.com"]
+char* urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", "sip:bob@example.com"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+TSK_DEBUG_INFO("%s\n", urlstring);
+TSK_FREE(urlstring);
+* @endcode
+*
+* @sa @ref txcap_selector_get_node<br>@ref txcap_selector_get_document<br> @ref txcap_selector_get_document_2
+*/
+char* txcap_selector_get_url(const txcap_stack_handle_t* stack, const char* auid_id, ...)
+{
+ char* ret;
+ va_list ap;
+
+ va_start(ap, auid_id);
+ ret = __txcap_selector_get_url(stack, auid_id, &ap);
+ va_end(ap);
+
+ return ret;
+}
+
+/**@ingroup txcap_selector_group
+* Gets the full XCAP URL with both the document and node selector parts.
+* @param xcap_root The XCAP Root URI (valid HTTP/HTTPS URL). A context that contains all the documents across all
+* application usages and users that are managed by the server. For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* @param auid_id The Application Unique ID. Unique identifier within the namespace of application unique IDs created by this specification (RFC 4825)
+* that differentiates XCAP resources accessed by one application from XCAP resources accessed by another.
+* For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* @param xui The XCAP User Identifier. The XUI is a string, valid as a path element in an HTTP URI, that is associated with each user served
+* by the XCAP server. For more information see <a href="http://tools.ietf.org/html/rfc4825#section-4">RFC 4825 subclause 4</a>.
+* For global document, this parameter should be NULL or equal to "global".
+* @param doc_name The name of the document (e.g. index).
+* @retval A well-formed HTTP/HTTPS URL which can be used as Request-Uri (e.g. GET, PUT or DELETE). As a
+* result, performing a GET against the return URL would retrieve a document, element or attribute.
+* @code
+* @endcode
+*
+* @sa @ref txcap_selector_get_url<br>@ref txcap_selector_get_node<br>@ref txcap_selector_get_document<br> @ref txcap_selector_get_document_2
+*/
+char* txcap_selector_get_url_2(const char* xcap_root, const char* auid_id, const char* xui, const char* doc_name, ...)
+{
+ char* ret;
+ va_list ap;
+
+ va_start(ap, doc_name);
+ ret = __txcap_selector_get_url_2(xcap_root, auid_id, xui, doc_name, &ap);
+ va_end(ap);
+
+ return ret;
+}
diff --git a/tinyXCAP/test/droid-makefile b/tinyXCAP/test/droid-makefile
new file mode 100644
index 0000000..8857f6d
--- /dev/null
+++ b/tinyXCAP/test/droid-makefile
@@ -0,0 +1,28 @@
+APP := test
+
+CFLAGS := $(CFLAGS_COMMON) -I../include -I../../tinySAK/src -I../../tinyNET/src -I../../tinyHTTP/include
+LDFLAGS := $(LDFLAGS_COMMON) -Wl,-Bsymbolic,--whole-archive -l$(PROJECT) -ltinySAK -ltinyNET -ltinyHTTP -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/tinyXCAP/test/stdafx.c b/tinyXCAP/test/stdafx.c
new file mode 100644
index 0000000..df71e1b
--- /dev/null
+++ b/tinyXCAP/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 Lesser 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/tinyXCAP/test/stdafx.h b/tinyXCAP/test/stdafx.h
new file mode 100644
index 0000000..b73850f
--- /dev/null
+++ b/tinyXCAP/test/stdafx.h
@@ -0,0 +1,38 @@
+/*
+* 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 Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with DOUBANGO.
+*
+*/
+#ifndef TEST_TINYXCAP_STDAFX_H
+#define TEST_TINYXCAP_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
+
+#endif /* TEST_TINYXCAP_STDAFX_H */
diff --git a/tinyXCAP/test/targetver.h b/tinyXCAP/test/targetver.h
new file mode 100644
index 0000000..574245d
--- /dev/null
+++ b/tinyXCAP/test/targetver.h
@@ -0,0 +1,18 @@
+#ifndef _TEST_TINYXCAP_VER
+#define _TEST_TINYXCAP_VER
+
+#if (defined(_WIN32) || defined(WIN32) || defined(_WIN32_WCE)) && !defined(__SYMBIAN32__)
+// 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 0x0600 // Change this to the appropriate value to target other versions of Windows.
+#endif
+
+#endif
+
+#endif /*_TEST_TINYXCAP_VER*/
diff --git a/tinyXCAP/test/test.c b/tinyXCAP/test/test.c
new file mode 100644
index 0000000..8735a29
--- /dev/null
+++ b/tinyXCAP/test/test.c
@@ -0,0 +1,79 @@
+/*
+* 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 Lesser 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 "tinyxcap.h"
+
+#define LOOP 1
+
+#define RUN_TEST_ALL 0
+#define RUN_TEST_SELECTOR 0
+#define RUN_TEST_STACK 1
+
+
+#define XUI "sip:mamadou@micromethod.com"
+#define PASSWORD "mysecret"
+#define XCAP_ROOT "http://192.168.0.10:8080/services"
+
+
+#if RUN_TEST_SELECTOR || RUN_TEST_ALL
+#include "test_selector.h"
+#endif
+
+#if RUN_TEST_STACK || RUN_TEST_ALL
+#include "test_stack.h"
+#endif
+
+
+#ifdef _WIN32_WCE
+int _tmain(int argc, _TCHAR* argv[])
+#else
+int main()
+#endif
+{
+ tnet_startup();
+
+ /* Print copyright information */
+ printf("Doubango Project\nCopyright (C) 2009 Mamadou Diop \n\n");
+
+#if LOOP
+ while(1)
+#endif
+ {
+ /* XCAP document/node selector */
+#if RUN_TEST_SELECTOR || RUN_TEST_ALL
+ test_selector();
+#endif
+
+ /* XCAP stack */
+#if RUN_TEST_STACK || RUN_TEST_ALL
+ test_stack();
+#endif
+
+
+ }
+
+ tnet_cleanup();
+
+ return 0;
+}
+
diff --git a/tinyXCAP/test/test.vcproj b/tinyXCAP/test/test.vcproj
new file mode 100644
index 0000000..ff447c6
--- /dev/null
+++ b/tinyXCAP/test/test.vcproj
@@ -0,0 +1,387 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="test"
+ ProjectGUID="{2A476CAA-BA45-4379-AFEC-088645840527}"
+ RootNamespace="test"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="131072"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ <Platform
+ Name="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
+ />
+ </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;..\..\tinyHTTP\include;..\..\tinyXCAP\include;..\..\tinyNET\src;..\..\tinySAK\src;..\..\thirdparties\win32\include\smc"
+ PreprocessorDefinitions="DEBUG_LEVEL=DEBUG_LEVEL_INFO;WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="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)\tinyXCAP.lib $(OutDir)\tinyHTTP.lib $(OutDir)\tinySAK.lib $(OutDir)\tinyNET.lib"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ 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="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
+ OutputDirectory="&quot;$(SolutionDir)$(ConfigurationName)\wce&quot;"
+ IntermediateDirectory="&quot;$(SolutionDir)$(ConfigurationName)&quot;"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ TargetEnvironment="1"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ ExecutionBucket="7"
+ AdditionalIncludeDirectories="&quot;$(DOUBANGO_HOME)\thirdparties\wince\include&quot;;&quot;$(DOUBANGO_HOME)\tinyXCAP\src&quot;;&quot;$(DOUBANGO_HOME)\tinySAK\src&quot;;&quot;$(DOUBANGO_HOME)\thirdparties\wince\include\smc&quot;;&quot;$(DOUBANGO_HOME)\thirdparties\wince\include\wcecompat&quot;"
+ PreprocessorDefinitions="DEBUG_LEVEL=DEBUG_LEVEL_INFO;_CONSOLE;_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);WINCE;DEBUG;_WINDOWS;_USRDLL;$(ARCHFAM);$(_ARCHFAM_)"
+ MinimalRebuild="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ WarnAsError="true"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="$(OutDir)\tinyXCAP.lib $(OutDir)\tinySAK.lib"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="8"
+ EntryPointSymbol="mainWCRTStartup"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ TargetMachine="0"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCCodeSignTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ <DeploymentTool
+ ForceDirty="-1"
+ RemoteDirectory=""
+ RegisterOutput="0"
+ AdditionalFiles=""
+ />
+ <DebuggerTool
+ />
+ </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"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ 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|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
+ OutputDirectory="&quot;$(SolutionDir)$(ConfigurationName)\wce&quot;"
+ IntermediateDirectory="&quot;$(SolutionDir)$(ConfigurationName)&quot;"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ TargetEnvironment="1"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ ExecutionBucket="7"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="8"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ RandomizedBaseAddress="1"
+ DataExecutionPrevention="0"
+ TargetMachine="0"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCCodeSignTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ <DeploymentTool
+ ForceDirty="-1"
+ RemoteDirectory=""
+ RegisterOutput="0"
+ AdditionalFiles=""
+ />
+ <DebuggerTool
+ />
+ </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=".\stdafx.c"
+ >
+ </File>
+ <File
+ RelativePath=".\test.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\stdafx.h"
+ >
+ </File>
+ <File
+ RelativePath=".\targetver.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="tests"
+ >
+ <File
+ RelativePath=".\test_selector.h"
+ >
+ </File>
+ <File
+ RelativePath=".\test_stack.h"
+ >
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/tinyXCAP/test/test_selector.h b/tinyXCAP/test/test_selector.h
new file mode 100644
index 0000000..74f4774
--- /dev/null
+++ b/tinyXCAP/test/test_selector.h
@@ -0,0 +1,155 @@
+/*
+* 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 Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with DOUBANGO.
+*
+*/
+#ifndef _TEST_SELECTOR_H
+#define _TEST_SELECTOR_H
+
+void test_selector()
+{
+ txcap_stack_handle_t* stack = tsk_null;
+ char* urlstring;
+
+ stack = txcap_stack_create(tsk_null, XUI, PASSWORD, XCAP_ROOT,
+ TXCAP_STACK_SET_NULL());
+
+ /* add user auids */
+ txcap_stack_set(stack,
+ TXCAP_STACK_SET_AUID("xcap-caps2", "application/xcap-caps2+xml", "urn:ietf:params:xml:ns:xcap-caps2", "index2", tsk_true),
+ TXCAP_STACK_SET_AUID("resource-lists2", "application/resource-lists+xml2", "urn:ietf:params:xml:ns:resource-lists2", "index2", tsk_false),
+
+ TXCAP_STACK_SET_NULL()); /* mandatory */
+
+ /* IETF server capabilities */
+ urlstring = txcap_selector_get_url(stack, "xcap-caps",
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("Document('xcap-caps') = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* My custom xcap-caps */
+ urlstring = txcap_selector_get_url(stack, "xcap-caps2",
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("Document('xcap-caps2') = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* IETF resource-lists */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("Document('resource-lists') = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* My custom resource-lists */
+ urlstring = txcap_selector_get_url(stack, "resource-lists2",
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("Document('resource-lists2') = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Full custom resource-lists */
+ urlstring = txcap_selector_get_document_2(XCAP_ROOT, "resource-lists3", XUI, "index3");
+ TSK_DEBUG_INFO("Document('resource-lists2') = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve 'rcs' list
+ * Expected node: /resource-lists/list[@name="rcs"]
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("'rcs' list = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve the 2nd list
+ * Expected node: /resource-lists/list[2]
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_POS("list", 2),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("2nd list = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve the 4th list (wildcard)
+ * Expected node: /resource-lists/*[4]
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_POS("*", 4),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("4th list (wildcard) = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve the entry with: uri='sip:bob@example.com' and list='rcs'
+ * Expected node: /resource-lists/list[@name="rcs"]/entry[@uri="sip:bob@example.com"]
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("By uri and list = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve bob's display-name
+ * Expected node: /resource-lists/list[@name="rcs"]/entry[@uri="sip:bob@example.com"]/display-name
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("bob's display-name = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve the display-name of the fisrt entry from the 'rcs' list
+ * Expected node: /resource-lists/list[@name="rcs"]/entry[1]/display-name
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS("entry", 1),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("display-name of 1st entry = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Retrieve the entry with: uri='sip:bob@example.com' from position 23 from 'rcs' list
+ * Expected node: /resource-lists/list[@name="rcs"]/entry[23][@uri="sip:bob@example.com"]
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE("entry", 23, "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("bob at pos 23 from 'rcs' = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+ /* Namespace test
+ * Expected node: /foo/a:bar/b:baz?xmlns(a=urn:test:namespace1-uri)xmlns(b=urn:test:namespace2-uri)
+ */
+ urlstring = txcap_selector_get_url(stack, "resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NAME("foo"),
+ TXCAP_SELECTOR_NODE_SET_NAME("a:bar"),
+ TXCAP_SELECTOR_NODE_SET_NAME("b:baz"),
+ TXCAP_SELECTOR_NODE_SET_NAMESPACE("a", "urn:namespace1-uri"),
+ TXCAP_SELECTOR_NODE_SET_NAMESPACE("b", "urn:namespace2-uri"),
+ TXCAP_SELECTOR_NODE_SET_NULL());
+ TSK_DEBUG_INFO("Namespace test = %s\n", urlstring);
+ TSK_FREE(urlstring);
+
+
+ TSK_OBJECT_SAFE_FREE(stack);
+}
+
+#endif /* _TEST_SELECTOR_H */
diff --git a/tinyXCAP/test/test_stack.h b/tinyXCAP/test/test_stack.h
new file mode 100644
index 0000000..5d4eb1f
--- /dev/null
+++ b/tinyXCAP/test/test_stack.h
@@ -0,0 +1,323 @@
+/*
+* 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 Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with DOUBANGO.
+*
+*/
+#ifndef _TEST_STACK_H
+#define _TEST_STACK_H
+
+#define PAYLOAD_LIST "<list name=\"newlist\" xmlns=\"urn:ietf:params:xml:ns:resource-lists\">" \
+ "<display-name>newlist</display-name>" \
+ "</list>"
+#define PAYLOAD_ENTRY "<entry uri=\""XUI"\" xmlns=\"urn:ietf:params:xml:ns:resource-lists\">" \
+ "<display-name>"XUI"</display-name>" \
+ "</entry>"
+
+int test_stack_callback(const thttp_event_t *httpevent)
+{
+ switch(httpevent->type){
+ case thttp_event_message: /* New HTTP message */
+ {
+ if(THTTP_MESSAGE_IS_RESPONSE(httpevent->message)){
+ const thttp_header_ETag_t* etag;
+ TSK_DEBUG_INFO("=== %d ==> %s", THTTP_RESPONSE_CODE(httpevent->message), THTTP_MESSAGE_CONTENT(httpevent->message));
+ // You can use
+ if((etag = (const thttp_header_ETag_t*)thttp_message_get_header(httpevent->message, thttp_htype_ETag))){
+ TSK_DEBUG_INFO("Etag=%s", etag->value);
+ }
+ }
+ else{
+
+ }
+ break;
+ }
+
+ case thttp_event_auth_failed:
+ {
+ TSK_DEBUG_INFO("=== auth failed.");
+ break;
+ }
+
+ case thttp_event_closed: /* HTTP connection closed (informational) */
+ {
+ TSK_DEBUG_INFO("=== closed.");
+ break;
+ }
+
+ default:
+ {
+ break;
+ }
+ }
+ return 0;
+}
+
+void test_stack()
+{
+ txcap_stack_handle_t* stack = tsk_null;
+ int ret;
+
+ stack = txcap_stack_create(test_stack_callback, XUI, PASSWORD, XCAP_ROOT,
+#if defined(ANDROID)
+ TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_LOCAL_IP, "10.0.2.15"),
+#endif
+
+ // stack-level options
+ TXCAP_STACK_SET_OPTION(TXCAP_STACK_OPTION_TIMEOUT, "6000"),
+
+ // stack-level headers
+ TXCAP_STACK_SET_HEADER("Connection", "Keep-Alive"),
+ TXCAP_STACK_SET_HEADER("User-Agent", "XDM-client/OMA1.1"),
+ TXCAP_STACK_SET_HEADER("X-3GPP-Intended-Identity", XUI),
+
+ TXCAP_STACK_SET_NULL());
+
+ if((ret = txcap_stack_start(stack))){
+ goto bail;
+ }
+
+ /* add user auids */
+ txcap_stack_set(stack,
+ // add new AUIDs
+ TXCAP_STACK_SET_AUID("xcap-caps2", "application/xcap-caps2+xml", "urn:ietf:params:xml:ns:xcap-caps2", "index2", tsk_true),
+ TXCAP_STACK_SET_AUID("resource-lists2", "application/resource-lists+xml2", "urn:ietf:params:xml:ns:resource-lists2", "index2", tsk_false),
+
+ TXCAP_STACK_SET_NULL()); /* mandatory */
+
+ //== get xcap-caps document
+ ret = txcap_action_fetch_document(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("xcap-caps",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+/*
+ //== get resource-lists document
+ ret = txcap_action_fetch_document(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ //action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== get 'rcs' list
+ ret = txcap_action_fetch_element(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Retrieve the 2nd list
+ ret = txcap_action_fetch_element(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_POS("list", 2),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Retrieve the 4th list (wildcard)
+ ret = txcap_action_fetch_element(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_POS("*", 4),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Retrieve the entry with: uri=XUI and list='rcs'
+ ret = txcap_action_fetch_element(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Retrieve XUI's display-name ==> 404
+ ret = txcap_action_fetch_attribute(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Retrieve the display-name of the fisrt entry from the 'rcs' list ==> 404
+ ret = txcap_action_fetch_attribute(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS("entry", 1),
+ TXCAP_SELECTOR_NODE_SET_NAME("display-name"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Retrieve the entry with: uri='XUI' from position 1 from 'rcs' list
+ ret = txcap_action_fetch_element(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ // headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // action-level selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "rcs"),
+ TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE("entry", 1, "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+
+ getchar();
+
+ //== Add newlist
+ ret = txcap_action_create_element(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD_LIST, strlen(PAYLOAD_LIST)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+ getchar();
+
+ //== Add entry
+ ret = txcap_action_create_element(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD_ENTRY, strlen(PAYLOAD_ENTRY)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+ getchar();
+
+ //== Add entry using dummy URI
+ ret = txcap_action_create_element(stack,
+ // dummy uri
+ TXCAP_ACTION_SET_REQUEST_URI("http://doubango.org/services/dummy/"XUI),
+ // payload
+ TXCAP_ACTION_SET_PAYLOAD(PAYLOAD_ENTRY, strlen(PAYLOAD_ENTRY)),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+ getchar();
+
+ //== Delete entry
+ ret = txcap_action_delete_element(stack,
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("resource-lists",
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("list", "name", "newlist"),
+ TXCAP_SELECTOR_NODE_SET_ATTRIBUTE("entry", "uri", XUI),
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+ getchar();
+
+
+
+
+ ret = txcap_action_fetch_document(stack,
+ // action-level options
+ TXCAP_ACTION_SET_OPTION(TXCAP_ACTION_OPTION_TIMEOUT, "6000"),
+ //action-level headers
+ TXCAP_ACTION_SET_HEADER("Pragma", "No-Cache"),
+ // selector
+ TXCAP_ACTION_SET_SELECTOR("org.openmobilealliance.pres-content",
+ TXCAP_SELECTOR_NODE_SET_NULL()),
+ // ends parameters
+ TXCAP_ACTION_SET_NULL()
+ );
+ */
+bail:
+ getchar();
+
+
+ TSK_OBJECT_SAFE_FREE(stack);
+}
+
+#endif /* _TEST_STACK_H */
diff --git a/tinyXCAP/tinyXCAP.sln b/tinyXCAP/tinyXCAP.sln
new file mode 100644
index 0000000..e096b28
--- /dev/null
+++ b/tinyXCAP/tinyXCAP.sln
@@ -0,0 +1,72 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyXCAP", "tinyXCAP.vcproj", "{570CF33D-E65F-448F-8AC2-F9AE2F23152F}"
+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", "{2A476CAA-BA45-4379-AFEC-088645840527}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyHTTP", "..\tinyHTTP\tinyHTTP.vcproj", "{B3E45009-C7C3-4090-837C-2D30C9058443}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyNET", "..\tinyNET\tinyNET.vcproj", "{7522A458-92F4-4259-B906-E84C2A65D9F1}"
+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
+ {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Win32.Build.0 = Debug|Win32
+ {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32
+ {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Win32.ActiveCfg = Release|Win32
+ {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Win32.Build.0 = Release|Win32
+ {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.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)
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Debug|Win32.ActiveCfg = Debug|Win32
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Debug|Win32.Build.0 = Debug|Win32
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Release|Win32.ActiveCfg = Release|Win32
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Release|Win32.Build.0 = Release|Win32
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {2A476CAA-BA45-4379-AFEC-088645840527}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.Build.0 = Debug|Win32
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.ActiveCfg = Release|Win32
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.Build.0 = Release|Win32
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.ActiveCfg = Debug|Win32
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.Build.0 = Debug|Win32
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.ActiveCfg = Release|Win32
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.Build.0 = Release|Win32
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/tinyXCAP/tinyXCAP.tag b/tinyXCAP/tinyXCAP.tag
new file mode 100644
index 0000000..6e8222b
--- /dev/null
+++ b/tinyXCAP/tinyXCAP.tag
@@ -0,0 +1,1482 @@
+<?xml version='1.0' encoding='ISO-8859-1' standalone='yes' ?>
+<tagfile>
+ <compound kind="page">
+ <name>index</name>
+ <title>tinyXCAP API Overview</title>
+ <filename>index</filename>
+ </compound>
+ <compound kind="file">
+ <name>tinyxcap.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/</path>
+ <filename>tinyxcap_8h</filename>
+ <includes id="txcap_8h" name="txcap.h" local="yes" imported="no">txcap.h</includes>
+ <includes id="txcap__selector_8h" name="txcap_selector.h" local="yes" imported="no">tinyXCAP/txcap_selector.h</includes>
+ <includes id="txcap__document_8h" name="txcap_document.h" local="yes" imported="no">tinyXCAP/txcap_document.h</includes>
+ <includes id="txcap__node_8h" name="txcap_node.h" local="yes" imported="no">tinyXCAP/txcap_node.h</includes>
+ <includes id="txcap__action_8h" name="txcap_action.h" local="yes" imported="no">tinyXCAP/txcap_action.h</includes>
+ </compound>
+ <compound kind="file">
+ <name>txcap_action.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/tinyXCAP/</path>
+ <filename>txcap__action_8h</filename>
+ <includes id="tinyxcap__config_8h" name="tinyxcap_config.h" local="yes" imported="no">tinyXCAP_config.h</includes>
+ <includes id="txcap_8h" name="txcap.h" local="yes" imported="no">txcap.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_OPTION</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga7913c72583d400da51dea9f46bed553b</anchor>
+ <arglist>(ID_INT, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_HEADER</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>gaf422679f169f916bdf2c786e4171622e</anchor>
+ <arglist>(NAME_STR, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_PAYLOAD</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga566653198a295d9d9854c35974c91e1a</anchor>
+ <arglist>(PAY_PTR, PAY_SIZE)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_SELECTOR</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga599c6c0389addf0e0d9a14bdbcef017e</anchor>
+ <arglist>(AUID_STR,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_REQUEST_URI</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga17133536f59ded5dadd169d1673dd689</anchor>
+ <arglist>(URI_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_NULL</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga0f062a39307c1230628d37b0f7476346</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_create_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga3d7b7194078364d1c43c9fa5f09ca40e</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_create_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga36013b774b75655eeaea1e859e33b502</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_create_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga0cecb0adbc797545bc6cc28e9d4ce5a3</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_replace_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga375d103ff56afadc8032b1f6b38ab249</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_replace_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga7eb8bddb5492761b82380ab0d1233c9a</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_replace_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga4d7f98bd61b8d241ba2b9c83dc009092</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_fetch_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga0966cf2d592efecd10a8bd2d2b023c58</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_fetch_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga6a4b9b3f428324216b672749cbdb0848</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_fetch_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga39870b7b6921d35742dcc98646d4b7a9</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_delete_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga362281093747e882ca8ba5bcb2e6cdcb</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_delete_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga19f261014954506058725a05d1e9b017</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_delete_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga6e4d15799c832261e9c41031c025e6cd</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TXCAP_BEGIN_DECLS enum txcap_action_type_e</type>
+ <name>txcap_action_type_t</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>ab48d23353e6f7381766c3946b2de3270</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum txcap_action_target_e</type>
+ <name>txcap_action_target_t</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>ae3f5f7f277fdca11b03434d38e07fd97</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum txcap_action_option_e</type>
+ <name>txcap_action_option_t</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>ae404e3c23783c1135c34611dd1aaae5d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum txcap_action_param_type_e</type>
+ <name>txcap_action_param_type_t</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1b16090f879765af9a99da1913630692</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_action_type_e</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a869c3d8e91c06dca9ee38627c1e6a061</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atp_create</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a869c3d8e91c06dca9ee38627c1e6a061a72d2b146a899620bd26d67a6c6aa2f1e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atp_replace</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a869c3d8e91c06dca9ee38627c1e6a061ae45e64e30950b7f798928712913ff3a7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atp_fetch</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a869c3d8e91c06dca9ee38627c1e6a061a057a25f2090691fab0b292a864677d0a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atp_delete</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a869c3d8e91c06dca9ee38627c1e6a061ad129ae80b7fefb6e2ffc58f5e4cef131</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_action_target_e</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>add5f633a6cef7c7fc4fb8965e4b2cf80</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atg_element</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>add5f633a6cef7c7fc4fb8965e4b2cf80a8da7d39587d683dc05cda3fc3792f1b1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atg_document</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>add5f633a6cef7c7fc4fb8965e4b2cf80a8a707aef10e6e876a14f2000d3ef0258</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_atg_attribute</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>add5f633a6cef7c7fc4fb8965e4b2cf80a3d059d0d3e3853ecb520655d09cecc99</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_action_option_e</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a126e90bef3485fff033d7b88dfd99e2e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_ACTION_OPTION_TIMEOUT</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a126e90bef3485fff033d7b88dfd99e2ea70ea20575574fbf26d9951dffe22cbf5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_action_param_type_e</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_apt_null</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64a47c417669f41161d365286f7e45d25de</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_apt_option</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64a10c263268793862616555b9c38614ce5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_apt_header</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64a2f7ddd46fb8ffc93b6120df12629d911</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_apt_payload</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64a5a5fba1f015e425ed37e9866e70c3418</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_apt_selector</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64a37f1f75361f13404e9a61eb79aa7e5b1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>txcap_apt_urlstring</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a1633fe947eb619c2ba67afd392eb9e64a12a850282b584ee5e144248546cc0f4d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API int</type>
+ <name>txcap_action_perform</name>
+ <anchorfile>txcap__action_8h.html</anchorfile>
+ <anchor>a655931ab014e9888031fb3aad8586081</anchor>
+ <arglist>(txcap_stack_handle_t *stack, txcap_action_type_t type, txcap_action_target_t target,...)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_auid.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/tinyXCAP/</path>
+ <filename>txcap__auid_8h</filename>
+ <includes id="tinyxcap__config_8h" name="tinyxcap_config.h" local="yes" imported="no">tinyXCAP_config.h</includes>
+ <class kind="struct">txcap_auid_s</class>
+ <member kind="typedef">
+ <type>TXCAP_BEGIN_DECLS enum txcap_auid_type_e</type>
+ <name>txcap_auid_type_t</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ac55e909f277ee04a3cd3025e083f1677</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct txcap_auid_s</type>
+ <name>txcap_auid_t</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>aee2bc25ba241afd2b3dc6eed47beb0d5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>tsk_list_t</type>
+ <name>txcap_auids_L_t</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>a8d38563121a3f7e851793a32ce676c47</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_auid_type_e</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_dummy</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7a83fbdc787144805954ee333730e38ccc</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_ietf_xcap_caps</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7a7a7ac0fa9baeae911c17307e883f41ed</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_ietf_resource_lists</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7aba2b3ecac6065390d403535140cacb68</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_ietf_rls_services</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7a38c4d8c903a4542e5013290f7b358551</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_ietf_pres_rules</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7a132c8ce10f982b0008d28290d702bb3b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_ietf_directory</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7a150d134a12d307e50d9a65f3c3bf13d4</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_oma_conv_history</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7afd81a6a8939d732945e00048e9a3791b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_oma_pres_rules</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7ae21c0cac19bc8240be43186b6132fe6a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_oma_directory</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7a085b33d7b7d1f557e13fbeb590b1996f</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_oma_deferred_list</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7ab46b2ecbe522026131f0a6399d8b428b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_oma_pres_content</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7ab60346a7c4d1577c5e372f7412d06524</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>tauid_oma_shared_groups</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ada31da1147a49bd5601065fa248e75c7ae54cb67102623d7b3651387f67a7ad86</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_auid_register</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>a07698ba0b25c8b167d2e6e8f48b559c0</anchor>
+ <arglist>(txcap_auids_L_t *auids, const char *id, const char *mime_type, const char *ns, const char *document_name, tsk_bool_t is_global)</arglist>
+ </member>
+ <member kind="function">
+ <type>txcap_auid_t *</type>
+ <name>txcap_auid_get_by_id</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>ad053aef245824c96128d24bc9750d41e</anchor>
+ <arglist>(txcap_auids_L_t *auids, const char *id)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_auids_init</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>a3cdcbe236d5444b5fdac8017a7963e46</anchor>
+ <arglist>(txcap_auids_L_t **auids)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYXCAP_GEXTERN const tsk_object_def_t *</type>
+ <name>txcap_auid_def_t</name>
+ <anchorfile>txcap__auid_8h.html</anchorfile>
+ <anchor>a18eb1bd014bb725bdf463e5b0c008fd5</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_document.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/tinyXCAP/</path>
+ <filename>txcap__document_8h</filename>
+ <includes id="tinyxcap__config_8h" name="tinyxcap_config.h" local="yes" imported="no">tinyXCAP_config.h</includes>
+ <includes id="txcap_8h" name="txcap.h" local="yes" imported="no">txcap.h</includes>
+ <member kind="function">
+ <type>TXCAP_BEGIN_DECLS TINYXCAP_API char *</type>
+ <name>txcap_selector_get_document</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga75307ec551003312807af27cc5b09da1</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API char *</type>
+ <name>txcap_selector_get_document_2</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gac0bc0eefb98384d7c31b6a828ace4389</anchor>
+ <arglist>(const char *xcap_root, const char *auid_id, const char *xui, const char *doc_name)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_node.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/tinyXCAP/</path>
+ <filename>txcap__node_8h</filename>
+ <includes id="tinyxcap__config_8h" name="tinyxcap_config.h" local="yes" imported="no">tinyXCAP_config.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_NAME</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga5160eb295db11e8557086fc42263e48f</anchor>
+ <arglist>(QNAME_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_POS</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga7ccf665a941bf545ee608f912877d3c6</anchor>
+ <arglist>(QNAME_STR, POS_UINT)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_ATTRIBUTE</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga1fbeb0d3296fde62814890dfaeb9c872</anchor>
+ <arglist>(QNAME_STR, ATT_QNAME_STR, ATT_VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga8e139963afdf60b0746c164d8ab0426c</anchor>
+ <arglist>(QNAME_STR, POS_UINT, ATT_QNAME_STR, ATT_VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_NAMESPACE</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gaa0afbb9dde8ceb5e441c3e09aa83af8d</anchor>
+ <arglist>(PREFIX_STR, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_NULL</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga84757d87777f1fe02533c1445b218f04</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TXCAP_BEGIN_DECLS enum txcap_selector_param_type_e</type>
+ <name>txcap_selector_param_type_t</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>ae02376f17a8e4c8531dc2b7b04301312</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_selector_param_type_e</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_node_null</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73ba9aaf9106b4a0778f7e8bfcf574ea71c0</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_node_name</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73ba8154a49d6b733938038617e81d30cf49</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_node_pos</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73ba7a43e7c458fe6d20945f935b0de3b1cc</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_node_attribute</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73ba73310258fe05cdb12e694f8c5248bca5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_node_pos_n_attribute</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73ba03a5dd7115e29ba09703bb30b3e97b02</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_node_namespace</name>
+ <anchorfile>txcap__node_8h.html</anchorfile>
+ <anchor>a3b2a79d6e26bbf71f002f0dcc5afa73bafc9543a00bf44f7ce80dc2dd184b103d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API char *</type>
+ <name>txcap_selector_get_node</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga1e2d23fa5fb817509b923f91400e63d7</anchor>
+ <arglist>(const char *auid_id,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API char *</type>
+ <name>txcap_selector_get_node_2</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga468ee48d2d553b8f56cbc62807239271</anchor>
+ <arglist>(const char *auid_id, va_list *app)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_selector.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/tinyXCAP/</path>
+ <filename>txcap__selector_8h</filename>
+ <includes id="tinyxcap__config_8h" name="tinyxcap_config.h" local="yes" imported="no">tinyXCAP_config.h</includes>
+ <includes id="txcap_8h" name="txcap.h" local="yes" imported="no">txcap.h</includes>
+ <member kind="function">
+ <type>TXCAP_BEGIN_DECLS TINYXCAP_API char *</type>
+ <name>txcap_selector_get_url</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gabd7ca01b3076ebcfe9457ca3e565759e</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id,...)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>tinyxcap_config.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/</path>
+ <filename>tinyxcap__config_8h</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>TINYXCAP_API</name>
+ <anchorfile>tinyxcap__config_8h.html</anchorfile>
+ <anchor>a54664825f55f2bf2a8e6feb9152e41dc</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TINYXCAP_GEXTERN</name>
+ <anchorfile>tinyxcap__config_8h.html</anchorfile>
+ <anchor>ad1dd8024d491d87ade682e7f4b09ec0e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_BEGIN_DECLS</name>
+ <anchorfile>tinyxcap__config_8h.html</anchorfile>
+ <anchor>a9c75269aa7b9b18f6648a928f58b5b11</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_END_DECLS</name>
+ <anchorfile>tinyxcap__config_8h.html</anchorfile>
+ <anchor>a263ab01cd338dc458fc637d1d4ea6e61</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap.h</name>
+ <path>C:/Projects/Doubango/tinyXCAP/include/</path>
+ <filename>txcap_8h</filename>
+ <includes id="tinyxcap__config_8h" name="tinyxcap_config.h" local="yes" imported="no">tinyXCAP_config.h</includes>
+ <includes id="txcap__auid_8h" name="txcap_auid.h" local="yes" imported="no">tinyXCAP/txcap_auid.h</includes>
+ <class kind="struct">txcap_stack_s</class>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_OPTION</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga9fa6d7713160de9afe77d210c5a7f605</anchor>
+ <arglist>(ID_ENUM, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_PASSWORD</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gae376cf7191b894f99f2ef10f3baf4567</anchor>
+ <arglist>(PASSWORD_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_XUI</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gac6736cdf9fc3fc3aadd0e1877dac9713</anchor>
+ <arglist>(XUI_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_HEADER</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga62f11e3b0ef1cccc10a7808277a82c72</anchor>
+ <arglist>(NAME_STR, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_CONTEXT</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga0cb211757e5d6fdc3252cb2c16c7ab1f</anchor>
+ <arglist>(CTX_PTR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_AUID</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga13a1de981cf3827e7a59a8eea5c9dcc8</anchor>
+ <arglist>(ID_STR, MIME_TYPE_STR, NS_STR, DOC_NAME_STR, IS_GLOBAL_BOOL)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_NULL</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga3442fc62fb3de2d42e51cc6c7fa0d479</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="typedef">
+ <type>TXCAP_BEGIN_DECLS enum txcap_stack_option_e</type>
+ <name>txcap_stack_option_t</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>af9bafb5b6c4395b7be962e7ac3de2f32</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>enum txcap_stack_param_type_e</type>
+ <name>txcap_stack_param_type_t</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a7dd685cef440db49713a90dbecbbc399</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>struct txcap_stack_s</type>
+ <name>txcap_stack_t</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a34af5d5ddecab024bbc063db570af6f2</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="typedef">
+ <type>void</type>
+ <name>txcap_stack_handle_t</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>aa41f6bc3290abf8b95a36c2422abaff9</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_stack_option_e</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_STACK_OPTION_TIMEOUT</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65a180506fc290244e63cebb8fb88cf2987</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_STACK_OPTION_TTL</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65ab0cc54bd353ce0d95506d235d9c37780</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_STACK_OPTION_PASSWORD</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65a60df8aca6d453c625e515416a441fcbf</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_STACK_OPTION_XUI</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65a6b42f00f3d0e5b1a0d0a408b0ea18b3b</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_STACK_OPTION_LOCAL_IP</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65ae9cc2a54dac5e62c6207cf14a57750f1</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>TXCAP_STACK_OPTION_LOCAL_PORT</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2ccc19e57676e593f4174cc2250d5e65abbece683a7c8f113bbc3b912e415fec3</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumeration">
+ <name>txcap_stack_param_type_e</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2977725773e5d560f43a662c2175fcd6</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_null</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2977725773e5d560f43a662c2175fcd6adc4f3307e7e19f155a02fd0ed62c8656</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_option</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2977725773e5d560f43a662c2175fcd6a33114dc48aa36d03cebfe20cf9a78079</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_header</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2977725773e5d560f43a662c2175fcd6ad01d9651df7986377e37029cb6f208c7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_context</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2977725773e5d560f43a662c2175fcd6abdb3a3e3ace37b8937f589ac470ad5a4</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="enumvalue">
+ <name>xcapp_auid</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>a2977725773e5d560f43a662c2175fcd6a3db7f3148df94fb3281729599262721d</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API txcap_stack_handle_t *</type>
+ <name>txcap_stack_create</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gae20920e45078b18fc76c52c63931b2e9</anchor>
+ <arglist>(thttp_stack_callback_f callback, const char *xui, const char *password, const char *xcap_root,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API int</type>
+ <name>txcap_stack_start</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gaf0ce688bb71c94dc40623efab777e483</anchor>
+ <arglist>(txcap_stack_handle_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API int</type>
+ <name>txcap_stack_set</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gad8917c9fa5e12bd84e42b55538a24544</anchor>
+ <arglist>(txcap_stack_handle_t *self,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>TINYXCAP_API int</type>
+ <name>txcap_stack_stop</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gabbef76dfa185d22149e259e2e11d165b</anchor>
+ <arglist>(txcap_stack_handle_t *self)</arglist>
+ </member>
+ <member kind="variable">
+ <type>TINYXCAP_GEXTERN const tsk_object_def_t *</type>
+ <name>txcap_stack_def_t</name>
+ <anchorfile>txcap_8h.html</anchorfile>
+ <anchor>ab627bc7b38b1ba6e9618aaa7b59f6a32</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap.c</name>
+ <path>C:/Projects/Doubango/tinyXCAP/src/</path>
+ <filename>txcap_8c</filename>
+ <includes id="txcap_8h" name="txcap.h" local="yes" imported="no">txcap.h</includes>
+ <member kind="function">
+ <type>int</type>
+ <name>__txcap_stack_set</name>
+ <anchorfile>txcap_8c.html</anchorfile>
+ <anchor>ad045b2ab5910762e5b93325ee9bda55c</anchor>
+ <arglist>(txcap_stack_t *self, va_list *app)</arglist>
+ </member>
+ <member kind="function">
+ <type>txcap_stack_handle_t *</type>
+ <name>txcap_stack_create</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gae20920e45078b18fc76c52c63931b2e9</anchor>
+ <arglist>(thttp_stack_callback_f callback, const char *xui, const char *password, const char *xcap_root,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_stack_start</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gaf0ce688bb71c94dc40623efab777e483</anchor>
+ <arglist>(txcap_stack_handle_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_stack_set</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gad8917c9fa5e12bd84e42b55538a24544</anchor>
+ <arglist>(txcap_stack_handle_t *self,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_stack_stop</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gabbef76dfa185d22149e259e2e11d165b</anchor>
+ <arglist>(txcap_stack_handle_t *self)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>txcap_stack_def_t</name>
+ <anchorfile>txcap_8c.html</anchorfile>
+ <anchor>a8d4fe39e7adb8cf4f930eec2ec240207</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_action.c</name>
+ <path>C:/Projects/Doubango/tinyXCAP/src/</path>
+ <filename>txcap__action_8c</filename>
+ <includes id="txcap__action_8h" name="txcap_action.h" local="yes" imported="no">tinyXCAP/txcap_action.h</includes>
+ <includes id="txcap__selector_8h" name="txcap_selector.h" local="yes" imported="no">tinyXCAP/txcap_selector.h</includes>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_MIME_TYPE_ELEMENT</name>
+ <anchorfile>txcap__action_8c.html</anchorfile>
+ <anchor>a26a0d0db583aa97ddc3e354a47589e9e</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_MIME_TYPE_ATTRIBUTE</name>
+ <anchorfile>txcap__action_8c.html</anchorfile>
+ <anchor>af0b508eccdcef6075c564c4885a6248c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_MIME_TYPE_NS</name>
+ <anchorfile>txcap__action_8c.html</anchorfile>
+ <anchor>ab4215e7b8a28b326b032a52a28cecbe8</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_MIME_TYPE_ERROR</name>
+ <anchorfile>txcap__action_8c.html</anchorfile>
+ <anchor>ad1e4e28139aa9ffdf9b7d7f0eefc8f4a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>__txcap_selector_get_url</name>
+ <anchorfile>txcap__action_8c.html</anchorfile>
+ <anchor>a3f6e3e9f7a99f4fe99b929dd4c805435</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id, va_list *app)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_action_perform</name>
+ <anchorfile>txcap__action_8c.html</anchorfile>
+ <anchor>a53557ca13669c8d518bcf55e493147fe</anchor>
+ <arglist>(txcap_stack_handle_t *stack, txcap_action_type_t type, txcap_action_target_t target,...)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_auid.c</name>
+ <path>C:/Projects/Doubango/tinyXCAP/src/</path>
+ <filename>txcap__auid_8c</filename>
+ <includes id="txcap__auid_8h" name="txcap_auid.h" local="yes" imported="no">tinyXCAP/txcap_auid.h</includes>
+ <class kind="struct">auid_s</class>
+ <member kind="typedef">
+ <type>struct auid_s</type>
+ <name>auid_t</name>
+ <anchorfile>txcap__auid_8c.html</anchorfile>
+ <anchor>a76340f60ec9c92fc02dbadd86908f7e6</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="function">
+ <type>txcap_auid_t *</type>
+ <name>txcap_auid_create</name>
+ <anchorfile>txcap__auid_8c.html</anchorfile>
+ <anchor>a6b0802fefabdcad4dbddb263bf95796a</anchor>
+ <arglist>(txcap_auid_type_t type, const char *id, const char *mime_type, const char *ns, const char *document_name, tsk_bool_t is_global)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_auids_init</name>
+ <anchorfile>txcap__auid_8c.html</anchorfile>
+ <anchor>a3cdcbe236d5444b5fdac8017a7963e46</anchor>
+ <arglist>(txcap_auids_L_t **auids)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_auid_register</name>
+ <anchorfile>txcap__auid_8c.html</anchorfile>
+ <anchor>a07698ba0b25c8b167d2e6e8f48b559c0</anchor>
+ <arglist>(txcap_auids_L_t *auids, const char *id, const char *mime_type, const char *ns, const char *document_name, tsk_bool_t is_global)</arglist>
+ </member>
+ <member kind="function">
+ <type>txcap_auid_t *</type>
+ <name>txcap_auid_get_by_id</name>
+ <anchorfile>txcap__auid_8c.html</anchorfile>
+ <anchor>ad053aef245824c96128d24bc9750d41e</anchor>
+ <arglist>(txcap_auids_L_t *auids, const char *id)</arglist>
+ </member>
+ <member kind="variable">
+ <type>const tsk_object_def_t *</type>
+ <name>txcap_auid_def_t</name>
+ <anchorfile>txcap__auid_8c.html</anchorfile>
+ <anchor>a04578a3b21a025b918ab33400fdb6a34</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_document.c</name>
+ <path>C:/Projects/Doubango/tinyXCAP/src/</path>
+ <filename>txcap__document_8c</filename>
+ <includes id="txcap__document_8h" name="txcap_document.h" local="yes" imported="no">tinyXCAP/txcap_document.h</includes>
+ <includes id="txcap__auid_8h" name="txcap_auid.h" local="yes" imported="no">tinyXCAP/txcap_auid.h</includes>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_document</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga75307ec551003312807af27cc5b09da1</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_document_2</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gac0bc0eefb98384d7c31b6a828ace4389</anchor>
+ <arglist>(const char *xcap_root, const char *auid_id, const char *xui, const char *doc_name)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_node.c</name>
+ <path>C:/Projects/Doubango/tinyXCAP/src/</path>
+ <filename>txcap__node_8c</filename>
+ <includes id="txcap__node_8h" name="txcap_node.h" local="yes" imported="no">tinyXCAP/txcap_node.h</includes>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_node</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga1e2d23fa5fb817509b923f91400e63d7</anchor>
+ <arglist>(const char *auid_id,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_node_2</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga468ee48d2d553b8f56cbc62807239271</anchor>
+ <arglist>(const char *auid_id, va_list *app)</arglist>
+ </member>
+ </compound>
+ <compound kind="file">
+ <name>txcap_selector.c</name>
+ <path>C:/Projects/Doubango/tinyXCAP/src/</path>
+ <filename>txcap__selector_8c</filename>
+ <includes id="txcap__selector_8h" name="txcap_selector.h" local="yes" imported="no">tinyXCAP/txcap_selector.h</includes>
+ <includes id="txcap__document_8h" name="txcap_document.h" local="yes" imported="no">tinyXCAP/txcap_document.h</includes>
+ <includes id="txcap__node_8h" name="txcap_node.h" local="yes" imported="no">tinyXCAP/txcap_node.h</includes>
+ <member kind="function">
+ <type>char *</type>
+ <name>__txcap_selector_get_url</name>
+ <anchorfile>txcap__selector_8c.html</anchorfile>
+ <anchor>a3f6e3e9f7a99f4fe99b929dd4c805435</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id, va_list *app)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_url</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gabd7ca01b3076ebcfe9457ca3e565759e</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id,...)</arglist>
+ </member>
+ </compound>
+ <compound kind="group">
+ <name>txcap_stack_group</name>
+ <title>XCAP stack</title>
+ <filename>group__txcap__stack__group.html</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_OPTION</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga9fa6d7713160de9afe77d210c5a7f605</anchor>
+ <arglist>(ID_ENUM, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_PASSWORD</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gae376cf7191b894f99f2ef10f3baf4567</anchor>
+ <arglist>(PASSWORD_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_XUI</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gac6736cdf9fc3fc3aadd0e1877dac9713</anchor>
+ <arglist>(XUI_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_HEADER</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga62f11e3b0ef1cccc10a7808277a82c72</anchor>
+ <arglist>(NAME_STR, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_CONTEXT</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga0cb211757e5d6fdc3252cb2c16c7ab1f</anchor>
+ <arglist>(CTX_PTR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_AUID</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga13a1de981cf3827e7a59a8eea5c9dcc8</anchor>
+ <arglist>(ID_STR, MIME_TYPE_STR, NS_STR, DOC_NAME_STR, IS_GLOBAL_BOOL)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_STACK_SET_NULL</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>ga3442fc62fb3de2d42e51cc6c7fa0d479</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>txcap_stack_handle_t *</type>
+ <name>txcap_stack_create</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gae20920e45078b18fc76c52c63931b2e9</anchor>
+ <arglist>(thttp_stack_callback_f callback, const char *xui, const char *password, const char *xcap_root,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_stack_start</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gaf0ce688bb71c94dc40623efab777e483</anchor>
+ <arglist>(txcap_stack_handle_t *self)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_stack_set</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gad8917c9fa5e12bd84e42b55538a24544</anchor>
+ <arglist>(txcap_stack_handle_t *self,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>int</type>
+ <name>txcap_stack_stop</name>
+ <anchorfile>group__txcap__stack__group.html</anchorfile>
+ <anchor>gabbef76dfa185d22149e259e2e11d165b</anchor>
+ <arglist>(txcap_stack_handle_t *self)</arglist>
+ </member>
+ </compound>
+ <compound kind="group">
+ <name>txcap_action_group</name>
+ <title>XDMC (Sending Requests)</title>
+ <filename>group__txcap__action__group.html</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_OPTION</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga7913c72583d400da51dea9f46bed553b</anchor>
+ <arglist>(ID_INT, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_HEADER</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>gaf422679f169f916bdf2c786e4171622e</anchor>
+ <arglist>(NAME_STR, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_PAYLOAD</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga566653198a295d9d9854c35974c91e1a</anchor>
+ <arglist>(PAY_PTR, PAY_SIZE)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_SELECTOR</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga599c6c0389addf0e0d9a14bdbcef017e</anchor>
+ <arglist>(AUID_STR,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_REQUEST_URI</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga17133536f59ded5dadd169d1673dd689</anchor>
+ <arglist>(URI_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_ACTION_SET_NULL</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga0f062a39307c1230628d37b0f7476346</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_create_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga3d7b7194078364d1c43c9fa5f09ca40e</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_create_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga36013b774b75655eeaea1e859e33b502</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_create_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga0cecb0adbc797545bc6cc28e9d4ce5a3</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_replace_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga375d103ff56afadc8032b1f6b38ab249</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_replace_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga7eb8bddb5492761b82380ab0d1233c9a</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_replace_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga4d7f98bd61b8d241ba2b9c83dc009092</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_fetch_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga0966cf2d592efecd10a8bd2d2b023c58</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_fetch_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga6a4b9b3f428324216b672749cbdb0848</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_fetch_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga39870b7b6921d35742dcc98646d4b7a9</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_delete_element</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga362281093747e882ca8ba5bcb2e6cdcb</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_delete_document</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga19f261014954506058725a05d1e9b017</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>txcap_action_delete_attribute</name>
+ <anchorfile>group__txcap__action__group.html</anchorfile>
+ <anchor>ga6e4d15799c832261e9c41031c025e6cd</anchor>
+ <arglist>(stack,...)</arglist>
+ </member>
+ </compound>
+ <compound kind="group">
+ <name>txcap_selector_group</name>
+ <title>XCAP URL selector</title>
+ <filename>group__txcap__selector__group.html</filename>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_NAME</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga5160eb295db11e8557086fc42263e48f</anchor>
+ <arglist>(QNAME_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_POS</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga7ccf665a941bf545ee608f912877d3c6</anchor>
+ <arglist>(QNAME_STR, POS_UINT)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_ATTRIBUTE</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga1fbeb0d3296fde62814890dfaeb9c872</anchor>
+ <arglist>(QNAME_STR, ATT_QNAME_STR, ATT_VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_POS_ATTRIBUTE</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga8e139963afdf60b0746c164d8ab0426c</anchor>
+ <arglist>(QNAME_STR, POS_UINT, ATT_QNAME_STR, ATT_VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_NAMESPACE</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gaa0afbb9dde8ceb5e441c3e09aa83af8d</anchor>
+ <arglist>(PREFIX_STR, VALUE_STR)</arglist>
+ </member>
+ <member kind="define">
+ <type>#define</type>
+ <name>TXCAP_SELECTOR_NODE_SET_NULL</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga84757d87777f1fe02533c1445b218f04</anchor>
+ <arglist>()</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_document</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga75307ec551003312807af27cc5b09da1</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_document_2</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gac0bc0eefb98384d7c31b6a828ace4389</anchor>
+ <arglist>(const char *xcap_root, const char *auid_id, const char *xui, const char *doc_name)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_node</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga1e2d23fa5fb817509b923f91400e63d7</anchor>
+ <arglist>(const char *auid_id,...)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_node_2</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>ga468ee48d2d553b8f56cbc62807239271</anchor>
+ <arglist>(const char *auid_id, va_list *app)</arglist>
+ </member>
+ <member kind="function">
+ <type>char *</type>
+ <name>txcap_selector_get_url</name>
+ <anchorfile>group__txcap__selector__group.html</anchorfile>
+ <anchor>gabd7ca01b3076ebcfe9457ca3e565759e</anchor>
+ <arglist>(const txcap_stack_handle_t *stack, const char *auid_id,...)</arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>auid_s</name>
+ <filename>structauid__s.html</filename>
+ <member kind="variable">
+ <type>txcap_auid_type_t</type>
+ <name>type</name>
+ <anchorfile>structauid__s.html</anchorfile>
+ <anchor>a3e4bffb785139534ee1f160685887c0c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const char *</type>
+ <name>id</name>
+ <anchorfile>structauid__s.html</anchorfile>
+ <anchor>aeffa2f0815ce90fecbda9aac199143db</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const char *</type>
+ <name>mime_type</name>
+ <anchorfile>structauid__s.html</anchorfile>
+ <anchor>a12139285594e136f3f40ec07d2fdc5c5</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const char *</type>
+ <name>ns</name>
+ <anchorfile>structauid__s.html</anchorfile>
+ <anchor>a2ec6583af2612eed6944f95f0431eee8</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const char *</type>
+ <name>document_name</name>
+ <anchorfile>structauid__s.html</anchorfile>
+ <anchor>a7a57829128684dadc8df9382d33ce133</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_bool_t</type>
+ <name>global</name>
+ <anchorfile>structauid__s.html</anchorfile>
+ <anchor>a30fb50f2a8e3336473796ead281a0f58</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>txcap_auid_s</name>
+ <filename>structtxcap__auid__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSK_DECLARE_OBJECT</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>a6cb2c811d40d14ceb34bd3b2e7dc5e6a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>txcap_auid_type_t</type>
+ <name>type</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>a3e4bffb785139534ee1f160685887c0c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>id</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>aecb3b0d045ada529257a2fbf8f829599</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>mime_type</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>acda933efdc515b632bbace5658402427</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>ns</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>a5fc7288f3742da2ab55985a1836d01c9</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>document_name</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>a8542617c3b9083b8b73abfd4ddea94e7</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_bool_t</type>
+ <name>global</name>
+ <anchorfile>structtxcap__auid__s.html</anchorfile>
+ <anchor>a30fb50f2a8e3336473796ead281a0f58</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+ <compound kind="struct">
+ <name>txcap_stack_s</name>
+ <filename>structtxcap__stack__s.html</filename>
+ <member kind="variable">
+ <type></type>
+ <name>TSK_DECLARE_OBJECT</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a6cb2c811d40d14ceb34bd3b2e7dc5e6a</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>xui</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a51bd5af50dd722b9d7147e0e8d75b7d3</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>password</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a59460a3ff2c12443d1022e5cc0fba85c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>char *</type>
+ <name>xcap_root</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a727097ccf0d9a6c57d1d7480e1c34afa</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>thttp_session_handle_t *</type>
+ <name>http_session</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>afbbb143ae1207cd710c136527425dbe2</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>thttp_stack_handle_t *</type>
+ <name>http_stack</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a3a2f37bda797ff6851be6004dfc581a4</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>tsk_options_L_t *</type>
+ <name>options</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>af5b6cc93a0b124046788312d128c9754</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>const void *</type>
+ <name>context</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a3f18b45f62968a5b7281db2feefd275c</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type>txcap_auids_L_t *</type>
+ <name>auids</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a7a5cf9a37082230b18fdf2ccb0ae9f35</anchor>
+ <arglist></arglist>
+ </member>
+ <member kind="variable">
+ <type></type>
+ <name>TSK_DECLARE_SAFEOBJ</name>
+ <anchorfile>structtxcap__stack__s.html</anchorfile>
+ <anchor>a9818e976fd73889027b42c32d628169f</anchor>
+ <arglist></arglist>
+ </member>
+ </compound>
+</tagfile>
diff --git a/tinyXCAP/tinyXCAP.vcproj b/tinyXCAP/tinyXCAP.vcproj
new file mode 100644
index 0000000..f796c7b
--- /dev/null
+++ b/tinyXCAP/tinyXCAP.vcproj
@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="tinyXCAP"
+ ProjectGUID="{570CF33D-E65F-448F-8AC2-F9AE2F23152F}"
+ RootNamespace="tinyXCAP"
+ 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="include;..\thirdparties\win32\include;..\tinyNET\src;..\tinySAK\src;..\tinyHTTP\include"
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TINYXCAP_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)\tinyHTTP.lib $(OutDir)\tinyNET.lib $(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="2"
+ EnableIntrinsicFunctions="false"
+ AdditionalIncludeDirectories="include;..\thirdparties\win32\include;..\tinyNET\src;..\tinySAK\src;..\tinyHTTP\include"
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TINYXCAP_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)\tinyHTTP.lib $(OutDir)\tinyNET.lib $(OutDir)\tinySAK.lib"
+ LinkIncremental="1"
+ IgnoreDefaultLibraryNames="MSVCRTD"
+ 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="include(*.h)"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\include\tinyxcap.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinyxcap_config.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\txcap.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinyXCAP\txcap_action.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinyXCAP\txcap_auid.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinyXCAP\txcap_document.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinyXCAP\txcap_node.h"
+ >
+ </File>
+ <File
+ RelativePath=".\include\tinyXCAP\txcap_selector.h"
+ >
+ </File>
+ </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\txcap.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\txcap_action.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\txcap_auid.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\txcap_document.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\txcap_node.c"
+ >
+ </File>
+ <File
+ RelativePath=".\src\txcap_selector.c"
+ >
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
OpenPOWER on IntegriCloud