2003-10-27 Lutz Mueller <lutz@users.sourceforge.net>
[platform/upstream/libexif.git] / libexif / exif-mnote-data-priv.h
1 /* exif-mnote-data-priv.h
2  *
3  * Copyright © 2003 Lutz Müller <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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __EXIF_MNOTE_DATA_PRIV_H__
22 #define __EXIF_MNOTE_DATA_PRIV_H__
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* __cplusplus */
27
28 #include <libexif/exif-mnote-data.h>
29 #include <libexif/exif-byte-order.h>
30
31 typedef struct _ExifMnoteDataMethods ExifMnoteDataMethods;
32 struct _ExifMnoteDataMethods {
33
34         /* Live cycle */
35         void (* free) (ExifMnoteData *);
36
37         /* Modification */
38         void (* save) (ExifMnoteData *, unsigned char **, unsigned int *);
39         void (* load) (ExifMnoteData *, const unsigned char *, unsigned int);
40         void (* set_offset)     (ExifMnoteData *, unsigned int);
41         void (* set_byte_order) (ExifMnoteData *, ExifByteOrder);
42
43         /* Query */
44         unsigned int (* count)           (ExifMnoteData *);
45         const char * (* get_name)        (ExifMnoteData *, unsigned int);
46         const char * (* get_title)       (ExifMnoteData *, unsigned int);
47         const char * (* get_description) (ExifMnoteData *, unsigned int);
48               char * (* get_value)       (ExifMnoteData *, unsigned int);
49 };
50
51 typedef struct _ExifMnoteDataPriv ExifMnoteDataPriv;
52
53 struct _ExifMnoteData 
54 {
55         ExifMnoteDataPriv *priv;
56
57         ExifMnoteDataMethods methods;
58 };
59
60 void exif_mnote_data_construct      (ExifMnoteData *);
61 void exif_mnote_data_set_byte_order (ExifMnoteData *, ExifByteOrder);
62 void exif_mnote_data_set_offset     (ExifMnoteData *, unsigned int);
63
64 #ifdef __cplusplus
65 }
66 #endif /* __cplusplus */
67
68 #endif /* __EXIF_MNOTE_PRIV_H__ */