summaryrefslogtreecommitdiff
path: root/gtk/gtkmediafile.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-03-01 21:46:16 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-18 21:01:23 +0100
commite4338c4d422501a459c714a82da76e2ec29b7727 (patch)
treeb7d75adc874c51ce0ba77c1ac0b47d9289d6981d /gtk/gtkmediafile.h
parent29cccf5e84d61f438298e6f857939a1bcdb3d33a (diff)
downloadgtk+-e4338c4d422501a459c714a82da76e2ec29b7727.tar.gz
mediafile: Turn into an extension point
This way, we can support external libraries providing implementations of GtkMediaFile. We also add a media backend called 'nomedia' that can be enabled to not compile any support for GtkMediaFile. This is useful when people want to statically compile GTK into an application that does not use media. For now, this option is the default. We also support a new environment variable GTK_MEDIA that allows selecting the implementation to use. GTK_MEDIA=help can be used to get info about the available implementations.
Diffstat (limited to 'gtk/gtkmediafile.h')
-rw-r--r--gtk/gtkmediafile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmediafile.h b/gtk/gtkmediafile.h
index 20f38399a4..daa17d9aa8 100644
--- a/gtk/gtkmediafile.h
+++ b/gtk/gtkmediafile.h
@@ -28,6 +28,8 @@
G_BEGIN_DECLS
+#define GTK_MEDIA_FILE_EXTENSION_POINT_NAME "gtk-media-file"
+
#define GTK_TYPE_MEDIA_FILE (gtk_media_file_get_type ())
GDK_AVAILABLE_IN_ALL