Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
icalenums.c File Reference

Defines enums not belonging to other data structures. More...

Go to the source code of this file.

Functions

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

Detailed Description

Defines enums not belonging to other data structures.

Definition in file icalenums.c.

Function Documentation

◆ icalenum_num_to_reqstat()

icalrequeststatus icalenum_num_to_reqstat ( short major,
short minor )

Get an icalrequeststatus for major.minor status numbers.

Parameters
majoris the major request number
minoris the minor request number
Returns
an icalrequeststatus representation of the major.minor request number.

Definition at line 140 of file icalenums.c.

◆ icalenum_reqstat_code()

char * icalenum_reqstat_code ( icalrequeststatus stat)

Gets a string representation of an icalrequeststatus.

Parameters
statthe icalrequeststatus
Returns
a pointer to a char string representation of the specified icalrequest status. see icalenum_reqstat_code_r

Definition at line 89 of file icalenums.c.

◆ icalenum_reqstat_code_r()

char * icalenum_reqstat_code_r ( icalrequeststatus stat)

Gets a string representation of an icalrequeststatus.

Parameters
statthe icalrequeststatus
Returns
a pointer to a char string representation of the specified icalrequeststatus. see icalenum_reqstat_code

Definition at line 98 of file icalenums.c.

◆ icalenum_reqstat_desc()

const char * icalenum_reqstat_desc ( icalrequeststatus stat)

Gets the descriptive text for an icalrequeststatus.

Parameters
statis the icalrequeststatus to use
Returns
a pointer to a char string containing the icalrequeststatus description. NULL is returned if stat is invalid.

Definition at line 75 of file icalenums.c.

◆ icalenum_reqstat_major()

short icalenum_reqstat_major ( icalrequeststatus stat)

Gets the major number for an icalrequeststatus.

Parameters
statis the icalrequeststatus to use
Returns
the major number of the specified icalrequeststatus.

Definition at line 114 of file icalenums.c.

◆ icalenum_reqstat_minor()

short icalenum_reqstat_minor ( icalrequeststatus stat)

Gets the minor number for an icalrequeststatus.

Parameters
statis the icalrequeststatus to use
Returns
the minor number of the specified icalrequeststatus.

Definition at line 127 of file icalenums.c.

Variable Documentation

◆ kind

enum icalrequeststatus kind

Definition at line 26 of file icalenums.c.

◆ major

int major

Definition at line 27 of file icalenums.c.

◆ minor

int minor

Definition at line 28 of file icalenums.c.

◆ str

const char* str

Definition at line 29 of file icalenums.c.