summaryrefslogtreecommitdiff
path: root/libgphoto2/jpeg.h
diff options
context:
space:
mode:
authorNathan Stenzel <nathanstenzel@users.sourceforge.net>2001-09-13 13:55:53 +0000
committerNathan Stenzel <nathanstenzel@users.sourceforge.net>2001-09-13 13:55:53 +0000
commitf82fa6df05d5212600d63e4415e190f3a729eb3a (patch)
tree5923e6fe74d44a5c8113c682178bd12ab2a12e54 /libgphoto2/jpeg.h
parent1bad288574bffc933fba06ac4333e2e4d2a4d52a (diff)
downloadlibgphoto2-f82fa6df05d5212600d63e4415e190f3a729eb3a.tar.gz
Changed "struct" to "typedef struct".
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2245 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/jpeg.h')
-rw-r--r--libgphoto2/jpeg.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/libgphoto2/jpeg.h b/libgphoto2/jpeg.h
index e70611123..d09f8524c 100644
--- a/libgphoto2/jpeg.h
+++ b/libgphoto2/jpeg.h
@@ -33,35 +33,35 @@ const char *JPEG_MARKERNAMES[] = {
"Huffman table", "SsSeAhAl", "SOFC0"
};
-struct chunk{
+typedef struct chunk{
int size;
unsigned char *data;
-};
+} chunk;
-void chunk_new(struct chunk *mychunk, int length);
+void chunk_new(chunk *mychunk, int length);
-void chunk_print(struct chunk *mychunk);
+void chunk_print(chunk *mychunk);
-void chunk_destroy(struct chunk *mychunk);
+void chunk_destroy(chunk *mychunk);
-struct jpeg {
+typedef struct jpeg {
int count;
struct chunk marker[20]; /* I think this should be big enough */
-};
+}jpeg;
-void jpeg_init(struct jpeg *myjpeg);
+void jpeg_init(jpeg *myjpeg);
-void jpeg_destroy(struct jpeg *myjpeg);
+void jpeg_destroy(jpeg *myjpeg);
-char jpeg_findff(int *location, struct chunk *picture);
+char jpeg_findff(int *location, chunk *picture);
-char jpeg_findactivemarker(char *id, int *location, struct chunk *picture);
+char jpeg_findactivemarker(char *id, int *location, chunk *picture);
-void jpeg_add_marker(struct jpeg *myjpeg, struct chunk *picture, int start, int end);
+void jpeg_add_marker(jpeg *myjpeg, chunk *picture, int start, int end);
-void jpeg_parse(struct jpeg *myjpeg, struct chunk *picture);
+void jpeg_parse(jpeg *myjpeg, chunk *picture);
-void jpeg_print(struct jpeg *myjpeg);
+void jpeg_print(jpeg *myjpeg);
char *jpeg_markername(int c);