1 /* gudev-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GUdev", lower_case_cprefix = "g_udev_")]
5 [CCode (cheader_filename = "gudev/gudev.h")]
6 public class Client : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Client ([CCode (array_length = false)] string[]? subsystems);
9 public unowned GUdev.Device? query_by_device_file (string device_file);
10 public unowned 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 unowned GUdev.Device? query_by_subsystem_and_name (string subsystem, string name);
13 public unowned GUdev.Device? query_by_sysfs_path (string sysfs_path);
15 public virtual void reserved1 ();
17 public virtual void reserved2 ();
19 public virtual void reserved3 ();
21 public virtual void reserved4 ();
23 public virtual void reserved5 ();
25 public virtual void reserved6 ();
27 public virtual void reserved7 ();
29 public virtual void reserved8 ();
31 [CCode (array_length = false, array_null_terminated = true)]
32 public string[] subsystems { owned get; construct; }
33 public virtual signal void uevent (string action, GUdev.Device device);
35 [CCode (cheader_filename = "gudev/gudev.h")]
36 public class Device : GLib.Object {
37 [CCode (has_construct_function = false)]
39 public unowned string get_action ();
40 public unowned string? get_device_file ();
41 [CCode (array_length = false)]
42 public unowned string[] get_device_file_symlinks ();
43 public GUdev.DeviceNumber get_device_number ();
44 public GUdev.DeviceType get_device_type ();
45 public unowned string get_devtype ();
46 public unowned string? get_driver ();
47 public unowned string get_name ();
48 public unowned string get_number ();
49 public unowned GUdev.Device? get_parent ();
50 public unowned GUdev.Device? get_parent_with_subsystem (string subsystem, string? devtype);
51 public unowned string? get_property (string key);
52 public bool get_property_as_boolean (string key);
53 public double get_property_as_double (string key);
54 public int get_property_as_int (string key);
55 [CCode (array_length = false)]
56 public unowned string?[] get_property_as_strv (string key);
57 public uint64 get_property_as_uint64 (string key);
58 [CCode (array_length = false, array_null_terminated = true)]
59 public unowned string?[] get_property_keys ();
60 public uint64 get_seqnum ();
61 public unowned string get_subsystem ();
62 public unowned string? get_sysfs_attr (string name);
63 public bool get_sysfs_attr_as_boolean (string name);
64 public double get_sysfs_attr_as_double (string name);
65 public int get_sysfs_attr_as_int (string name);
66 [CCode (array_length = false)]
67 public unowned string?[] get_sysfs_attr_as_strv (string name);
68 public uint64 get_sysfs_attr_as_uint64 (string name);
69 public unowned string get_sysfs_path ();
70 public bool has_property (string key);
72 public virtual void reserved1 ();
74 public virtual void reserved2 ();
76 public virtual void reserved3 ();
78 public virtual void reserved4 ();
80 public virtual void reserved5 ();
82 public virtual void reserved6 ();
84 public virtual void reserved7 ();
86 public virtual void reserved8 ();
88 [CCode (cheader_filename = "gudev/gudev.h")]
90 [IntegerType (rank = 9)]
91 public struct DeviceNumber : Posix.dev_t {
93 [CCode (cprefix = "G_UDEV_DEVICE_TYPE_", cheader_filename = "gudev/gudev.h")]
94 public enum DeviceType {