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

EXIF library (libexif) API 0.6.25

exif-mnote-data-priv.h
1/* exif-mnote-data-priv.h
2 *
3 * Copyright (c) 2003 Lutz Mueller <lutz@users.sourceforge.net>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA.
19 *
20 * SPDX-License-Identifier: LGPL-2.0-or-later
21 */
22
23#ifndef LIBEXIF_EXIF_MNOTE_DATA_PRIV_H
24#define LIBEXIF_EXIF_MNOTE_DATA_PRIV_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
30#include <libexif/exif-mnote-data.h>
31#include <libexif/exif-byte-order.h>
32#include <libexif/exif-log.h>
33
35typedef struct _ExifMnoteDataMethods ExifMnoteDataMethods;
36
38 struct _ExifMnoteDataMethods {
39
40 /* Life cycle */
41 void (* free) (ExifMnoteData *);
42
43 /* Modification */
44 void (* save) (ExifMnoteData *, unsigned char **, unsigned int *);
45 void (* load) (ExifMnoteData *, const unsigned char *, unsigned int);
46 void (* set_offset) (ExifMnoteData *, unsigned int);
47 void (* set_byte_order) (ExifMnoteData *, ExifByteOrder);
48
49 /* Query */
50 unsigned int (* count) (ExifMnoteData *);
51 unsigned int (* get_id) (ExifMnoteData *, unsigned int);
52 const char * (* get_name) (ExifMnoteData *, unsigned int);
53 const char * (* get_title) (ExifMnoteData *, unsigned int);
54 const char * (* get_description) (ExifMnoteData *, unsigned int);
55 char * (* get_value) (ExifMnoteData *, unsigned int, char *val, unsigned int maxlen);
56};
57
59typedef struct _ExifMnoteDataPriv ExifMnoteDataPriv;
60
62 struct _ExifMnoteData
63{
64 ExifMnoteDataPriv *priv;
65
66 ExifMnoteDataMethods methods;
67
68 /* Logging */
69 ExifLog *log;
70
71 /* Memory management */
72 ExifMem *mem;
73};
74
76void exif_mnote_data_construct (ExifMnoteData *, ExifMem *mem);
77
79void exif_mnote_data_set_byte_order (ExifMnoteData *, ExifByteOrder);
80
82void exif_mnote_data_set_offset (ExifMnoteData *, unsigned int);
83
84#ifdef __cplusplus
85}
86#endif /* __cplusplus */
87
88#endif /* !defined(LIBEXIF_EXIF_MNOTE_DATA_PRIV_H) */
exif-byte-order.h
Defines the ExifByteOrder enum and the associated functions.
ExifByteOrder
ExifByteOrder
Which byte order to use.
Definition exif-byte-order.h:33
exif-log.h
Log message infrastructure.
ExifLog
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition exif-log.h:36
ExifMem
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition exif-mem.h:59
exif-mnote-data.h
Handling EXIF MakerNote tags.
_ExifMnoteDataMethods
Definition exif-mnote-data-priv.h:38
_ExifMnoteData
Definition exif-mnote-data-priv.h:63