gplugin/gplugin

Fix the windows build for real this time

3 months ago, Gary Kramlich
7f400459dbe1
Fix the windows build for real this time

* Mark gplugin_introspection_introspect_plugin and
gplugin_introspection_introspect_plugins as internal as this is a static
library and that is how they should be marked.
* Use G_MODULE_EXPORT to export the G_DEFINE_FINAL_TYPE for IntrospectableType.
* Clean up the gplugin-introspection/tests/meson.build file bit as it's
already shortcut in gplugin-introspection/meson.build.

Testing Done:
Compiled from a clean build on Windows and Linux using `ninja turtles` on both.

Reviewed at https://reviews.imfreedom.org/r/3030/
/*
* Copyright (C) 2011-2020 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
uses GPlugin
namespace GenieBasicPlugin
class Info : GPlugin.PluginInfo
construct()
authors : array of string = {"author1"}
Object(
id: "gplugin/genie-basic-plugin",
abi_version: 0x01020304,
name: "basic plugin (Genie)",
authors: authors,
category: "test",
version: "version",
license_id: "license",
summary: "summary",
website: "website",
description: "description"
)
def gplugin_query(out error : Error) : GPlugin.PluginInfo
error = null
return new GenieBasicPlugin.Info()
def gplugin_load(plugin : GPlugin.Plugin, out error : Error) : bool
if not(plugin isa GPlugin.Plugin)
error = new Error(Quark.from_string("gplugin"), 0, "plugin was not set")
return false
error = null
return true
def gplugin_unload(plugin : GPlugin.Plugin, shutdown : bool, out error : Error) : bool
if not(plugin isa GPlugin.Plugin)
error = new Error(Quark.from_string("gplugin"), 0, "plugin was not set")
return false
if shutdown
error = new Error(Quark.from_string("gplugin"), 0, "shutdown was true")
return false
error = null
return true