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 public unowned string get_action ();
38 public unowned string? get_device_file ();
39 [CCode (array_length = false)]
40 public unowned string[] get_device_file_symlinks ();
41 public GUdev.DeviceNumber get_device_number ();
42 public GUdev.DeviceType get_device_type ();
43 public unowned string get_devtype ();
44 public unowned string? get_driver ();
45 public unowned string get_name ();
46 public unowned string get_number ();
47 public unowned GUdev.Device? get_parent ();
48 public unowned GUdev.Device? get_parent_with_subsystem (string subsystem, string? devtype);
49 public unowned string? get_property (string key);
50 public bool get_property_as_boolean (string key);
51 public double get_property_as_double (string key);
52 public int get_property_as_int (string key);
53 [CCode (array_length = false)]
54 public unowned string?[] get_property_as_strv (string key);
55 public uint64 get_property_as_uint64 (string key);
56 [CCode (array_length = false, array_null_terminated = true)]
57 public unowned string?[] get_property_keys ();
58 public uint64 get_seqnum ();
59 public unowned string get_subsystem ();
60 public unowned string? get_sysfs_attr (string name);
61 public bool get_sysfs_attr_as_boolean (string name);
62 public double get_sysfs_attr_as_double (string name);
63 public int get_sysfs_attr_as_int (string name);
64 [CCode (array_length = false)]
65 public unowned string?[] get_sysfs_attr_as_strv (string name);
66 public uint64 get_sysfs_attr_as_uint64 (string name);
67 public unowned string get_sysfs_path ();
68 public bool has_property (string key);
70 public virtual void reserved1 ();
72 public virtual void reserved2 ();
74 public virtual void reserved3 ();
76 public virtual void reserved4 ();
78 public virtual void reserved5 ();
80 public virtual void reserved6 ();
82 public virtual void reserved7 ();
84 public virtual void reserved8 ();
86 [CCode (cheader_filename = "gudev/gudev.h")]
88 [IntegerType (rank = 9)]
89 public struct DeviceNumber : Posix.dev_t {
91 [CCode (cprefix = "G_UDEV_DEVICE_TYPE_", cheader_filename = "gudev/gudev.h")]
92 public enum DeviceType {