summaryrefslogtreecommitdiff
path: root/ext/standard/php_image.h
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2002-03-04 07:21:30 +0000
committerRasmus Lerdorf <rasmus@php.net>2002-03-04 07:21:30 +0000
commit83e6dbcf192a8ad63b33580f86c68155ed30efc1 (patch)
treeaa0368e4238e5ea6f291848f5756927fe3981003 /ext/standard/php_image.h
parent9c8ad6614f5526cc98f4b18fcfaa69cb8e4b3a0a (diff)
downloadphp-git-83e6dbcf192a8ad63b33580f86c68155ed30efc1.tar.gz
Let getimagesize() and read_exif_data() share the same constants to
promote a little bit of code reuse here on two very similar problems.
Diffstat (limited to 'ext/standard/php_image.h')
-rw-r--r--ext/standard/php_image.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/standard/php_image.h b/ext/standard/php_image.h
index 3cde4e6ba0..d8a68efec7 100644
--- a/ext/standard/php_image.h
+++ b/ext/standard/php_image.h
@@ -23,4 +23,20 @@
PHP_FUNCTION(getimagesize);
+/* {{{ enum image_filetype
+ This enum is used to have ext/standard/image.c and ext/exif/exif.c use
+ the same constants for file types.
+*/
+typedef enum
+{ IMAGE_FILETYPE_UNKNOWN=0,
+ IMAGE_FILETYPE_GIF=1,
+ IMAGE_FILETYPE_JPEG,
+ IMAGE_FILETYPE_PNG,
+ IMAGE_FILETYPE_SWF,
+ IMAGE_FILETYPE_PSD,
+ IMAGE_FILETYPE_BMP,
+ IMAGE_FILETYPE_TIFF
+} image_filetype;
+/* }}} */
+
#endif /* PHP_IMAGE_H */