Browse Source

Small fixes (upgrade Vala)

master
Kolan Sh 5 months ago
parent
commit
e73cf2d921
5 changed files with 7 additions and 6 deletions
  1. +1
    -1
      src/loader/PluginLoader.vala
  2. +3
    -2
      test/plugins/typeA/typeA1/TypeA1.vala
  3. +1
    -1
      test/plugins/typeA/typeA2/TypeA2.vala
  4. +1
    -1
      test/plugins/typeB/typeB1/TypeB1.vala
  5. +1
    -1
      test/plugins/typeB/typeB2/TypeB2.vala

+ 1
- 1
src/loader/PluginLoader.vala View File

@@ -34,7 +34,7 @@ namespace GObject {
* Loads the module.
*/
public override bool load () {
module = GLib.Module.open (path, GLib.ModuleFlags.BIND_LAZY);
module = GLib.Module.open (path, GLib.ModuleFlags.LAZY);
if (null == module) {
stderr.printf("Cannot load module %s\n", path);
return false;


+ 3
- 2
test/plugins/typeA/typeA1/TypeA1.vala View File

@@ -25,11 +25,12 @@ public class TypeA1 : PluginTypeA {
public override void method_a () {
stdout.puts ("TypeA1.method_a () called\n");
stdout.puts ("Call IHostLoaderTest.method_host () from TypeA1:\n ");
(host as IHostLoaderTest).method_host ();
var test = host as IHostLoaderTest;
if (test != null) test.method_host ();
}
}

[ModuleInit]
Type plugin_init (GLib.TypeModule type_module) {
public Type plugin_init (GLib.TypeModule type_module) {
return typeof (TypeA1);
}

+ 1
- 1
test/plugins/typeA/typeA2/TypeA2.vala View File

@@ -28,6 +28,6 @@ public class TypeA2 : PluginTypeA {
}

[ModuleInit]
Type plugin_init (GLib.TypeModule type_module) {
public Type plugin_init (GLib.TypeModule type_module) {
return typeof (TypeA2);
}

+ 1
- 1
test/plugins/typeB/typeB1/TypeB1.vala View File

@@ -29,6 +29,6 @@ public class TypeB1 : PluginTypeB {
}

[ModuleInit]
Type plugin_init (GLib.TypeModule type_module) {
public Type plugin_init (GLib.TypeModule type_module) {
return typeof (TypeB1);
}

+ 1
- 1
test/plugins/typeB/typeB2/TypeB2.vala View File

@@ -29,6 +29,6 @@ public class TypeB2 : PluginTypeB {
}

[ModuleInit]
Type plugin_init (GLib.TypeModule type_module) {
public Type plugin_init (GLib.TypeModule type_module) {
return typeof (TypeB2);
}

Loading…
Cancel
Save