/usr/share/vala/vapi/umockdev-1.0.vapi is in libumockdev-dev 0.8.11-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /* umockdev-1.0.vapi generated by valac 0.28.0, do not modify. */
namespace UMockdev {
[CCode (cheader_filename = "umockdev.h")]
public class Testbed : GLib.Object {
public Testbed ();
public string? add_device (string subsystem, string name, string? parent, ...);
public string? add_devicev (string subsystem, string name, string? parent, [CCode (array_length = false, array_null_terminated = true)] string[] attributes, [CCode (array_length = false, array_null_terminated = true)] string[] properties);
public bool add_from_file (string path) throws UMockdev.Error, GLib.FileError;
public bool add_from_string (string data) throws UMockdev.Error;
public void clear ();
public void disable ();
public void enable ();
public int get_dev_fd (string devnode);
public new string? get_property (string devpath, string name);
public string get_root_dir ();
public string get_sys_dir ();
public bool load_evemu_events (string? dev, string eventsfile) throws GLib.Error, GLib.FileError, GLib.IOError, GLib.RegexError;
public bool load_ioctl (string? dev, string recordfile) throws GLib.Error, GLib.FileError, GLib.IOError, GLib.RegexError;
public bool load_script (string? dev, string recordfile) throws GLib.Error, GLib.FileError, GLib.IOError, GLib.RegexError;
public bool load_socket_script (string path, int type, string recordfile) throws GLib.FileError;
public void remove_device (string syspath);
public void set_attribute (string devpath, string name, string value);
public void set_attribute_binary (string devpath, string name, uint8[] value);
public void set_attribute_hex (string devpath, string name, uint value);
public void set_attribute_int (string devpath, string name, int value);
public void set_attribute_link (string devpath, string name, string value);
public new void set_property (string devpath, string name, string value);
public void set_property_hex (string devpath, string name, uint value);
public void set_property_int (string devpath, string name, int value);
public void uevent (string devpath, string action);
}
[CCode (cheader_filename = "umockdev.h")]
public errordomain Error {
PARSE,
VALUE
}
[CCode (cheader_filename = "umockdev.h")]
public static bool in_mock_environment ();
}
|