Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
icalenums.c File Reference
#include "icalenums.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "icalmemory.h"

Go to the source code of this file.

Functions

const char * icalenum_reqstat_desc (icalrequeststatus stat)
char * icalenum_reqstat_code (icalrequeststatus stat)
short icalenum_reqstat_major (icalrequeststatus stat)
short icalenum_reqstat_minor (icalrequeststatus stat)
icalrequeststatus icalenum_num_to_reqstat (short major, short minor)

Variables

struct {
request_status_map []

Function Documentation

icalrequeststatus icalenum_num_to_reqstat ( short  major,
short  minor 
)

Definition at line 153 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].major ==  major && request_status_map[i].minor ==  minor) {
           return request_status_map[i].kind;
       }
    }
    return 0;
}

Here is the caller graph for this function:

Definition at line 106 of file icalenums.c.

{
    int i, major, minor;
    char tmpbuf[36];

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           major = request_status_map[i].major;
           minor = request_status_map[i].minor;
           sprintf(tmpbuf, "%i.%i", major, minor);
           return icalmemory_tmp_copy(tmpbuf);
       }
    }
    return NULL;
}

Here is the call graph for this function:

Definition at line 91 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           return request_status_map[i].str;
       }
    }

    return 0;
}

Here is the caller graph for this function:

Definition at line 124 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           return request_status_map[i].major;
       }
    }
    return -1;
}

Here is the caller graph for this function:

Definition at line 138 of file icalenums.c.

{
    int i;

    for (i=0; request_status_map[i].kind  != ICAL_UNKNOWN_STATUS; i++) {
       if ( request_status_map[i].kind ==  stat) {
           return request_status_map[i].minor;
       }
    }
    return -1;
}

Here is the caller graph for this function:


Variable Documentation

struct { ... } request_status_map[] [static]