summaryrefslogtreecommitdiff
path: root/src/meta/keybindings.h
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2019-01-23 03:25:35 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2019-01-23 14:18:13 +0100
commite02fef8e2f1b71214cf8a68fe2a5384f4e0d8cd4 (patch)
treed321109d46db981e6bd626dbf4459656ad91057a /src/meta/keybindings.h
parente3520118308696af9f1bb72cef48c4918b2c715f (diff)
downloadmutter-e02fef8e2f1b71214cf8a68fe2a5384f4e0d8cd4.tar.gz
meta: Hide libmutter symbols by default and selectively export them
Make meson link libmutter using -fvisibility=hidden, and introduce META_EXPORT and META_EXPORT_TEST defines to mark a symbols as visible. The TEST version is meant to be used to flag symbols that are only used internally by mutter tests, but that should not be considered public API. This allows us to be more precise in selecting what is exported and what is not, without the need of a version-script file that would be more complicated to maintain. https://gitlab.gnome.org/GNOME/mutter/merge_requests/395
Diffstat (limited to 'src/meta/keybindings.h')
-rw-r--r--src/meta/keybindings.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/meta/keybindings.h b/src/meta/keybindings.h
index 79ee407c2..ac1cee5b3 100644
--- a/src/meta/keybindings.h
+++ b/src/meta/keybindings.h
@@ -23,12 +23,22 @@
#define META_TYPE_KEY_BINDING (meta_key_binding_get_type ())
+META_EXPORT
const char *meta_key_binding_get_name (MetaKeyBinding *binding);
+
+META_EXPORT
MetaVirtualModifier meta_key_binding_get_modifiers (MetaKeyBinding *binding);
+
+META_EXPORT
guint meta_key_binding_get_mask (MetaKeyBinding *binding);
+
+META_EXPORT
gboolean meta_key_binding_is_builtin (MetaKeyBinding *binding);
+
+META_EXPORT
gboolean meta_key_binding_is_reversed (MetaKeyBinding *binding);
+META_EXPORT
gboolean meta_keybindings_set_custom_handler (const gchar *name,
MetaKeyHandlerFunc handler,
gpointer user_data,