summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-06-29 08:45:47 +0900
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-07-19 15:19:17 +0200
commitba3ae6061333d63fe3454d7e9d4e92e493cbb237 (patch)
tree35e2313809f218346a39ff3ef5100305e81fb269
parent5ff0837b32173ab7981c254bc25889e913a5b837 (diff)
plugins: declare _get_type() functions as const.
Declaring a function as const enables better optimization of calls to the function. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
-rw-r--r--gst/vaapi/gstvaapidecode.h2
-rw-r--r--gst/vaapi/gstvaapidownload.h2
-rw-r--r--gst/vaapi/gstvaapipostproc.h2
-rw-r--r--gst/vaapi/gstvaapisink.h2
-rw-r--r--gst/vaapi/gstvaapiupload.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h
index 6a5792df..60b25155 100644
--- a/gst/vaapi/gstvaapidecode.h
+++ b/gst/vaapi/gstvaapidecode.h
@@ -82,7 +82,7 @@ struct _GstVaapiDecodeClass {
};
GType
-gst_vaapidecode_get_type(void);
+gst_vaapidecode_get_type(void) G_GNUC_CONST;
G_END_DECLS
diff --git a/gst/vaapi/gstvaapidownload.h b/gst/vaapi/gstvaapidownload.h
index 70df9b9a..7a594c4d 100644
--- a/gst/vaapi/gstvaapidownload.h
+++ b/gst/vaapi/gstvaapidownload.h
@@ -60,7 +60,7 @@ typedef struct _GstVaapiDownload GstVaapiDownload;
typedef struct _GstVaapiDownloadClass GstVaapiDownloadClass;
GType
-gst_vaapidownload_get_type(void);
+gst_vaapidownload_get_type(void) G_GNUC_CONST;
G_END_DECLS
diff --git a/gst/vaapi/gstvaapipostproc.h b/gst/vaapi/gstvaapipostproc.h
index 281d2863..6ec56d1c 100644
--- a/gst/vaapi/gstvaapipostproc.h
+++ b/gst/vaapi/gstvaapipostproc.h
@@ -116,7 +116,7 @@ struct _GstVaapiPostprocClass {
};
GType
-gst_vaapipostproc_get_type(void);
+gst_vaapipostproc_get_type(void) G_GNUC_CONST;
G_END_DECLS
diff --git a/gst/vaapi/gstvaapisink.h b/gst/vaapi/gstvaapisink.h
index b7c06d80..b22a8d39 100644
--- a/gst/vaapi/gstvaapisink.h
+++ b/gst/vaapi/gstvaapisink.h
@@ -92,7 +92,7 @@ struct _GstVaapiSinkClass {
};
GType
-gst_vaapisink_get_type(void);
+gst_vaapisink_get_type(void) G_GNUC_CONST;
G_END_DECLS
diff --git a/gst/vaapi/gstvaapiupload.h b/gst/vaapi/gstvaapiupload.h
index 425054ec..386a62c3 100644
--- a/gst/vaapi/gstvaapiupload.h
+++ b/gst/vaapi/gstvaapiupload.h
@@ -85,7 +85,7 @@ struct _GstVaapiUploadClass {
};
GType
-gst_vaapiupload_get_type(void);
+gst_vaapiupload_get_type(void) G_GNUC_CONST;
G_END_DECLS