blob: 2f8fb2a7017061dfef24afee9e4ab2401bbfb5be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#include "config.h"
#include "icalcap.h"
#include "icalcap_session.h"
#include "icalcap_session_impl.h"
icalcap_session *
icalcap_session_new(void) {
#ifdef WITH_RR
return icalcap_session_new_rr();
#else
return NULL;
#endif
}
int
icalcap_session_connect(icalcap_session *sess, const char *hostname, const int _port) {
int port = _port;
if (port <= 0)
port = 1026;
#ifdef WITH_RR
return icalcap_session_connect_rr(sess, hostname, port);
#else
return 0;
#endif
}
int
icalcap_session_login(icalcap_session *sess, const char *username, const char *authname,
const char *password) {
#ifdef WITH_RR
return icalcap_session_login_rr(sess, username, authname, password);
#else
return 0;
#endif
}
icalcap *
icalcap_session_start(const icalcap_session *sess, icalcap_msg_handler handler) {
#ifdef WITH_RR
return icalcap_session_start_rr(sess, handler);
#else
return 0;
#endif
}
int
icalcap_session_disconnect(icalcap_session *sess) {
#ifdef WITH_RR
return icalcap_session_disconnect_rr(sess);
#else
return 0;
#endif
}
|