diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2022-12-11 21:48:03 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-01-03 13:56:25 +0000 |
commit | f0a9f0955846187ca6e6a04a0ca191ba2592d5af (patch) | |
tree | fc8149d03ceb9c094c84bcae4c219f73824bd8aa /src/mm-plugin.h | |
parent | d30ba8414ae28ed1116e4120975497b8add45ea0 (diff) |
plugins: setup new helper macros to define plugins
We also remove the plugin headers completely as they are not really
required anywhere.
Diffstat (limited to 'src/mm-plugin.h')
-rw-r--r-- | src/mm-plugin.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mm-plugin.h b/src/mm-plugin.h index 1c071383..7bcb4313 100644 --- a/src/mm-plugin.h +++ b/src/mm-plugin.h @@ -18,6 +18,7 @@ #ifndef MM_PLUGIN_H #define MM_PLUGIN_H +#include <config.h> #include <glib.h> #include <glib-object.h> @@ -27,18 +28,9 @@ #include "mm-device.h" #include "mm-kernel-device.h" -#define MM_PLUGIN_MAJOR_VERSION 4 +#define MM_PLUGIN_MAJOR_VERSION 5 #define MM_PLUGIN_MINOR_VERSION 0 -#if defined (G_HAVE_GNUC_VISIBILITY) -#define VISIBILITY __attribute__((visibility("protected"))) -#else -#define VISIBILITY -#endif - -#define MM_PLUGIN_DEFINE_MAJOR_VERSION VISIBILITY int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION; -#define MM_PLUGIN_DEFINE_MINOR_VERSION VISIBILITY int mm_plugin_minor_version = MM_PLUGIN_MINOR_VERSION; - #define MM_TYPE_PLUGIN (mm_plugin_get_type ()) #define MM_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_PLUGIN, MMPlugin)) #define MM_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_PLUGIN, MMPluginClass)) |