[gimp/metadata-browser] file-jpeg: Add header cladding



commit 1834a1ff40240863afbb46bb7dfa90b242ebe020
Author: Mukund Sivaraman <muks banu com>
Date:   Sun Sep 18 08:00:20 2011 +0530

    file-jpeg: Add header cladding

 plug-ins/file-jpeg/gimpexif.h      |    5 +++++
 plug-ins/file-jpeg/jpeg-exif.h     |    5 +++++
 plug-ins/file-jpeg/jpeg-icc.h      |    5 +++++
 plug-ins/file-jpeg/jpeg-load.h     |    5 +++++
 plug-ins/file-jpeg/jpeg-quality.h  |    5 +++++
 plug-ins/file-jpeg/jpeg-save.h     |    5 +++++
 plug-ins/file-jpeg/jpeg-settings.h |    5 +++++
 plug-ins/file-jpeg/jpeg.h          |    6 ++++++
 8 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/file-jpeg/gimpexif.h b/plug-ins/file-jpeg/gimpexif.h
index 3700637..65b9986 100644
--- a/plug-ins/file-jpeg/gimpexif.h
+++ b/plug-ins/file-jpeg/gimpexif.h
@@ -19,6 +19,9 @@
  * EXIF-handling code for the metadata library.
  */
 
+#ifndef __GIMP_EXIF_H__
+#define __GIMP_EXIF_H__
+
 #ifdef HAVE_LIBEXIF
 
 void          gimp_metadata_store_exif    (gint32       image_ID,
@@ -36,3 +39,5 @@ void          gimp_exif_data_remove_entry (ExifData    *exif_data,
                                            ExifTag      tag);
 
 #endif /* HAVE_LIBEXIF */
+
+#endif /* __GIMP_EXIF_H__ */
diff --git a/plug-ins/file-jpeg/jpeg-exif.h b/plug-ins/file-jpeg/jpeg-exif.h
index 725dfa9..57fe730 100644
--- a/plug-ins/file-jpeg/jpeg-exif.h
+++ b/plug-ins/file-jpeg/jpeg-exif.h
@@ -15,6 +15,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __JPEG_EXIF_H__
+#define __JPEG_EXIF_H__
+
 #ifdef HAVE_LIBEXIF
 
 extern ExifData *exif_data;
@@ -38,3 +41,5 @@ void      jpeg_exif_rotate_query        (gint32         image_ID,
                                          gint           orientation);
 
 #endif /* HAVE_LIBEXIF */
+
+#endif /* __JPEG_EXIF_H__ */
diff --git a/plug-ins/file-jpeg/jpeg-icc.h b/plug-ins/file-jpeg/jpeg-icc.h
index bdf70fa..b5306a8 100644
--- a/plug-ins/file-jpeg/jpeg-icc.h
+++ b/plug-ins/file-jpeg/jpeg-icc.h
@@ -19,6 +19,9 @@
  *  included in all copies or substantial portions of the Software.
  */
 
+#ifndef __JPEG_ICC_H__
+#define __JPEG_ICC_H__
+
 void jpeg_icc_write_profile (j_compress_ptr  cinfo,
                              const guchar   *icc_data_ptr,
                              guint           icc_data_len);
@@ -52,3 +55,5 @@ void jpeg_icc_write_profile (j_compress_ptr  cinfo,
 gboolean jpeg_icc_read_profile (j_decompress_ptr   cinfo,
                                 guchar           **icc_data_ptr,
                                 guint             *icc_data_len);
+
+#endif /* __JPEG_ICC_H__ */
diff --git a/plug-ins/file-jpeg/jpeg-load.h b/plug-ins/file-jpeg/jpeg-load.h
index b05a100..1225d7e 100644
--- a/plug-ins/file-jpeg/jpeg-load.h
+++ b/plug-ins/file-jpeg/jpeg-load.h
@@ -15,6 +15,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __JPEG_LOAD_H__
+#define __JPEG_LOAD_H__
+
 gint32 load_image           (const gchar  *filename,
                              GimpRunMode   runmode,
                              gboolean      preview,
@@ -29,3 +32,5 @@ gint32 load_thumbnail_image (const gchar  *filename,
                              GError      **error);
 
 #endif /* HAVE_LIBEXIF */
+
+#endif /* __JPEG_LOAD_H__ */
diff --git a/plug-ins/file-jpeg/jpeg-quality.h b/plug-ins/file-jpeg/jpeg-quality.h
index 2a8c619..732902c 100644
--- a/plug-ins/file-jpeg/jpeg-quality.h
+++ b/plug-ins/file-jpeg/jpeg-quality.h
@@ -18,4 +18,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __JPEG_QUALITY_H__
+#define __JPEG_QUALITY_H__
+
 gint jpeg_detect_quality (struct jpeg_decompress_struct *cinfo);
+
+#endif /* __JPEG_QUALITY_H__ */
diff --git a/plug-ins/file-jpeg/jpeg-save.h b/plug-ins/file-jpeg/jpeg-save.h
index 8f8eff8..0d22c8a 100644
--- a/plug-ins/file-jpeg/jpeg-save.h
+++ b/plug-ins/file-jpeg/jpeg-save.h
@@ -15,6 +15,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __JPEG_SAVE_H__
+#define __JPEG_SAVE_H__
+
 typedef struct
 {
   gdouble          quality;
@@ -46,3 +49,5 @@ gboolean    save_image         (const gchar  *filename,
                                 GError      **error);
 gboolean    save_dialog        (void);
 void        load_save_defaults (void);
+
+#endif /* __JPEG_SAVE_H__ */
diff --git a/plug-ins/file-jpeg/jpeg-settings.h b/plug-ins/file-jpeg/jpeg-settings.h
index d2cd920..b33df61 100644
--- a/plug-ins/file-jpeg/jpeg-settings.h
+++ b/plug-ins/file-jpeg/jpeg-settings.h
@@ -18,6 +18,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __JPEG_SETTINGS_H__
+#define __JPEG_SETTINGS_H__
+
 gboolean  jpeg_detect_original_settings  (struct jpeg_decompress_struct *cinfo,
                                           gint32           image_ID);
 
@@ -30,3 +33,5 @@ guint   **jpeg_restore_original_tables   (gint32           image_ID,
                                           gint             num_quant_tables);
 
 void      jpeg_swap_original_settings    (gint32           image_ID);
+
+#endif /* __JPEG_SETTINGS_H__ */
diff --git a/plug-ins/file-jpeg/jpeg.h b/plug-ins/file-jpeg/jpeg.h
index ae67b66..ed7c136 100644
--- a/plug-ins/file-jpeg/jpeg.h
+++ b/plug-ins/file-jpeg/jpeg.h
@@ -15,6 +15,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef __JPEG_H__
+#define __JPEG_H__
+
 #define LOAD_PROC       "file-jpeg-load"
 #define LOAD_THUMB_PROC "file-jpeg-load-thumb"
 #define SAVE_PROC       "file-jpeg-save"
@@ -67,3 +70,6 @@ void      my_error_exit                 (j_common_ptr   cinfo);
 void      my_emit_message               (j_common_ptr   cinfo,
                                          int            msg_level);
 void      my_output_message             (j_common_ptr   cinfo);
+
+
+#endif /* __JPEG_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]