1/* gobject-introspection-1.0.vapi generated by vapigen, do not modify. */ 2 3[CCode (cprefix = "GI", gir_namespace = "GIRepository", gir_version = "2.0", lower_case_cprefix = "g_")] 4namespace GI { 5 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 6 [Compact] 7 public class ArgInfo : GI.BaseInfo { 8 public int get_closure (); 9 public int get_destroy (); 10 public GI.Direction get_direction (); 11 public GI.Transfer get_ownership_transfer (); 12 public GI.ScopeType get_scope (); 13 public GI.TypeInfo get_type (); 14 public bool is_caller_allocates (); 15 public bool is_optional (); 16 public bool is_return_value (); 17 [Version (since = "1.30")] 18 public bool is_skip (); 19 public void load_type (out unowned GI.TypeInfo type); 20 public bool may_be_null (); 21 } 22 [CCode (cheader_filename = "girepository.h", lower_case_cprefix = "g_base_info_", lower_case_csuffix = "base_info_gtype", ref_function = "g_base_info_ref", type_id = "g_base_info_gtype_get_type ()", unref_function = "g_base_info_unref")] 23 [Compact] 24 public class BaseInfo { 25 [CCode (cname = "g_info_new", has_construct_function = false)] 26 public BaseInfo (GI.InfoType type, GI.BaseInfo container, GI.Typelib typelib, uint32 offset); 27 public bool equal (GI.BaseInfo info2); 28 public unowned string get_attribute (string name); 29 public unowned GI.BaseInfo get_container (); 30 public unowned string get_name (); 31 public unowned string get_namespace (); 32 public GI.InfoType get_type (); 33 public unowned GI.Typelib get_typelib (); 34 public bool is_deprecated (); 35 public bool iterate_attributes (ref GI.AttributeIter iterator, out unowned string name, out unowned string value); 36 } 37 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 38 [Compact] 39 public class CallableInfo : GI.BaseInfo { 40 [Version (since = "1.34")] 41 public bool can_throw_gerror (); 42 public GI.ArgInfo get_arg (int n); 43 public GI.Transfer get_caller_owns (); 44 [Version (since = "1.42")] 45 public GI.Transfer get_instance_ownership_transfer (); 46 public int get_n_args (); 47 public unowned string get_return_attribute (string name); 48 public GI.TypeInfo get_return_type (); 49 public bool invoke (void* function, [CCode (array_length_cname = "n_in_args", array_length_pos = 2.5)] GI.Argument[] in_args, [CCode (array_length_cname = "n_out_args", array_length_pos = 3.5)] GI.Argument[] out_args, GI.Argument return_value, bool is_method, bool @throws) throws GI.InvokeError; 50 [Version (since = "1.34")] 51 public bool is_method (); 52 public bool iterate_return_attributes (ref GI.AttributeIter iterator, out unowned string name, out unowned string value); 53 public void load_arg (int n, out unowned GI.ArgInfo arg); 54 public void load_return_type (out unowned GI.TypeInfo type); 55 public bool may_return_null (); 56 public bool skip_return (); 57 } 58 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 59 [Compact] 60 public class CallbackInfo : GI.CallableInfo { 61 } 62 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 63 [Compact] 64 public class ConstantInfo : GI.BaseInfo { 65 [Version (since = "1.32")] 66 public void free_value (GI.Argument value); 67 public GI.TypeInfo get_type (); 68 public int get_value (out GI.Argument value); 69 } 70 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 71 [Compact] 72 public class EnumInfo : GI.BaseInfo { 73 [Version (since = "1.30")] 74 public unowned string get_error_domain (); 75 [Version (since = "1.30")] 76 public GI.FunctionInfo get_method (int n); 77 [Version (since = "1.30")] 78 public int get_n_methods (); 79 public int get_n_values (); 80 public GI.TypeTag get_storage_type (); 81 public GI.ValueInfo get_value (int n); 82 } 83 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 84 [Compact] 85 public class FieldInfo : GI.BaseInfo { 86 public bool get_field (void* mem, GI.Argument value); 87 public GI.FieldInfoFlags get_flags (); 88 public int get_offset (); 89 public int get_size (); 90 public GI.TypeInfo get_type (); 91 public bool set_field (void* mem, GI.Argument value); 92 } 93 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 94 [Compact] 95 public class FunctionInfo : GI.CallableInfo { 96 public GI.FunctionInfoFlags get_flags (); 97 public GI.PropertyInfo get_property (); 98 public unowned string get_symbol (); 99 public GI.VFuncInfo get_vfunc (); 100 public bool invoke ([CCode (array_length_cname = "n_in_args", array_length_pos = 1.5)] GI.Argument[] in_args, [CCode (array_length_cname = "n_out_args", array_length_pos = 2.5)] GI.Argument[] out_args, GI.Argument return_value) throws GI.InvokeError; 101 } 102 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 103 [Compact] 104 public class InterfaceInfo : GI.BaseInfo { 105 public GI.FunctionInfo find_method (string name); 106 [Version (since = "1.34")] 107 public GI.SignalInfo find_signal (string name); 108 public GI.VFuncInfo find_vfunc (string name); 109 public GI.ConstantInfo get_constant (int n); 110 public GI.StructInfo get_iface_struct (); 111 public GI.FunctionInfo get_method (int n); 112 public int get_n_constants (); 113 public int get_n_methods (); 114 public int get_n_prerequisites (); 115 public int get_n_properties (); 116 public int get_n_signals (); 117 public int get_n_vfuncs (); 118 public GI.BaseInfo get_prerequisite (int n); 119 public GI.PropertyInfo get_property (int n); 120 public GI.SignalInfo get_signal (int n); 121 public GI.VFuncInfo get_vfunc (int n); 122 } 123 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 124 [Compact] 125 public class ObjectInfo : GI.BaseInfo { 126 public GI.FunctionInfo find_method (string name); 127 public GI.FunctionInfo find_method_using_interfaces (string name, out GI.ObjectInfo implementor); 128 public GI.SignalInfo find_signal (string name); 129 public GI.VFuncInfo find_vfunc (string name); 130 public GI.VFuncInfo find_vfunc_using_interfaces (string name, out GI.ObjectInfo implementor); 131 public bool get_abstract (); 132 public GI.StructInfo get_class_struct (); 133 public GI.ConstantInfo get_constant (int n); 134 public GI.FieldInfo get_field (int n); 135 public bool get_fundamental (); 136 public unowned string get_get_value_function (); 137 public unowned GI.ObjectInfoGetValueFunction get_get_value_function_pointer (); 138 public GI.InterfaceInfo get_interface (int n); 139 public GI.FunctionInfo get_method (int n); 140 public int get_n_constants (); 141 public int get_n_fields (); 142 public int get_n_interfaces (); 143 public int get_n_methods (); 144 public int get_n_properties (); 145 public int get_n_signals (); 146 public int get_n_vfuncs (); 147 public GI.ObjectInfo get_parent (); 148 public GI.PropertyInfo get_property (int n); 149 public unowned string get_ref_function (); 150 public unowned GI.ObjectInfoRefFunction get_ref_function_pointer (); 151 public unowned string get_set_value_function (); 152 public unowned GI.ObjectInfoSetValueFunction get_set_value_function_pointer (); 153 public GI.SignalInfo get_signal (int n); 154 public unowned string get_type_init (); 155 public unowned string get_type_name (); 156 public unowned string get_unref_function (); 157 public unowned GI.ObjectInfoUnrefFunction get_unref_function_pointer (); 158 public GI.VFuncInfo get_vfunc (int n); 159 } 160 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 161 [Compact] 162 public class PropertyInfo : GI.BaseInfo { 163 public GLib.ParamFlags get_flags (); 164 public GI.Transfer get_ownership_transfer (); 165 public GI.TypeInfo get_type (); 166 } 167 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 168 [Compact] 169 public class RegisteredTypeInfo : GI.BaseInfo { 170 public GLib.Type get_g_type (); 171 public unowned string get_type_init (); 172 public unowned string get_type_name (); 173 } 174 [CCode (cheader_filename = "girepository.h", lower_case_csuffix = "irepository", type_id = "g_irepository_get_type ()")] 175 public class Repository : GLib.Object { 176 [CCode (has_construct_function = false)] 177 protected Repository (); 178 public static bool dump (string arg) throws GI.RepositoryError; 179 public GLib.List<string> enumerate_versions (string namespace_); 180 [Version (since = "1.30")] 181 public GI.EnumInfo find_by_error_domain (GLib.Quark domain); 182 public GI.BaseInfo find_by_gtype (GLib.Type gtype); 183 public GI.BaseInfo find_by_name (string namespace_, string name); 184 public unowned string get_c_prefix (string namespace_); 185 public static unowned GI.Repository get_default (); 186 [CCode (array_length = false, array_null_terminated = true)] 187 public string[] get_dependencies (string namespace_); 188 [CCode (array_length = false, array_null_terminated = true)] 189 [Version (since = "1.44")] 190 public string[] get_immediate_dependencies (string namespace_); 191 public GI.BaseInfo get_info (string namespace_, int index); 192 [CCode (array_length = false, array_null_terminated = true)] 193 public string[] get_loaded_namespaces (); 194 public int get_n_infos (string namespace_); 195 [Version (since = "1.62")] 196 public void get_object_gtype_interfaces (GLib.Type gtype, [CCode (array_length_cname = "n_interfaces_out", array_length_pos = 1.5, array_length_type = "guint")] out unowned GI.InterfaceInfo[] interfaces_out); 197 public static GLib.OptionGroup get_option_group (); 198 public static unowned GLib.SList<string> get_search_path (); 199 public unowned string get_shared_library (string namespace_); 200 public unowned string get_typelib_path (string namespace_); 201 public unowned string get_version (string namespace_); 202 public bool is_registered (string namespace_, string? version); 203 public unowned string load_typelib (GI.Typelib typelib, GI.RepositoryLoadFlags flags) throws GI.RepositoryError; 204 public static void prepend_library_path (string directory); 205 public static void prepend_search_path (string directory); 206 public unowned GI.Typelib require (string namespace_, string? version, GI.RepositoryLoadFlags flags) throws GI.RepositoryError; 207 public unowned GI.Typelib require_private (string typelib_dir, string namespace_, string? version, GI.RepositoryLoadFlags flags) throws GLib.Error; 208 } 209 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 210 [Compact] 211 public class SignalInfo : GI.CallableInfo { 212 public GI.VFuncInfo get_class_closure (); 213 public GLib.SignalFlags get_flags (); 214 public bool true_stops_emit (); 215 } 216 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 217 [Compact] 218 public class StructInfo : GI.BaseInfo { 219 [Version (since = "1.46")] 220 public GI.FieldInfo find_field (string name); 221 public GI.FunctionInfo find_method (string name); 222 public size_t get_alignment (); 223 public GI.FieldInfo get_field (int n); 224 public GI.FunctionInfo get_method (int n); 225 public int get_n_fields (); 226 public int get_n_methods (); 227 public size_t get_size (); 228 public bool is_foreign (); 229 public bool is_gtype_struct (); 230 } 231 [CCode (cheader_filename = "girepository.h", lower_case_csuffix = "type_info", type_id = "g_base_info_gtype_get_type ()")] 232 [Compact] 233 public class TypeInfo : GI.BaseInfo { 234 public int get_array_fixed_size (); 235 public int get_array_length (); 236 public GI.ArrayType get_array_type (); 237 public GI.BaseInfo get_interface (); 238 public GI.TypeInfo get_param_type (int n); 239 public GI.TypeTag get_tag (); 240 public bool is_pointer (); 241 public bool is_zero_terminated (); 242 } 243 [CCode (cheader_filename = "girepository.h", has_type_id = false)] 244 [Compact] 245 public class Typelib { 246 public void free (); 247 public unowned string get_namespace (); 248 public bool symbol (string symbol_name, out void* symbol); 249 } 250 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 251 [Compact] 252 public class UnionInfo : GI.BaseInfo { 253 public GI.FunctionInfo find_method (string name); 254 public size_t get_alignment (); 255 public GI.ConstantInfo get_discriminator (int n); 256 public int get_discriminator_offset (); 257 public GI.TypeInfo get_discriminator_type (); 258 public GI.FieldInfo get_field (int n); 259 public GI.FunctionInfo get_method (int n); 260 public int get_n_fields (); 261 public int get_n_methods (); 262 public size_t get_size (); 263 public bool is_discriminated (); 264 } 265 [CCode (cheader_filename = "girepository.h", has_type_id = false)] 266 [Compact] 267 public class UnresolvedInfo { 268 } 269 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 270 [Compact] 271 public class VFuncInfo : GI.CallableInfo { 272 public void* get_address (GLib.Type implementor_gtype) throws GLib.Error; 273 public GI.VFuncInfoFlags get_flags (); 274 public GI.FunctionInfo get_invoker (); 275 public int get_offset (); 276 public GI.SignalInfo get_signal (); 277 public bool invoke (GLib.Type implementor, [CCode (array_length_cname = "n_in_args", array_length_pos = 2.5)] GI.Argument[] in_args, [CCode (array_length_cname = "n_out_args", array_length_pos = 3.5)] GI.Argument[] out_args, GI.Argument return_value) throws GI.InvokeError; 278 } 279 [CCode (cheader_filename = "girepository.h", type_id = "g_base_info_gtype_get_type ()")] 280 [Compact] 281 public class ValueInfo : GI.BaseInfo { 282 public int64 get_value (); 283 } 284 [CCode (cheader_filename = "girepository.h")] 285 public struct Argument { 286 public bool v_boolean; 287 public int8 v_int8; 288 public uint8 v_uint8; 289 public int16 v_int16; 290 public uint16 v_uint16; 291 public int32 v_int32; 292 public uint32 v_uint32; 293 public int64 v_int64; 294 public uint64 v_uint64; 295 public float v_float; 296 public double v_double; 297 public short v_short; 298 public ushort v_ushort; 299 public int v_int; 300 public uint v_uint; 301 public long v_long; 302 public ulong v_ulong; 303 public ssize_t v_ssize; 304 public size_t v_size; 305 public weak string v_string; 306 public void* v_pointer; 307 } 308 [CCode (cheader_filename = "girepository.h", has_type_id = false)] 309 public struct AttributeIter { 310 } 311 [CCode (cheader_filename = "girepository.h", cprefix = "GI_ARRAY_TYPE_", has_type_id = false)] 312 public enum ArrayType { 313 C, 314 ARRAY, 315 PTR_ARRAY, 316 BYTE_ARRAY 317 } 318 [CCode (cheader_filename = "girepository.h", cprefix = "GI_DIRECTION_", has_type_id = false)] 319 public enum Direction { 320 IN, 321 OUT, 322 INOUT 323 } 324 [CCode (cheader_filename = "girepository.h", cprefix = "GI_FIELD_IS_", has_type_id = false)] 325 [Flags] 326 public enum FieldInfoFlags { 327 READABLE, 328 WRITABLE 329 } 330 [CCode (cheader_filename = "girepository.h", cprefix = "GI_FUNCTION_", has_type_id = false)] 331 [Flags] 332 public enum FunctionInfoFlags { 333 IS_METHOD, 334 IS_CONSTRUCTOR, 335 IS_GETTER, 336 IS_SETTER, 337 WRAPS_VFUNC, 338 THROWS 339 } 340 [CCode (cheader_filename = "girepository.h", cprefix = "GI_INFO_TYPE_", has_type_id = false)] 341 public enum InfoType { 342 INVALID, 343 FUNCTION, 344 CALLBACK, 345 STRUCT, 346 BOXED, 347 ENUM, 348 FLAGS, 349 OBJECT, 350 INTERFACE, 351 CONSTANT, 352 INVALID_0, 353 UNION, 354 VALUE, 355 SIGNAL, 356 VFUNC, 357 PROPERTY, 358 FIELD, 359 ARG, 360 TYPE, 361 UNRESOLVED; 362 public unowned string to_string (); 363 } 364 [CCode (cheader_filename = "girepository.h", cprefix = "G_IREPOSITORY_LOAD_FLAG_", has_type_id = false)] 365 [Flags] 366 public enum RepositoryLoadFlags { 367 [CCode (cname = "G_IREPOSITORY_LOAD_FLAG_LAZY")] 368 IREPOSITORY_LOAD_FLAG_LAZY 369 } 370 [CCode (cheader_filename = "girepository.h", cprefix = "GI_SCOPE_TYPE_", has_type_id = false)] 371 public enum ScopeType { 372 INVALID, 373 CALL, 374 ASYNC, 375 NOTIFIED 376 } 377 [CCode (cheader_filename = "girepository.h", cprefix = "GI_TRANSFER_", has_type_id = false)] 378 public enum Transfer { 379 NOTHING, 380 CONTAINER, 381 EVERYTHING 382 } 383 [CCode (cheader_filename = "girepository.h", cprefix = "GI_TYPE_TAG_", has_type_id = false)] 384 public enum TypeTag { 385 VOID, 386 BOOLEAN, 387 INT8, 388 UINT8, 389 INT16, 390 UINT16, 391 INT32, 392 UINT32, 393 INT64, 394 UINT64, 395 FLOAT, 396 DOUBLE, 397 GTYPE, 398 UTF8, 399 FILENAME, 400 ARRAY, 401 INTERFACE, 402 GLIST, 403 GSLIST, 404 GHASH, 405 ERROR, 406 UNICHAR; 407 [CCode (cname = "g_type_tag_to_string")] 408 public unowned string to_string (); 409 } 410 [CCode (cheader_filename = "girepository.h", cprefix = "GI_VFUNC_", has_type_id = false)] 411 [Flags] 412 public enum VFuncInfoFlags { 413 MUST_CHAIN_UP, 414 MUST_OVERRIDE, 415 MUST_NOT_OVERRIDE, 416 THROWS 417 } 418 [CCode (cheader_filename = "girepository.h", cname = "GInvokeError", cprefix = "G_INVOKE_ERROR_")] 419 [GIR (name = "nvokeError")] 420 public errordomain InvokeError { 421 FAILED, 422 SYMBOL_NOT_FOUND, 423 ARGUMENT_MISMATCH; 424 public static GLib.Quark quark (); 425 } 426 [CCode (cheader_filename = "girepository.h", cprefix = "G_IREPOSITORY_ERROR_")] 427 public errordomain RepositoryError { 428 TYPELIB_NOT_FOUND, 429 NAMESPACE_MISMATCH, 430 NAMESPACE_VERSION_CONFLICT, 431 LIBRARY_NOT_FOUND; 432 [CCode (cname = "g_irepository_error_quark")] 433 public static GLib.Quark quark (); 434 } 435 [CCode (cheader_filename = "girepository.h", has_target = false)] 436 public delegate void* ObjectInfoGetValueFunction (GLib.Value value); 437 [CCode (cheader_filename = "girepository.h", has_target = false)] 438 public delegate void* ObjectInfoRefFunction (void* object); 439 [CCode (cheader_filename = "girepository.h", has_target = false)] 440 public delegate void ObjectInfoSetValueFunction (GLib.Value value, void* object); 441 [CCode (cheader_filename = "girepository.h", has_target = false)] 442 public delegate void ObjectInfoUnrefFunction (void* object); 443 [CCode (cheader_filename = "girepository.h", cname = "GI_MAJOR_VERSION")] 444 [Version (since = "1.60")] 445 public const int MAJOR_VERSION; 446 [CCode (cheader_filename = "girepository.h", cname = "GI_MICRO_VERSION")] 447 [Version (since = "1.60")] 448 public const int MICRO_VERSION; 449 [CCode (cheader_filename = "girepository.h", cname = "GI_MINOR_VERSION")] 450 [Version (since = "1.60")] 451 public const int MINOR_VERSION; 452 [CCode (cheader_filename = "girepository.h", cname = "GI_TYPE_TAG_N_TYPES")] 453 public const int TYPE_TAG_N_TYPES; 454 [CCode (cheader_filename = "girepository.h", cname = "gi_get_major_version")] 455 [Version (since = "1.60")] 456 public static uint get_major_version (); 457 [CCode (cheader_filename = "girepository.h", cname = "gi_get_micro_version")] 458 [Version (since = "1.60")] 459 public static uint get_micro_version (); 460 [CCode (cheader_filename = "girepository.h", cname = "gi_get_minor_version")] 461 [Version (since = "1.60")] 462 public static uint get_minor_version (); 463} 464