/usr/include/rra/contact.h is in librra-dev 0.14-1.2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | /* $Id: contact.h 3713 2009-03-17 14:32:11Z mark_ellis $ */
#ifndef __contact_h__
#define __contact_h__
#include <synce.h>
/*
* Convert contact data
*/
#define RRA_CONTACT_ID_UNKNOWN 0
/* flags for rra_contact_(from|to)_vcard() */
#define RRA_CONTACT_NEW 0x1
#define RRA_CONTACT_UPDATE 0x2
#define RRA_CONTACT_COMMAND_MASK 0xf
#define RRA_CONTACT_ISO8859_1 0x10
#define RRA_CONTACT_UTF8 0x20
#define RRA_CONTACT_CHARSET_MASK 0xf0
#define RRA_CONTACT_VERSION_UNKNOWN 0x000
#define RRA_CONTACT_VERSION_2_1 0x100
#define RRA_CONTACT_VERSION_3_0 0x200
#define RRA_CONTACT_VERSION_MASK 0xf00
#ifndef SWIG
bool rra_contact_to_vcard(
uint32_t id,
const uint8_t* data,
size_t data_size,
char** vcard,
uint32_t flags,
const char *codepage);
bool rra_contact_from_vcard(
const char* vcard,
uint32_t* id,
uint8_t** data,
size_t* data_size,
uint32_t flags,
const char *codepage);
#endif /* SWIG */
struct FieldStrings
{
char* name;
char* type;
char* value;
bool pref;
};
#define rra_contact_free_vcard(p) if (p) free(p)
#define rra_contact_free_data(p) if (p) free(p)
#endif
|