D-Bus: Emit cast to avoid C warning for signal handling in clients
[vala-lang.git] / vapi / gudev-1.0.vapi
blob9fa975ef08787279fc921e971d4f6da2afc3e084
1 /* gudev-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "GUdev", lower_case_cprefix = "g_udev_")]
4 namespace GUdev {
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);
14                 [NoWrapper]
15                 public virtual void reserved1 ();
16                 [NoWrapper]
17                 public virtual void reserved2 ();
18                 [NoWrapper]
19                 public virtual void reserved3 ();
20                 [NoWrapper]
21                 public virtual void reserved4 ();
22                 [NoWrapper]
23                 public virtual void reserved5 ();
24                 [NoWrapper]
25                 public virtual void reserved6 ();
26                 [NoWrapper]
27                 public virtual void reserved7 ();
28                 [NoWrapper]
29                 public virtual void reserved8 ();
30                 [NoAccessorMethod]
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);
34         }
35         [CCode (cheader_filename = "gudev/gudev.h")]
36         public class Device : GLib.Object {
37                 [CCode (has_construct_function = false)]
38                 protected Device ();
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);
71                 [NoWrapper]
72                 public virtual void reserved1 ();
73                 [NoWrapper]
74                 public virtual void reserved2 ();
75                 [NoWrapper]
76                 public virtual void reserved3 ();
77                 [NoWrapper]
78                 public virtual void reserved4 ();
79                 [NoWrapper]
80                 public virtual void reserved5 ();
81                 [NoWrapper]
82                 public virtual void reserved6 ();
83                 [NoWrapper]
84                 public virtual void reserved7 ();
85                 [NoWrapper]
86                 public virtual void reserved8 ();
87         }
88         [CCode (cheader_filename = "gudev/gudev.h")]
89         [SimpleType]
90         [IntegerType (rank = 9)]
91         public struct DeviceNumber : Posix.dev_t {
92         }
93         [CCode (cprefix = "G_UDEV_DEVICE_TYPE_", cheader_filename = "gudev/gudev.h")]
94         public enum DeviceType {
95                 NONE,
96                 BLOCK,
97                 CHAR
98         }