vala: Use CodeContext.root instead of SemanticAnalyzer.root_symbol
[vala-gnome.git] / vapi / gudev-1.0.vapi
blobb74c611e360357535bb51fce2701848ae520c705
1 /* gudev-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GUdev", gir_namespace = "GUdev", gir_version = "1.0", lower_case_cprefix = "g_udev_")]
4 namespace GUdev {
5         [CCode (cheader_filename = "gudev/gudev.h", type_id = "g_udev_client_get_type ()")]
6         public class Client : GLib.Object {
7                 [CCode (has_construct_function = false)]
8                 public Client ([CCode (array_length = false, array_null_terminated = true)] string[]? subsystems);
9                 public GUdev.Device? query_by_device_file (string device_file);
10                 public GUdev.Device? query_by_device_number (GUdev.DeviceType type, GUdev.DeviceNumber number);
11                 public GLib.List<GUdev.Device>? query_by_subsystem (string? subsystem);
12                 public GUdev.Device? query_by_subsystem_and_name (string subsystem, string name);
13                 public GUdev.Device? query_by_sysfs_path (string sysfs_path);
14                 [CCode (array_length = false, array_null_terminated = true)]
15                 [NoAccessorMethod]
16                 public string[] subsystems { owned get; construct; }
17                 public virtual signal void uevent (string action, GUdev.Device device);
18         }
19         [CCode (cheader_filename = "gudev/gudev.h", type_id = "g_udev_device_get_type ()")]
20         public class Device : GLib.Object {
21                 [CCode (has_construct_function = false)]
22                 protected Device ();
23                 public unowned string get_action ();
24                 public unowned string? get_device_file ();
25                 [CCode (array_length = false, array_null_terminated = true)]
26                 public unowned string[] get_device_file_symlinks ();
27                 public GUdev.DeviceNumber get_device_number ();
28                 public GUdev.DeviceType get_device_type ();
29                 public unowned string get_devtype ();
30                 public unowned string? get_driver ();
31                 [Version (since = "165")]
32                 public bool get_is_initialized ();
33                 public unowned string get_name ();
34                 public unowned string get_number ();
35                 public GUdev.Device? get_parent ();
36                 public GUdev.Device? get_parent_with_subsystem (string subsystem, string? devtype);
37                 public unowned string? get_property (string key);
38                 public bool get_property_as_boolean (string key);
39                 public double get_property_as_double (string key);
40                 public int get_property_as_int (string key);
41                 [CCode (array_length = false, array_null_terminated = true)]
42                 public unowned string[]? get_property_as_strv (string key);
43                 public uint64 get_property_as_uint64 (string key);
44                 [CCode (array_length = false, array_null_terminated = true)]
45                 public unowned string[] get_property_keys ();
46                 public uint64 get_seqnum ();
47                 public unowned string get_subsystem ();
48                 public unowned string? get_sysfs_attr (string name);
49                 public bool get_sysfs_attr_as_boolean (string name);
50                 public double get_sysfs_attr_as_double (string name);
51                 public int get_sysfs_attr_as_int (string name);
52                 [CCode (array_length = false, array_null_terminated = true)]
53                 public unowned string[]? get_sysfs_attr_as_strv (string name);
54                 public uint64 get_sysfs_attr_as_uint64 (string name);
55                 [CCode (array_length = false, array_null_terminated = true)]
56                 public unowned string[] get_sysfs_attr_keys ();
57                 public unowned string get_sysfs_path ();
58                 [CCode (array_length = false, array_null_terminated = true)]
59                 [Version (since = "165")]
60                 public unowned string[] get_tags ();
61                 [Version (since = "165")]
62                 public uint64 get_usec_since_initialized ();
63                 public bool has_property (string key);
64                 public bool has_sysfs_attr (string key);
65         }
66         [CCode (cheader_filename = "gudev/gudev.h", type_id = "g_udev_enumerator_get_type ()")]
67         [Version (since = "165")]
68         public class Enumerator : GLib.Object {
69                 [CCode (has_construct_function = false)]
70                 public Enumerator (GUdev.Client client);
71                 public unowned GUdev.Enumerator add_match_is_initialized ();
72                 public unowned GUdev.Enumerator add_match_name (string name);
73                 public unowned GUdev.Enumerator add_match_property (string name, string value);
74                 public unowned GUdev.Enumerator add_match_subsystem (string subsystem);
75                 public unowned GUdev.Enumerator add_match_sysfs_attr (string name, string value);
76                 public unowned GUdev.Enumerator add_match_tag (string tag);
77                 public unowned GUdev.Enumerator add_nomatch_subsystem (string subsystem);
78                 public unowned GUdev.Enumerator add_nomatch_sysfs_attr (string name, string value);
79                 public unowned GUdev.Enumerator add_sysfs_path (string sysfs_path);
80                 public GLib.List<GUdev.Device> execute ();
81                 [NoAccessorMethod]
82                 public GUdev.Client client { owned get; construct; }
83         }
84         [CCode (cheader_filename = "gudev/gudev.h")]
85         [SimpleType]
86         public struct DeviceNumber : Posix.dev_t {
87         }
88         [CCode (cheader_filename = "gudev/gudev.h", cprefix = "G_UDEV_DEVICE_TYPE_", type_id = "g_udev_device_type_get_type ()")]
89         public enum DeviceType {
90                 NONE,
91                 BLOCK,
92                 CHAR
93         }