From 8a722d04938583dc3620de05fd52f0baecce9fbb Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 10 May 2009 14:21:20 +0200 Subject: Consolidate data types --- src/jpeg-utils.h | 60 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'src/jpeg-utils.h') diff --git a/src/jpeg-utils.h b/src/jpeg-utils.h index 9b8919f..65e97c5 100644 --- a/src/jpeg-utils.h +++ b/src/jpeg-utils.h @@ -25,35 +25,35 @@ /* TODO: we want to have numerical values here at some point in the future */ typedef struct { - char *datetime; - char *camera_model; - char *iso; - char *focal_length; - char *focal_length_35mm; - char *aperture; - char *exposure; - char *flash; - - 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; + gchar *datetime; + gchar *camera_model; + gchar *iso; + gchar *focal_length; + gchar *focal_length_35mm; + gchar *aperture; + gchar *exposure; + gchar *flash; + + gchar *exif_software; + gchar *exif_imgdesc; + gchar *exif_artist; + gchar *exif_copyright; + gchar *exif_usercomment; + + gchar *iptc_objectname; + gchar *iptc_copyright; + gchar *iptc_credit; + gchar *iptc_caption; + gchar *iptc_author; + + gchar *jpeg_comment; } TExifData; /* * get_exif: retrieve EXIF info from a JPEG image */ -int get_exif (const char *filename, TExifData **exif_data); +int get_exif (const gchar *filename, TExifData **exif_data); /* * free_exif_struct: free allocated structure @@ -65,28 +65,28 @@ void free_exif_data (TExifData *data); * resize_image: resize image pointed by src and save result to dst * - setting thumbnail flag will remove all profiles and optimize for size */ -gboolean resize_image (const char *src, const char *dst, - int size_x, int size_y, - int quality, - gboolean thumbnail); +gboolean resize_image (const gchar *src, const gchar *dst, + int size_x, int size_y, + int quality, + gboolean thumbnail); /* * get_image_sizes: retrieve image dimensions */ -void get_image_sizes (const char *img, +void get_image_sizes (const gchar *img, unsigned long *width, unsigned long *height); /* * calculate_sizes: calculate maximal image sizes within specified limits keeping aspect ratio */ void calculate_sizes (const unsigned long max_width, const unsigned long max_height, - unsigned long *width, unsigned long *height); + unsigned long *width, unsigned long *height); /* * modify_exif: - strip thumbnail stored in EXIF table * - add copyright to Exif::Image::Copyright and Iptc::Application2::Copyright */ -void modify_exif (const char *filename, gboolean strip_thumbnail, const char *add_copyright); +void modify_exif (const gchar *filename, gboolean strip_thumbnail, const gchar *add_copyright); #ifdef __cplusplus -- cgit v1.2.3