Definition in file cardparser.c.
#include "cardparser.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
Functions | |
CARD_Parser | CARD_ParserCreate (CARD_Char *encoding) |
Creates a card parser handle. Allocates a handle for a card parser. Free with CARD_ParserFree(). | |
void | CARD_ParserFree (CARD_Parser p) |
Deallocates the card parser object. Frees the memory associated with a card parser objetc created by CARD_ParserCreate(). | |
int | CARD_Parse (CARD_Parser p, const char *s, int len, int isFinal) |
Parses a block of memory. Parses the block of memory, the memory does not need to be zero-terminated. isFinal should be set to TRUE (non-zero) for the final call so that internal structures can be flushed to the output. | |
void | CARD_SetUserData (CARD_Parser p, void *userData) |
sets the user data value for the callbacks (::CARD_PropHandler, ::CARD_DataHandler) This value will be passed to the specified callbacks | |
void * | CARD_GetUserData (CARD_Parser p) |
returns the user data value for the callbacks (::CARD_PropHandler, ::CARD_DataHandler) | |
void | CARD_SetPropHandler (CARD_Parser p, CARD_PropHandler cardProp) |
Set the callback for vcard properties. | |
void | CARD_SetDataHandler (CARD_Parser p, CARD_DataHandler cardData) |
Set the callback for vcard data. |
|
Creates a card parser handle. Allocates a handle for a card parser. Free with CARD_ParserFree().
Definition at line 160 of file cardparser.c. |
|
Deallocates the card parser object. Frees the memory associated with a card parser objetc created by CARD_ParserCreate().
Definition at line 185 of file cardparser.c. |
|
Parses a block of memory. Parses the block of memory, the memory does not need to be zero-terminated. isFinal should be set to TRUE (non-zero) for the final call so that internal structures can be flushed to the output.
Definition at line 621 of file cardparser.c. |
|
sets the user data value for the callbacks (::CARD_PropHandler, ::CARD_DataHandler) This value will be passed to the specified callbacks
Definition at line 688 of file cardparser.c. |
|
returns the user data value for the callbacks (::CARD_PropHandler, ::CARD_DataHandler)
Definition at line 700 of file cardparser.c. |
|
Set the callback for vcard properties.
Definition at line 713 of file cardparser.c. |
|
Set the callback for vcard data.
Definition at line 726 of file cardparser.c. |