summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-03-07 12:06:35 +0100
committerBastien Nocera <hadess@hadess.net>2022-03-09 17:49:33 +0100
commit307ce47e7d7eb331c1a647a743ce0744c69f42cf (patch)
tree5eb33beb907c5ac0dcb259e7635278a6276a9c01
parentefde2127a9bbb87026dddc077f0243b24f2341ea (diff)
downloadtotem-307ce47e7d7eb331c1a647a743ce0744c69f42cf.tar.gz
gst: Use #pragma once in headers
-rw-r--r--src/gst/totem-gst-helpers.h11
-rw-r--r--src/gst/totem-gst-pixbuf-helpers.h12
-rw-r--r--src/gst/totem-time-helpers.h5
3 files changed, 3 insertions, 25 deletions
diff --git a/src/gst/totem-gst-helpers.h b/src/gst/totem-gst-helpers.h
index b1d5d01b2..923030ad3 100644
--- a/src/gst/totem-gst-helpers.h
+++ b/src/gst/totem-gst-helpers.h
@@ -25,15 +25,10 @@
*
*/
-#ifndef HAVE_TOTEM_GST_HELPERS_H
-#define HAVE_TOTEM_GST_HELPERS_H
-
-#define GST_USE_UNSTABLE_API 1
+#pragma once
#include <gst/gst.h>
-G_BEGIN_DECLS
-
/* GstPlayFlags flags from playbin */
typedef enum {
GST_PLAY_FLAG_VIDEO = (1 << 0),
@@ -55,7 +50,3 @@ void totem_gst_message_print (GstMessage *msg,
const char *filename);
void totem_gst_disable_hardware_decoders (void);
-
-G_END_DECLS
-
-#endif /* HAVE_TOTEM_GST_HELPERS_H */
diff --git a/src/gst/totem-gst-pixbuf-helpers.h b/src/gst/totem-gst-pixbuf-helpers.h
index b2d12c6e6..45be95320 100644
--- a/src/gst/totem-gst-pixbuf-helpers.h
+++ b/src/gst/totem-gst-pixbuf-helpers.h
@@ -25,20 +25,10 @@
*
*/
-#ifndef HAVE_TOTEM_GST_PIXBUF_HELPERS_H
-#define HAVE_TOTEM_GST_PIXBUF_HELPERS_H
-
-#define GST_USE_UNSTABLE_API 1
+#pragma once
#include <gst/gst.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
-G_BEGIN_DECLS
-
GdkPixbuf * totem_gst_playbin_get_frame (GstElement *play);
-
GdkPixbuf * totem_gst_tag_list_get_cover (GstTagList *tag_list);
-
-G_END_DECLS
-
-#endif /* HAVE_TOTEM_GST_PIXBUF_HELPERS_H */
diff --git a/src/gst/totem-time-helpers.h b/src/gst/totem-time-helpers.h
index d43d64d5c..1a747cd22 100644
--- a/src/gst/totem-time-helpers.h
+++ b/src/gst/totem-time-helpers.h
@@ -25,8 +25,7 @@
*
*/
-#ifndef _TOTEM_TIME_HELPERS_H_
-#define _TOTEM_TIME_HELPERS_H_
+#pragma once
#include <glib.h>
@@ -39,5 +38,3 @@ typedef enum {
char *totem_time_to_string (gint64 msecs,
TotemTimeFlag flags);
-
-#endif /* _TOTEM_TIME_HELPERS_H_ */