bump to 1.0.0 and clean up spec file
[platform/upstream/libical.git] / src / libicalcap / icalcap_server_impl.h
1 #ifndef __ICALCAP_SERVER_IMPL_H__
2 #define __ICALCAP_SERVER_IMPL_H__
3
4 #ifdef WITH_RR
5
6 #include <librr/rr.h>
7 #include <librrsasl/rr-sasl.h>
8 #include <librrtls/rr-tls.h>
9 #include <librrcap/rr-cap.h>
10
11 struct _icalcap_server {
12         RRProfileRegistry      *profreg;
13         RRListener             *listener;
14         RRCAPConfig            *cfg;
15         icalcap_msg_handler     handler;
16 };
17
18 icalcap_server *icalcap_server_new_rr(icalcap_auth_handler auth_cb,
19                                         icalcap_chanup_handler chanup_cb,
20                                         icalcap_msg_handler msg_cb);
21 int             icalcap_server_listen_rr(icalcap_server *cap,
22                                         const char *hostname,
23                                         const int port);
24 int             icalcap_server_run_rr(const icalcap_server *cap);
25 int             icalcap_server_shutdown_rr(icalcap_server *cap);
26
27 #else
28 #error "No implementation of icalcap found!"
29 #endif
30
31 #endif