diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-16 01:52:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-16 01:52:09 +0100 |
commit | fcf663afaf547e632c02f2aefe0084b26c01f6ff (patch) | |
tree | 6f9eb9fbc871ca222778ff29314726bd826f019b /gudev-1.0.vapi |
initial checkin
Diffstat (limited to 'gudev-1.0.vapi')
-rw-r--r-- | gudev-1.0.vapi | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gudev-1.0.vapi b/gudev-1.0.vapi new file mode 100644 index 0000000..6f6cc8c --- /dev/null +++ b/gudev-1.0.vapi @@ -0,0 +1,34 @@ +[CCode(cprefix="GUdev", lower_case_cprefix="g_udev_", cheader_filename="gudev/gudev.h")] +namespace Udev { + + public class Device : GLib.Object { + public unowned string get_name(); + public unowned string get_subsystem(); + public unowned string get_sysfs_path(); + public unowned string? get_devtype(); + public unowned string? get_driver(); + public unowned string? get_device_file(); + public unowned string? get_number(); + public unowned Device? get_parent(); + + public unowned string? get_property(string key); + + [CCode (array_length = false, array_null_terminated = true)] + public unowned string[] get_property_keys(); + + [CCode (array_length = false, array_null_terminated = true)] + public unowned string[] get_device_file_symlinks(); + + public uint64 get_seqnum(); + } + + public class Client : GLib.Object { + + public Client([CCode (array_length = false)] string[]? subsystems = null); + + public GLib.List<Device> query_by_subsystem(string? subsystem = null); + public Device query_by_sysfs_path(string sysfs_path); + + public signal void uevent(string action, Device d); + } +} |