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>
This commit is contained in:
Javier Jardón 2012-06-29 08:45:47 +09:00 committed by Gwenole Beauchesne
parent 5ff0837b32
commit ba3ae60613
5 changed files with 5 additions and 5 deletions

View file

@ -82,7 +82,7 @@ struct _GstVaapiDecodeClass {
};
GType
gst_vaapidecode_get_type(void);
gst_vaapidecode_get_type(void) G_GNUC_CONST;
G_END_DECLS

View file

@ -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

View file

@ -116,7 +116,7 @@ struct _GstVaapiPostprocClass {
};
GType
gst_vaapipostproc_get_type(void);
gst_vaapipostproc_get_type(void) G_GNUC_CONST;
G_END_DECLS

View file

@ -92,7 +92,7 @@ struct _GstVaapiSinkClass {
};
GType
gst_vaapisink_get_type(void);
gst_vaapisink_get_type(void) G_GNUC_CONST;
G_END_DECLS

View file

@ -85,7 +85,7 @@ struct _GstVaapiUploadClass {
};
GType
gst_vaapiupload_get_type(void);
gst_vaapiupload_get_type(void) G_GNUC_CONST;
G_END_DECLS