EXIF library (libexif) API: libexif/exif-mnote-data.h Source File

EXIF library (libexif) API 0.6.25

exif-mnote-data.h
Go to the documentation of this file.
1
4/*
5 * Copyright (c) 2003 Lutz Mueller <lutz@users.sourceforge.net>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301 USA.
21 *
22 * SPDX-License-Identifier: LGPL-2.0-or-later
23 */
24
25#ifndef LIBEXIF_EXIF_MNOTE_DATA_H
26#define LIBEXIF_EXIF_MNOTE_DATA_H
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* __cplusplus */
31
32#include <libexif/exif-log.h>
33
35 typedef struct _ExifMnoteData ExifMnoteData;
36
37void exif_mnote_data_ref (ExifMnoteData *);
38void exif_mnote_data_unref (ExifMnoteData *);
39
46void exif_mnote_data_load (ExifMnoteData *d, const unsigned char *buf,
47 unsigned int buf_size);
48
58void exif_mnote_data_save (ExifMnoteData *d, unsigned char **buf,
59 unsigned int *buf_size);
60
66unsigned int exif_mnote_data_count (ExifMnoteData *d);
67
75unsigned int exif_mnote_data_get_id (ExifMnoteData *d, unsigned int n);
76
85const char *exif_mnote_data_get_name (ExifMnoteData *d, unsigned int n);
86
94const char *exif_mnote_data_get_title (ExifMnoteData *d, unsigned int n);
95
102const char *exif_mnote_data_get_description (ExifMnoteData *d, unsigned int n);
103
116char *exif_mnote_data_get_value (ExifMnoteData *d, unsigned int n, char *val, unsigned int maxlen);
117
118void exif_mnote_data_log (ExifMnoteData *, ExifLog *);
119
120#ifdef __cplusplus
121}
122#endif /* __cplusplus */
123
124#endif /* !defined(LIBEXIF_EXIF_MNOTE_DATA_H) */
exif-log.h
Log message infrastructure.
ExifLog
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition exif-log.h:36
exif_mnote_data_load
void exif_mnote_data_load(ExifMnoteData *d, const unsigned char *buf, unsigned int buf_size)
Load the MakerNote data from a memory buffer.
Definition exif-mnote-data.c:82
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:147
exif_mnote_data_save
void exif_mnote_data_save(ExifMnoteData *d, unsigned char **buf, unsigned int *buf_size)
Save the raw MakerNote data into a memory buffer.
Definition exif-mnote-data.c:90
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:140
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:119
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:133
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:126
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:112
_ExifMnoteData
Definition exif-mnote-data-priv.h:63