diff options
author | Hans Petter <hansp@src.gnome.org> | 2003-09-12 06:04:44 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-09-12 06:04:44 +0800 |
commit | 697761cc337aa77a47140c8df50ed84bc25e23f6 (patch) | |
tree | b785830f72e9938cceaa016a419c7b6d9892bada /libical/src/libicalcap/icalcap_server.c | |
parent | 733d77e657516f9a59b5c1a7b62acb87b03ec86f (diff) | |
download | gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.gz gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.bz2 gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.lz gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.xz gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.tar.zst gsoc2013-evolution-697761cc337aa77a47140c8df50ed84bc25e23f6.zip |
Import new libical from mainline HEAD and make appropriate changes to
Evolution.
svn path=/trunk/; revision=22538
Diffstat (limited to 'libical/src/libicalcap/icalcap_server.c')
-rw-r--r-- | libical/src/libicalcap/icalcap_server.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libical/src/libicalcap/icalcap_server.c b/libical/src/libicalcap/icalcap_server.c new file mode 100644 index 0000000000..77b8484554 --- /dev/null +++ b/libical/src/libicalcap/icalcap_server.c @@ -0,0 +1,52 @@ +#include "config.h" + +#include "icalcap.h" +#include "icalcap_server.h" +#include "icalcap_server_impl.h" + + +icalcap_server * +icalcap_server_new(icalcap_auth_handler auth_cb, icalcap_chanup_handler chanup_cb, + icalcap_msg_handler msg_cb) { + +#ifdef WITH_RR + return icalcap_server_new_rr(auth_cb, chanup_cb, msg_cb); +#else + return NULL; +#endif +} + +int +icalcap_server_listen(icalcap_server *cap, const char *hostname, const int _port) { + + int port = _port; + + if (port <= 0) + port = 1026; + +#ifdef WITH_RR + return icalcap_server_listen_rr(cap, hostname, port); +#else + return 0; +#endif +} + +int +icalcap_server_run(const icalcap_server *cap) { + +#ifdef WITH_RR + return icalcap_server_run_rr(cap); +#else + return 0; +#endif +} + +int +icalcap_server_shutdown(icalcap_server *cap) { + +#ifdef WITH_RR + return icalcap_server_shutdown_rr(cap); +#else + return 0; +#endif +} |