/usr/share/vala/vapi/gexiv2.vapi is in libgexiv2-dev 0.10.8-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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | /* gexiv2.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "GExiv2", gir_namespace = "GExiv2", gir_version = "0.10", lower_case_cprefix = "gexiv2_")]
namespace GExiv2 {
[CCode (cheader_filename = "gexiv2/gexiv2.h", type_id = "gexiv2_metadata_get_type ()")]
public class Metadata : GLib.Object {
[CCode (has_construct_function = false)]
public Metadata ();
public void clear ();
public void clear_comment ();
public void clear_exif ();
public void clear_iptc ();
public bool clear_tag (string tag);
public void clear_xmp ();
public void delete_gps_info ();
public void erase_exif_thumbnail ();
[Version (deprecated = true, deprecated_since = "0.10.3")]
public void free ();
public bool from_app1_segment ([CCode (array_length = false)] uchar[] data, long n_data) throws GLib.Error;
public string? generate_xmp_packet (GExiv2.XmpFormatFlags xmp_format_flags, uint32 padding);
public string? get_comment ();
public bool get_exif_tag_rational (string tag, out int nom, out int den);
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_exif_tags ();
public bool get_exif_thumbnail ([CCode (array_length_cname = "size", array_length_pos = 1.1)] out uint8[] buffer);
public bool get_exposure_time (out int nom, out int den);
public double get_fnumber ();
public double get_focal_length ();
public bool get_gps_altitude (out double altitude);
public bool get_gps_info (out double longitude, out double latitude, out double altitude);
public bool get_gps_latitude (out double latitude);
public bool get_gps_longitude (out double longitude);
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_iptc_tags ();
public int get_iso_speed ();
public int get_metadata_pixel_height ();
public int get_metadata_pixel_width ();
public unowned string get_mime_type ();
public GExiv2.Orientation get_orientation ();
public int get_pixel_height ();
public int get_pixel_width ();
public GExiv2.PreviewImage get_preview_image (GExiv2.PreviewProperties props);
[CCode (array_length = false, array_null_terminated = true)]
public unowned GExiv2.PreviewProperties[]? get_preview_properties ();
public bool get_supports_exif ();
public bool get_supports_iptc ();
public bool get_supports_xmp ();
public static unowned string? get_tag_description (string tag);
public string? get_tag_interpreted_string (string tag);
public static unowned string? get_tag_label (string tag);
public long get_tag_long (string tag);
[CCode (array_length = false, array_null_terminated = true)]
public string[]? get_tag_multiple (string tag);
public GLib.Bytes? get_tag_raw (string tag);
public string? get_tag_string (string tag);
public static unowned string? get_tag_type (string tag);
public string? get_xmp_packet ();
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_xmp_tags ();
public bool has_exif ();
public bool has_iptc ();
public bool has_tag (string tag);
public bool has_xmp ();
public static bool is_exif_tag (string tag);
public static bool is_iptc_tag (string tag);
public static bool is_xmp_tag (string tag);
public bool open_buf ([CCode (array_length = false)] uchar[] data, long n_data) throws GLib.Error;
public bool open_path (string path) throws GLib.Error;
public static bool register_xmp_namespace (string name, string prefix);
[Version (since = "0.10.6")]
public bool save_external (string path) throws GLib.Error;
public bool save_file (string path) throws GLib.Error;
public void set_comment (string comment);
public bool set_exif_tag_rational (string tag, int nom, int den);
public void set_exif_thumbnail_from_buffer ([CCode (array_length_cname = "size", array_length_pos = 1.1)] uint8[] buffer);
public bool set_exif_thumbnail_from_file (string path) throws GLib.Error;
public bool set_gps_info (double longitude, double latitude, double altitude);
public void set_metadata_pixel_height (int height);
public void set_metadata_pixel_width (int width);
public void set_orientation (GExiv2.Orientation orientation);
public bool set_tag_long (string tag, long value);
public bool set_tag_multiple (string tag, [CCode (array_length = false, array_null_terminated = true)] string[] values);
public bool set_tag_string (string tag, string value);
public bool set_xmp_tag_struct (string tag, GExiv2.StructureType type);
public static void unregister_all_xmp_namespaces ();
public static bool unregister_xmp_namespace (string name);
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", type_id = "gexiv2_preview_image_get_type ()")]
public class PreviewImage : GLib.Object {
[CCode (has_construct_function = false)]
protected PreviewImage ();
[Version (deprecated = true, deprecated_since = "0.10.3")]
public void free ();
[CCode (array_length_pos = 0.1, array_length_type = "guint32")]
public unowned uint8[] get_data ();
public unowned string get_extension ();
public uint32 get_height ();
public unowned string get_mime_type ();
public uint32 get_width ();
public long write_file (string path);
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", type_id = "gexiv2_preview_properties_get_type ()")]
public class PreviewProperties : GLib.Object {
[CCode (has_construct_function = false)]
protected PreviewProperties ();
public unowned string get_extension ();
public uint32 get_height ();
public unowned string get_mime_type ();
public uint32 get_size ();
public uint32 get_width ();
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", cprefix = "GEXIV2_LOG_LEVEL_", type_id = "gexiv2_gexiv2_log_level_get_type ()")]
public enum LogLevel {
DEBUG,
INFO,
WARN,
ERROR,
MUTE
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", cprefix = "GEXIV2_ORIENTATION_", type_id = "gexiv2_gexiv2_orientation_get_type ()")]
public enum Orientation {
UNSPECIFIED,
NORMAL,
HFLIP,
ROT_180,
VFLIP,
ROT_90_HFLIP,
ROT_90,
ROT_90_VFLIP,
ROT_270
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", cprefix = "GEXIV2_STRUCTURE_XA_", type_id = "gexiv2_gexiv2_structure_type_get_type ()")]
public enum StructureType {
NONE,
ALT,
BAG,
SEQ,
LANG
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", cprefix = "GEXIV2_", type_id = "gexiv2_gexiv2_xmp_format_flags_get_type ()")]
[Flags]
public enum XmpFormatFlags {
OMIT_PACKET_WRAPPER,
READ_ONLY_PACKET,
USE_COMPACT_FORMAT,
INCLUDE_THUMBNAIL_PAD,
EXACT_PACKET_LENGTH,
WRITE_ALIAS_COMMENTS,
OMIT_ALL_FORMATTING
}
[CCode (cheader_filename = "gexiv2/gexiv2.h", has_target = false)]
public delegate void LogHandler (GExiv2.LogLevel level, string msg);
[CCode (cheader_filename = "gexiv2/gexiv2.h", cname = "GEXIV2_MAJOR_VERSION")]
public const int MAJOR_VERSION;
[CCode (cheader_filename = "gexiv2/gexiv2.h", cname = "GEXIV2_MICRO_VERSION")]
public const int MICRO_VERSION;
[CCode (cheader_filename = "gexiv2/gexiv2.h", cname = "GEXIV2_MINOR_VERSION")]
public const int MINOR_VERSION;
[CCode (cheader_filename = "gexiv2/gexiv2.h")]
public static int get_version ();
[CCode (cheader_filename = "gexiv2/gexiv2.h")]
public static bool initialize ();
[CCode (cheader_filename = "gexiv2/gexiv2.h")]
public static GExiv2.LogLevel log_get_level ();
[CCode (cheader_filename = "gexiv2/gexiv2.h")]
public static void log_set_level (GExiv2.LogLevel level);
[CCode (cheader_filename = "gexiv2/gexiv2.h")]
public static void log_use_glib_logging ();
}
|