XEP-0077: add examples/register

XEP-0077 will not be implemented as part of libstrophe's API, but an
example is provided. The example shows how to use the "raw" connection
to register a user.

Closes #54.
This commit is contained in:
Dmitry Podgorny
2016-04-26 18:50:00 +00:00
parent 1b10e8f987
commit 8cfb2d2a03
5 changed files with 368 additions and 1 deletions

View File

@@ -101,7 +101,8 @@ noinst_PROGRAMS = \
examples/component \
examples/roster \
examples/uuid \
examples/vcard
examples/vcard \
examples/register
examples_active_SOURCES = examples/active.c
examples_active_CFLAGS = $(STROPHE_FLAGS)
@@ -124,6 +125,9 @@ examples_uuid_LDADD = $(STROPHE_LIBS)
examples_vcard_SOURCES = examples/vcard.c
examples_vcard_CFLAGS = $(STROPHE_FLAGS)
examples_vcard_LDADD = $(STROPHE_LIBS)
examples_register_SOURCES = examples/register.c
examples_register_CFLAGS = $(STROPHE_FLAGS)
examples_register_LDADD = $(STROPHE_LIBS)
## Tests