/usr/share/vala-0.40/vapi/libnotify.vapi is in valac-0.40-vapi 0.40.4-1.
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | /* libnotify.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Notify", gir_namespace = "Notify", gir_version = "0.7", lower_case_cprefix = "notify_")]
namespace Notify {
[CCode (cheader_filename = "libnotify/notify.h", type_id = "notify_notification_get_type ()")]
public class Notification : GLib.Object {
[CCode (has_construct_function = false)]
public Notification (string summary, string? body, string? icon);
public void add_action (string action, string label, owned Notify.ActionCallback callback);
public void clear_actions ();
public void clear_hints ();
public bool close () throws GLib.Error;
public int get_closed_reason ();
[Version (since = "0.7.3")]
public void set_app_name (string app_name);
public void set_category (string category);
[Version (since = "0.6")]
public void set_hint (string key, GLib.Variant? value);
[Version (deprecated = true, deprecated_since = "0.6.")]
public void set_hint_byte (string key, [CCode (type = "guchar")] uchar value);
[Version (deprecated = true, deprecated_since = "0.6.")]
public void set_hint_byte_array (string key, [CCode (array_length_cname = "len", array_length_pos = 2.1, array_length_type = "gsize")] uchar[] value);
[Version (deprecated = true, deprecated_since = "0.6.")]
public void set_hint_double (string key, double value);
[Version (deprecated = true, deprecated_since = "0.6.")]
public void set_hint_int32 (string key, int value);
[Version (deprecated = true, deprecated_since = "0.6.")]
public void set_hint_string (string key, string value);
[Version (deprecated = true, deprecated_since = "0.6.")]
public void set_hint_uint32 (string key, uint value);
[Version (deprecated = true)]
public void set_icon_from_pixbuf (Gdk.Pixbuf icon);
public void set_image_from_pixbuf (Gdk.Pixbuf pixbuf);
public void set_timeout (int timeout);
public void set_urgency (Notify.Urgency urgency);
public bool show () throws GLib.Error;
public bool update (string summary, string? body, string? icon);
[NoAccessorMethod]
public string app_name { owned get; set; }
[NoAccessorMethod]
public string body { owned get; set construct; }
public int closed_reason { get; }
[NoAccessorMethod]
public string icon_name { owned get; set construct; }
[NoAccessorMethod]
public int id { get; set construct; }
[NoAccessorMethod]
public string summary { owned get; set construct; }
public virtual signal void closed ();
}
[CCode (cheader_filename = "libnotify/notify.h", cprefix = "NOTIFY_URGENCY_", type_id = "notify_urgency_get_type ()")]
public enum Urgency {
LOW,
NORMAL,
CRITICAL
}
[CCode (cheader_filename = "libnotify/notify.h", instance_pos = 2.9)]
public delegate void ActionCallback (Notify.Notification notification, string action);
[CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_EXPIRES_DEFAULT")]
public const int EXPIRES_DEFAULT;
[CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_EXPIRES_NEVER")]
public const int EXPIRES_NEVER;
[CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_VERSION_MAJOR")]
public const int VERSION_MAJOR;
[CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_VERSION_MICRO")]
public const int VERSION_MICRO;
[CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_VERSION_MINOR")]
public const int VERSION_MINOR;
[CCode (cheader_filename = "libnotify/notify.h")]
public static unowned string get_app_name ();
[CCode (cheader_filename = "libnotify/notify.h")]
public static GLib.List<string> get_server_caps ();
[CCode (cheader_filename = "libnotify/notify.h")]
public static bool get_server_info (out string ret_name, out string ret_vendor, out string ret_version, out string ret_spec_version);
[CCode (cheader_filename = "libnotify/notify.h")]
public static bool init (string app_name);
[CCode (cheader_filename = "libnotify/notify.h")]
public static bool is_initted ();
[CCode (cheader_filename = "libnotify/notify.h")]
public static void set_app_name (string app_name);
[CCode (cheader_filename = "libnotify/notify.h")]
public static void uninit ();
}
|