exif-mnote-data.h
Go to the documentation of this file.
/*
* Copyright (c) 2003 Lutz Mueller <lutz@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*/
#ifndef __EXIF_MNOTE_DATA_H__
#define __EXIF_MNOTE_DATA_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include <libexif/exif-log.h>
typedef struct _ExifMnoteData ExifMnoteData;
void exif_mnote_data_ref (ExifMnoteData *);
void exif_mnote_data_unref (ExifMnoteData *);
void exif_mnote_data_load (ExifMnoteData *d, const unsigned char *buf,
unsigned int buf_siz);
void exif_mnote_data_save (ExifMnoteData *d, unsigned char **buf,
unsigned int *buf_siz);
unsigned int exif_mnote_data_count (ExifMnoteData *d);
unsigned int exif_mnote_data_get_id (ExifMnoteData *d, unsigned int n);
const char *exif_mnote_data_get_name (ExifMnoteData *d, unsigned int n);
const char *exif_mnote_data_get_title (ExifMnoteData *d, unsigned int n);
const char *exif_mnote_data_get_description (ExifMnoteData *d, unsigned int n);
char *exif_mnote_data_get_value (ExifMnoteData *d, unsigned int n, char *val, unsigned int maxlen);
void exif_mnote_data_log (ExifMnoteData *, ExifLog *);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __EXIF_MNOTE_DATA_H__ */
ExifLog
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition: exif-log.h:34
exif-mnote-data.h
Handling EXIF MakerNote tags.
exif_mnote_data_load
void exif_mnote_data_load(ExifMnoteData *d, const unsigned char *buf, unsigned int buf_siz)
Load the MakerNote data from a memory buffer.
Definition: exif-mnote-data.c:80
exif_mnote_data_save
void exif_mnote_data_save(ExifMnoteData *d, unsigned char **buf, unsigned int *buf_siz)
Save the raw MakerNote data into a memory buffer.
Definition: exif-mnote-data.c:88
_ExifMnoteData
Definition: exif-mnote-data-priv.h:60
exif_mem_unref
void exif_mem_unref(ExifMem *)
Unrefcount an ExifMem.
Definition: exif-mem.c:61
exif_mnote_data_get_value
char * exif_mnote_data_get_value(ExifMnoteData *d, unsigned int n, char *val, unsigned int maxlen)
Return a textual representation of the value of the MakerNote entry.
Definition: exif-mnote-data.c:145
exif_mnote_data_get_name
const char * exif_mnote_data_get_name(ExifMnoteData *d, unsigned int n)
Returns textual name of the given MakerNote tag.
Definition: exif-mnote-data.c:124
exif-log.h
Log message infrastructure.
exif_mnote_data_get_title
const char * exif_mnote_data_get_title(ExifMnoteData *d, unsigned int n)
Returns textual title of the given MakerNote tag.
Definition: exif-mnote-data.c:131
exif_mnote_data_get_id
unsigned int exif_mnote_data_get_id(ExifMnoteData *d, unsigned int n)
Return the MakerNote tag number for the tag at the specified index within the MakerNote.
Definition: exif-mnote-data.c:117
ExifByteOrder
ExifByteOrder
Which byte order to use.
Definition: exif-byte-order.h:31
ExifMem
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition: exif-mem.h:57
exif_mnote_data_get_description
const char * exif_mnote_data_get_description(ExifMnoteData *d, unsigned int n)
Returns verbose textual description of the given MakerNote tag.
Definition: exif-mnote-data.c:138
exif_mnote_data_count
unsigned int exif_mnote_data_count(ExifMnoteData *d)
Return the number of tags in the MakerNote.
Definition: exif-mnote-data.c:110
exif_mem_ref
void exif_mem_ref(ExifMem *)
Refcount an ExifMem.
Definition: exif-mem.c:54