summaryrefslogtreecommitdiff
path: root/vapi/gmodule-2.0.vapi
blob: 7174a433581a6b05b40249de6a56811692678fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* gmodule-2.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "G", gir_namespace = "GModule", gir_version = "2.0", lower_case_cprefix = "g_")]
namespace GLib {
	[CCode (cheader_filename = "gmodule.h", free_function = "g_module_close", has_type_id = false)]
	[Compact]
	public class Module {
		public const string SUFFIX;
		[Version (deprecated = true, deprecated_since = "2.76")]
		public static string build_path (string? directory, string module_name);
		[DestroysInstance]
		public bool close ();
		public static unowned string error ();
		public static GLib.Quark error_quark ();
		public void make_resident ();
		public unowned string name ();
		public static GLib.Module? open (string? file_name, GLib.ModuleFlags flags);
		public static bool supported ();
		public bool symbol (string symbol_name, out void* symbol);
	}
	[CCode (cheader_filename = "gmodule.h", cprefix = "G_MODULE_BIND_", has_type_id = false)]
	public enum ModuleFlags {
		[CCode (cname = "G_MODULE_BIND_LAZY")]
		[Version (deprecated = true, deprecated_since = "vala-0.46", replacement = "LAZY")]
		BIND_LAZY,
		[CCode (cname = "G_MODULE_BIND_LOCAL")]
		[Version (deprecated = true, deprecated_since = "vala-0.46", replacement = "LOCAL")]
		BIND_LOCAL,
		[CCode (cname = "G_MODULE_BIND_MASK")]
		[Version (deprecated = true, deprecated_since = "vala-0.46", replacement = "MASK")]
		BIND_MASK,
		LAZY,
		LOCAL,
		MASK
	}
	[CCode (cheader_filename = "gmodule.h", cprefix = "G_MODULE_ERROR_", has_type_id = false)]
	[Version (since = "2.70")]
	public errordomain ModuleError {
		FAILED,
		CHECK_FAILED;
		[Version (replacement = "Module.error_quark")]
		public static GLib.Quark quark ();
	}
	[CCode (cheader_filename = "gmodule.h", has_target = false)]
	public delegate unowned string ModuleCheckInit (GLib.Module module);
	[CCode (cheader_filename = "gmodule.h", has_target = false)]
	public delegate void ModuleUnload (GLib.Module module);
	[CCode (cheader_filename = "gmodule.h")]
	[Version (deprecated = true, deprecated_since = "2.76", replacement = "Module.build_path")]
	public static string module_build_path (string? directory, string module_name);
	[CCode (cheader_filename = "gmodule.h")]
	[Version (replacement = "Module.error")]
	public static unowned string module_error ();
	[CCode (cheader_filename = "gmodule.h")]
	[Version (replacement = "Module.supported")]
	public static bool module_supported ();
}