gplugin/gplugin

Change GPluginSource to a public API

6 months ago, Elliott Sales de Andrade
a1475628f0c2
Parents 2e7031dd2fde
Children 468acf3b4723
Change GPluginSource to a public API

This allows `test-source` to work as it will no longer be using public API.

Testing Done:
Compiled on Linux and Windows.

Reviewed at https://reviews.imfreedom.org/r/2668/
--- a/gplugin/gplugin-source.h Tue Oct 17 02:57:36 2023 -0500
+++ b/gplugin/gplugin-source.h Tue Oct 17 02:59:23 2023 -0500
@@ -21,9 +21,13 @@
#include <glib.h>
#include <glib-object.h>
+#include <gplugin/gplugin-version.h>
+
G_BEGIN_DECLS
#define GPLUGIN_TYPE_SOURCE (gplugin_source_get_type())
+
+GPLUGIN_AVAILABLE_IN_0_39
G_DECLARE_INTERFACE(GPluginSource, gplugin_source, GPLUGIN, SOURCE, GObject)
struct _GPluginSourceInterface {
@@ -37,6 +41,7 @@
gpointer reserved[4];
};
+GPLUGIN_AVAILABLE_IN_0_39
gboolean gplugin_source_scan(GPluginSource *source);
G_END_DECLS
--- a/gplugin/meson.build Tue Oct 17 02:57:36 2023 -0500
+++ b/gplugin/meson.build Tue Oct 17 02:59:23 2023 -0500
@@ -11,6 +11,7 @@
'gplugin-options.h',
'gplugin-plugin.h',
'gplugin-plugin-info.h',
+ 'gplugin-source.h',
'gplugin-version.h',
]
@@ -22,6 +23,7 @@
'gplugin-options.c',
'gplugin-plugin-info.c',
'gplugin-private.c',
+ 'gplugin-source.c',
'gplugin-version.c',
]
@@ -36,13 +38,11 @@
GPLUGIN_PRIVATE_HEADERS = [
'gplugin-file-source.h',
'gplugin-file-tree.h',
- 'gplugin-source.h',
]
GPLUGIN_PRIVATE_SOURCES = [
'gplugin-file-source.c',
'gplugin-file-tree.c',
- 'gplugin-source.c',
]
GPLUGIN_PRIVATE_BUILT_HEADERS = [
--- a/gplugin/tests/test-source.c Tue Oct 17 02:57:36 2023 -0500
+++ b/gplugin/tests/test-source.c Tue Oct 17 02:59:23 2023 -0500
@@ -19,8 +19,6 @@
#include <gplugin.h>
-#include "gplugin-source.h"
-
/******************************************************************************
* TestSource Implementation
*****************************************************************************/