Logo Search packages:      
Sourcecode: libical version File versions  Download package

icalcap.c

#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
}

Generated by  Doxygen 1.6.0   Back to index