summaryrefslogtreecommitdiff
path: root/src/libicalcap/icalcap.c
blob: 8d404f0ad4d08e23a2ab9b24e4a9f5c046618325 (plain)
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
#include "config.h"

#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif

#include "icalcap.h"
#include "icalcap_impl.h"
#include "icalcap_session_impl.h"	/* FIXME */


void
icalcap_free(icalcap *cap) {

#ifdef WITH_RR
	icalcap_free_rr(cap);
#endif
}

int
icalcap_stop(icalcap *cap) {

#ifdef WITH_RR
	return icalcap_stop_rr(cap);
#else
	return 0;
#endif
}

const char *
icalcap_get_username(const icalcap *cap) {

#ifdef WITH_RR
	if (cap == NULL || cap->username == NULL)
		return NULL;

	return cap->username;
#else
	return NULL;
#endif
}