Mercurial > geeqie.yaz
comparison src/format_raw.c @ 1002:3096a47232ec
Use gpointer instead of void *.
author | zas_ |
---|---|
date | Tue, 26 Aug 2008 22:37:18 +0000 |
parents | 4fe8f9656107 |
children | 4bfee4a63f86 |
comparison
equal
deleted
inserted
replaced
1001:d22e21bfd2a3 | 1002:3096a47232ec |
---|---|
40 typedef struct _FormatRawEntry FormatRawEntry; | 40 typedef struct _FormatRawEntry FormatRawEntry; |
41 struct _FormatRawEntry { | 41 struct _FormatRawEntry { |
42 const gchar *extension; | 42 const gchar *extension; |
43 FormatRawMatchType magic_type; | 43 FormatRawMatchType magic_type; |
44 const guint magic_offset; | 44 const guint magic_offset; |
45 const void *magic_pattern; | 45 const gpointer magic_pattern; |
46 const guint magic_length; | 46 const guint magic_length; |
47 const FormatRawExifType exif_type; | 47 const FormatRawExifType exif_type; |
48 FormatRawExifParseFunc exif_func; | 48 FormatRawExifParseFunc exif_func; |
49 const gchar *description; | 49 const gchar *description; |
50 FormatRawParseFunc func_parse; | 50 FormatRawParseFunc func_parse; |
65 | 65 |
66 | 66 |
67 typedef struct _FormatExifEntry FormatExifEntry; | 67 typedef struct _FormatExifEntry FormatExifEntry; |
68 struct _FormatExifEntry { | 68 struct _FormatExifEntry { |
69 FormatExifMatchType header_type; | 69 FormatExifMatchType header_type; |
70 const void *header_pattern; | 70 const gpointer header_pattern; |
71 const guint header_length; | 71 const guint header_length; |
72 const gchar *description; | 72 const gchar *description; |
73 FormatExifParseFunc func_parse; | 73 FormatExifParseFunc func_parse; |
74 }; | 74 }; |
75 | 75 |
297 gint format_raw_img_exif_offsets_fd(gint fd, const gchar *path, | 297 gint format_raw_img_exif_offsets_fd(gint fd, const gchar *path, |
298 guchar *header_data, const guint header_len, | 298 guchar *header_data, const guint header_len, |
299 guint *image_offset, guint *exif_offset) | 299 guint *image_offset, guint *exif_offset) |
300 { | 300 { |
301 FormatRawEntry *entry; | 301 FormatRawEntry *entry; |
302 void *map_data = NULL; | 302 gpointer map_data = NULL; |
303 size_t map_len = 0; | 303 size_t map_len = 0; |
304 struct stat st; | 304 struct stat st; |
305 gint success; | 305 gint success; |
306 | 306 |
307 if (!header_data || fd < 0) return FALSE; | 307 if (!header_data || fd < 0) return FALSE; |