summaryrefslogtreecommitdiff
path: root/jpeg-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'jpeg-utils.h')
-rw-r--r--jpeg-utils.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/jpeg-utils.h b/jpeg-utils.h
index 56bb51d..4c47d3c 100644
--- a/jpeg-utils.h
+++ b/jpeg-utils.h
@@ -15,9 +15,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
#include <glib.h>
+/* TODO: we want to have numerical values here at some point in the future */
typedef struct {
char *datetime;
char *camera_model;
@@ -27,15 +33,27 @@ typedef struct {
char *aperture;
char *exposure;
char *flash;
- unsigned long width;
- unsigned long height;
+
+ char *exif_software;
+ char *exif_imgdesc;
+ char *exif_artist;
+ char *exif_copyright;
+ char *exif_usercomment;
+
+ char *iptc_objectname;
+ char *iptc_copyright;
+ char *iptc_credit;
+ char *iptc_caption;
+ char *iptc_author;
+
+ char *jpeg_comment;
} TExifData;
/*
* get_exif: retrieve EXIF info from a JPEG image
*/
-int get_exif (const char *filename, TExifData *data);
+int get_exif (const char *filename, TExifData **exif_data);
/*
* free_exif_struct: free allocated structure
@@ -63,3 +81,7 @@ void get_image_sizes (const char *img,
void calculate_sizes (const unsigned long max_width, const unsigned long max_height,
unsigned long *width, unsigned long *height);
+
+#ifdef __cplusplus
+ }
+#endif \ No newline at end of file