From: Javier Jardón Date: Thu, 28 Jun 2012 23:45:47 +0000 (+0900) Subject: plugins: declare _get_type() functions as const. X-Git-Tag: 0.4.0~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba3ae6061333d63fe3454d7e9d4e92e493cbb237;p=platform%2Fupstream%2Fgstreamer-vaapi.git 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 --- diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h index 6a5792d..60b2515 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 70df9b9..7a594c4 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 281d286..6ec56d1 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 b7c06d8..b22a8d3 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 425054e..386a62c 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