7ba0ddd1fdbb6cb1a9f5046bb7ccb58fd166e0a1
[platform/upstream/libexif.git] / libexif / samsung / mnote-samsung-entry.h
1 /*
2  * libexif
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Sangchul Lee <sc11.lee@samsung.com>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 #ifndef __MNOTE_SAMSUNG_ENTRY_H__
25 #define __MNOTE_SAMSUNG_ENTRY_H__
26
27 #include <libexif/exif-format.h>
28 #include <libexif/exif-byte-order.h>
29 #include <libexif/samsung/mnote-samsung-tag.h>
30
31 typedef struct _MnoteSamsungEntry        MnoteSamsungEntry;
32
33 struct _MnoteSamsungEntry {
34         MnoteSamsungTag tag;
35         ExifFormat format;
36         unsigned long components;
37
38         unsigned char *data;
39         unsigned int size;
40
41         ExifByteOrder order;
42 };
43
44 void    mnote_samsung_entry_set_value_by_index (MnoteSamsungEntry *entry, int index);
45
46 void    mnote_samsung_entry_set_value_by_string (MnoteSamsungEntry *entry, unsigned char* string, unsigned int len);
47
48 void    mnote_samsung_entry_set_value_by_subtag (MnoteSamsungEntry *entry, MnoteSamsungSubTag stag1, int sindex1, MnoteSamsungSubTag stag2, int sindex2, ExifShort sval);
49
50 char    *mnote_samsung_entry_get_value (const MnoteSamsungEntry *, char *v, unsigned int maxlen);
51
52 #endif /* __MNOTE_SAMSUNG_ENTRY_H__ */