mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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:
parent
5ff0837b32
commit
ba3ae60613
5 changed files with 5 additions and 5 deletions
|
@ -82,7 +82,7 @@ struct _GstVaapiDecodeClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapidecode_get_type(void);
|
||||
gst_vaapidecode_get_type(void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ struct _GstVaapiPostprocClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapipostproc_get_type(void);
|
||||
gst_vaapipostproc_get_type(void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ struct _GstVaapiSinkClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapisink_get_type(void);
|
||||
gst_vaapisink_get_type(void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ struct _GstVaapiUploadClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapiupload_get_type(void);
|
||||
gst_vaapiupload_get_type(void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue