|
Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
|
Line-oriented parsing vCard format. More...
Go to the source code of this file.
Macros | |
| #define | BUF_GROW 128 |
| #define | BUF_INITIALIZER |
| #define | DEBUG 0 |
| #define | HANDLECTRL(state) |
| #define | INC(I) |
| #define | IS_CTRL(ch) |
| #define | MAKE(X, Y) |
| #define | NOTESTART() |
| #define | PUTC(C) |
Functions | |
| void | buf_init (struct buf *buf, size_t size) |
| const char * | vcardparser_errstr (int err) |
| vcardcomponent * | vcardparser_parse_string (const char *str) |
| void | vcardparser_set_xprop_value_kind (vcard_xprop_value_kind_func func, void *data) |
| Registers a parser callback to override the default value type of an x-property. | |
Line-oriented parsing vCard format.
Definition in file vcardparser.c.
| #define BUF_GROW 128 |
Definition at line 95 of file vcardparser.c.
| #define BUF_INITIALIZER |
Definition at line 66 of file vcardparser.c.
| #define DEBUG 0 |
Definition at line 33 of file vcardparser.c.
| #define HANDLECTRL | ( | state | ) |
Definition at line 195 of file vcardparser.c.
| #define INC | ( | I | ) |
Definition at line 192 of file vcardparser.c.
| #define IS_CTRL | ( | ch | ) |
Definition at line 193 of file vcardparser.c.
| #define MAKE | ( | X, | |
| Y ) |
Definition at line 190 of file vcardparser.c.
| #define NOTESTART | ( | ) |
Definition at line 189 of file vcardparser.c.
| #define PUTC | ( | C | ) |
Definition at line 191 of file vcardparser.c.
| enum parse_error |
Definition at line 38 of file vcardparser.c.
| void buf_init | ( | struct buf * | buf, |
| size_t | size ) |
Definition at line 97 of file vcardparser.c.
| const char * vcardparser_errstr | ( | int | err | ) |
Definition at line 960 of file vcardparser.c.
| vcardcomponent * vcardparser_parse_string | ( | const char * | str | ) |
Definition at line 1003 of file vcardparser.c.
| void vcardparser_set_xprop_value_kind | ( | vcard_xprop_value_kind_func | func, |
| void * | data ) |
Registers a parser callback to override the default value type of an x-property.
Extended properties ("x-properties") in vCard do not have a default value type. Instead, they are parsed as unknown values and preserved verbatim. This function allows to register a callback to define the default value type for some x-property. Any VALUE parameter set on the property overrides the default value.
| func | The function pointer to the callback. Use NULL to disable a previously registered callback. |
| data | Some callback-specific data. Can be NULL. |
For example, the callback might return VCARD_TEXT_VALUE when parsing an x-property named "X-ABLabel".
This function is not reentrant. Depending on libical is built, the callback either is registered as a process-global or thread-local variable.
Definition at line 1030 of file vcardparser.c.