libmobi
C library for handling MOBI format ebook documents
|
Functions for metadata manipulation. More...
Macros | |
#define | _GNU_SOURCE 1 |
#define | __USE_BSD /* for strdup on linux/glibc */ |
Functions | |
char * | mobi_meta_get_exthstring (const MOBIData *m, const MOBIExthTag exth_tag) |
Get document metadata from exth string. More... | |
char * | mobi_meta_get_title (const MOBIData *m) |
Get document title metadata. More... | |
MOBI_RET | mobi_meta_add_title (MOBIData *m, const char *title) |
Add document title metadata. More... | |
MOBI_RET | mobi_meta_delete_title (MOBIData *m) |
Delete all title metadata. More... | |
MOBI_RET | mobi_meta_set_title (MOBIData *m, const char *title) |
Set document title metadata. More... | |
char * | mobi_meta_get_author (const MOBIData *m) |
Get document author metadata. More... | |
MOBI_RET | mobi_meta_add_author (MOBIData *m, const char *author) |
Add document author metadata. More... | |
MOBI_RET | mobi_meta_delete_author (MOBIData *m) |
Delete all author metadata. More... | |
MOBI_RET | mobi_meta_set_author (MOBIData *m, const char *author) |
Set document author metadata. More... | |
char * | mobi_meta_get_subject (const MOBIData *m) |
Get document subject metadata. More... | |
MOBI_RET | mobi_meta_add_subject (MOBIData *m, const char *subject) |
Add document subject metadata. More... | |
MOBI_RET | mobi_meta_delete_subject (MOBIData *m) |
Delete all subject metadata. More... | |
MOBI_RET | mobi_meta_set_subject (MOBIData *m, const char *subject) |
Set document subject metadata. More... | |
char * | mobi_meta_get_publisher (const MOBIData *m) |
Get document publisher metadata. More... | |
MOBI_RET | mobi_meta_add_publisher (MOBIData *m, const char *publisher) |
Add document publisher metadata. More... | |
MOBI_RET | mobi_meta_delete_publisher (MOBIData *m) |
Delete all publisher metadata. More... | |
MOBI_RET | mobi_meta_set_publisher (MOBIData *m, const char *publisher) |
Set document publisher metadata. More... | |
char * | mobi_meta_get_publishdate (const MOBIData *m) |
Get document publishing date metadata. More... | |
MOBI_RET | mobi_meta_add_publishdate (MOBIData *m, const char *publishdate) |
Add document publishdate metadata. More... | |
MOBI_RET | mobi_meta_delete_publishdate (MOBIData *m) |
Delete all publishdate metadata. More... | |
MOBI_RET | mobi_meta_set_publishdate (MOBIData *m, const char *publishdate) |
Set document publishdate metadata. More... | |
char * | mobi_meta_get_description (const MOBIData *m) |
Get document description metadata. More... | |
MOBI_RET | mobi_meta_add_description (MOBIData *m, const char *description) |
Add document description metadata. More... | |
MOBI_RET | mobi_meta_delete_description (MOBIData *m) |
Delete all description metadata. More... | |
MOBI_RET | mobi_meta_set_description (MOBIData *m, const char *description) |
Set document description metadata. More... | |
char * | mobi_meta_get_imprint (const MOBIData *m) |
Get document imprint metadata. More... | |
MOBI_RET | mobi_meta_add_imprint (MOBIData *m, const char *imprint) |
Add document imprint metadata. More... | |
MOBI_RET | mobi_meta_delete_imprint (MOBIData *m) |
Delete all imprint metadata. More... | |
MOBI_RET | mobi_meta_set_imprint (MOBIData *m, const char *imprint) |
Set document imprint metadata. More... | |
char * | mobi_meta_get_contributor (const MOBIData *m) |
Get document contributor metadata. More... | |
MOBI_RET | mobi_meta_add_contributor (MOBIData *m, const char *contributor) |
Add document contributor metadata. More... | |
MOBI_RET | mobi_meta_delete_contributor (MOBIData *m) |
Delete all contributor metadata. More... | |
MOBI_RET | mobi_meta_set_contributor (MOBIData *m, const char *contributor) |
Set document contributor metadata. More... | |
char * | mobi_meta_get_review (const MOBIData *m) |
Get document review metadata. More... | |
MOBI_RET | mobi_meta_add_review (MOBIData *m, const char *review) |
Add document review metadata. More... | |
MOBI_RET | mobi_meta_delete_review (MOBIData *m) |
Delete all review metadata. More... | |
MOBI_RET | mobi_meta_set_review (MOBIData *m, const char *review) |
Set document review metadata. More... | |
char * | mobi_meta_get_copyright (const MOBIData *m) |
Get document copyright metadata. More... | |
MOBI_RET | mobi_meta_add_copyright (MOBIData *m, const char *copyright) |
Add document copyright metadata. More... | |
MOBI_RET | mobi_meta_delete_copyright (MOBIData *m) |
Delete all copyright metadata. More... | |
MOBI_RET | mobi_meta_set_copyright (MOBIData *m, const char *copyright) |
Set document copyright metadata. More... | |
char * | mobi_meta_get_isbn (const MOBIData *m) |
Get document ISBN metadata. More... | |
MOBI_RET | mobi_meta_add_isbn (MOBIData *m, const char *isbn) |
Add document isbn metadata. More... | |
MOBI_RET | mobi_meta_delete_isbn (MOBIData *m) |
Delete all isbn metadata. More... | |
MOBI_RET | mobi_meta_set_isbn (MOBIData *m, const char *isbn) |
Set document isbn metadata. More... | |
char * | mobi_meta_get_asin (const MOBIData *m) |
Get document ASIN metadata. More... | |
MOBI_RET | mobi_meta_add_asin (MOBIData *m, const char *asin) |
Add document asin metadata. More... | |
MOBI_RET | mobi_meta_delete_asin (MOBIData *m) |
Delete all asin metadata. More... | |
MOBI_RET | mobi_meta_set_asin (MOBIData *m, const char *asin) |
Set document asin metadata. More... | |
char * | mobi_meta_get_language (const MOBIData *m) |
Get document language code metadata. More... | |
MOBI_RET | mobi_meta_add_language (MOBIData *m, const char *language) |
Add document language code metadata. More... | |
MOBI_RET | mobi_meta_delete_language (MOBIData *m) |
Delete all language code metadata. More... | |
MOBI_RET | mobi_meta_set_language (MOBIData *m, const char *language) |
Set document language code metadata. More... | |
Functions for metadata manipulation.
Copyright (c) 2016 Bartek Fabiszewski http://www.fabiszewski.net
This file is part of libmobi. Licensed under LGPL, either version 3, or any later. See http://www.gnu.org/licenses/
char* mobi_meta_get_exthstring | ( | const MOBIData * | m, |
const MOBIExthTag | exth_tag | ||
) |
Get document metadata from exth string.
Returned string must be deallocated by caller
[in] | m | MOBIData structure with loaded data |
[in] | exth_tag | MOBIExthTag |