Synopsis
enum LJSecurityType;
#define LJ_SECURITY_ALLOWMASK_FRIENDS
void lj_security_from_strings (LJSecurity *security,
const char *sectext,
const char *allowmask);
void lj_security_to_strings (LJSecurity *security,
char **sectext,
char **allowmask);
void lj_security_append_to_request (LJSecurity *security,
LJRequest *request);
enum LJCommentsType;
enum LJEntryFileType;
LJEntry* lj_entry_new (void);
LJEntry* lj_entry_new_from_file (FILE *f,
LJEntryFileType type,
LJEntryFileType *typeret,
GError **err);
LJEntry* lj_entry_new_from_filename (const char *filename,
LJEntryFileType type,
LJEntryFileType *typeret,
GError **err);
LJEntry* lj_entry_new_from_xml_node (xmlDocPtr doc,
xmlNodePtr node);
LJEntry* lj_entry_new_single_from_result (LJResult *result,
GError **err);
LJEntry* lj_entry_copy (LJEntry *e);
void lj_entry_free (LJEntry *e);
char* lj_entry_make_summary (LJEntry *entry);
char* lj_get_summary (char *subject,
char *event);
void lj_entry_set_request_fields (LJEntry *entry,
LJRequest *request);
xmlNodePtr lj_entry_to_xml_node (LJEntry *entry,
xmlDocPtr doc);
gboolean lj_entry_to_xml_file (LJEntry *entry,
const char *filename,
GError **err);
GString* lj_entry_to_rfc822 (LJEntry *entry,
gboolean includeempty);
gboolean lj_entry_to_rfc822_file (LJEntry *entry,
const char *filename,
gboolean includeempty,
GError **err);
gboolean lj_entry_edit_with_usereditor (LJEntry *entry,
const char *basepath,
GError **err);
LJEntry** lj_entries_new_from_result (LJResult *result,
int count,
GSList **warnings);
Details
enum LJSecurityType
typedef enum {
LJ_SECURITY_PUBLIC = 0,
LJ_SECURITY_FRIENDS,
LJ_SECURITY_PRIVATE,
LJ_SECURITY_CUSTOM
} LJSecurityType;
LJ_SECURITY_ALLOWMASK_FRIENDS
#define LJ_SECURITY_ALLOWMASK_FRIENDS 1
lj_security_from_strings ()
void lj_security_from_strings (LJSecurity *security,
const char *sectext,
const char *allowmask);
lj_security_to_strings ()
void lj_security_to_strings (LJSecurity *security,
char **sectext,
char **allowmask);
lj_security_append_to_request ()
void lj_security_append_to_request (LJSecurity *security,
LJRequest *request);
enum LJCommentsType
typedef enum {
LJ_COMMENTS_DEFAULT,
LJ_COMMENTS_NOEMAIL,
LJ_COMMENTS_DISABLE
} LJCommentsType;
enum LJEntryFileType
typedef enum {
LJ_ENTRY_FILE_AUTODETECT,
LJ_ENTRY_FILE_XML,
LJ_ENTRY_FILE_RFC822,
LJ_ENTRY_FILE_PLAIN
} LJEntryFileType;
lj_entry_new ()
LJEntry* lj_entry_new (void);
lj_entry_new_from_filename ()
LJEntry* lj_entry_new_from_filename (const char *filename,
LJEntryFileType type,
LJEntryFileType *typeret,
GError **err);
lj_entry_new_from_xml_node ()
LJEntry* lj_entry_new_from_xml_node (xmlDocPtr doc,
xmlNodePtr node);
lj_entry_new_single_from_result ()
LJEntry* lj_entry_new_single_from_result (LJResult *result,
GError **err);
lj_entry_copy ()
LJEntry* lj_entry_copy (LJEntry *e);
lj_entry_free ()
void lj_entry_free (LJEntry *e);
lj_entry_make_summary ()
char* lj_entry_make_summary (LJEntry *entry);
lj_get_summary ()
char* lj_get_summary (char *subject,
char *event);
lj_entry_set_request_fields ()
void lj_entry_set_request_fields (LJEntry *entry,
LJRequest *request);
lj_entry_to_xml_node ()
xmlNodePtr lj_entry_to_xml_node (LJEntry *entry,
xmlDocPtr doc);
lj_entry_to_xml_file ()
gboolean lj_entry_to_xml_file (LJEntry *entry,
const char *filename,
GError **err);
lj_entry_to_rfc822 ()
GString* lj_entry_to_rfc822 (LJEntry *entry,
gboolean includeempty);
lj_entry_to_rfc822_file ()
gboolean lj_entry_to_rfc822_file (LJEntry *entry,
const char *filename,
gboolean includeempty,
GError **err);
lj_entry_edit_with_usereditor ()
gboolean lj_entry_edit_with_usereditor (LJEntry *entry,
const char *basepath,
GError **err);
lj_entries_new_from_result ()
LJEntry** lj_entries_new_from_result (LJResult *result,
int count,
GSList **warnings);