]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib vapi: rip out old GVariant bindings
authorRyan Lortie <desrt@desrt.ca>
Wed, 24 Feb 2010 22:33:15 +0000 (17:33 -0500)
committerRyan Lortie <desrt@desrt.ca>
Wed, 24 Feb 2010 22:33:44 +0000 (17:33 -0500)
vapi/glib-2.0.vapi

index 4215283a02cb2e7a08cfcf7a11345582d159c606..c00680761ed44429b207fc714372be7ba61eeeca 100644 (file)
@@ -3636,178 +3636,6 @@ namespace GLib {
                public bool is_nt_based ();
        }
 
-       [Compact]
-       public enum VariantTypeClass {
-                INVALID,
-                BOOLEAN,
-                BYTE,
-                INT16,
-                UINT16,
-                INT32,
-                UINT32,
-                INT64,
-                UINT64,
-                DOUBLE,
-                STRING,
-                OBJECT_PATH,
-                SIGNATURE,
-                VARIANT,
-                MAYBE,
-                ARRAY,
-                STRUCT,
-                DICT_ENTRY,
-                ALL,
-                BASIC;
-
-               public bool is_container ();
-               public bool is_basic ();
-       }
-
-       [Compact]
-       [CCode (copy_function = "g_variant_type_copy", free_function = "g_variant_type_free")]
-       public class VariantType {
-               [CCode (cname = "G_VARIANT_TYPE_BOOLEAN")]
-               public static VariantType BOOLEAN;
-               [CCode (cname = "G_VARIANT_TYPE_BYTE")]
-               public static VariantType BYTE;
-               [CCode (cname = "G_VARIANT_TYPE_INT16")]
-               public static VariantType INT16;
-               [CCode (cname = "G_VARIANT_TYPE_UINT16")]
-               public static VariantType UINT16;
-               [CCode (cname = "G_VARIANT_TYPE_INT32")]
-               public static VariantType INT32;
-               [CCode (cname = "G_VARIANT_TYPE_UINT32")]
-               public static VariantType UINT32;
-               [CCode (cname = "G_VARIANT_TYPE_INT64")]
-               public static VariantType INT64;
-               [CCode (cname = "G_VARIANT_TYPE_UINT64")]
-               public static VariantType UINT64;
-               [CCode (cname = "G_VARIANT_TYPE_DOUBLE")]
-               public static VariantType DOUBLE;
-               [CCode (cname = "G_VARIANT_TYPE_STRING")]
-               public static VariantType STRING;
-               [CCode (cname = "G_VARIANT_TYPE_OBJECT_PATH")]
-               public static VariantType OBJECT_PATH;
-               [CCode (cname = "G_VARIANT_TYPE_SIGNATURE")]
-               public static VariantType SIGNATURE;
-               [CCode (cname = "G_VARIANT_TYPE_VARIANT")]
-               public static VariantType VARIANT;
-               [CCode (cname = "G_VARIANT_TYPE_UNIT")]
-               public static VariantType UNIT;
-               [CCode (cname = "G_VARIANT_TYPE_ANY")]
-               public static VariantType ANY;
-               [CCode (cname = "G_VARIANT_TYPE_ANY_BASIC")]
-               public static VariantType ANY_BASIC;
-               [CCode (cname = "G_VARIANT_TYPE_ANY_MAYBE")]
-               public static VariantType ANY_MAYBE;
-               [CCode (cname = "G_VARIANT_TYPE_ANY_ARRAY")]
-               public static VariantType ANY_ARRAY;
-               [CCode (cname = "G_VARIANT_TYPE_ANY_STRUCT")]
-               public static VariantType ANY_STRUCT;
-               [CCode (cname = "G_VARIANT_TYPE_ANY_DICT_ENTRY")]
-               public static VariantType ANY_DICT_ENTRY;
-               [CCode (cname = "G_VARIANT_TYPE_ANY_DICTIONARY")]
-               public static VariantType ANY_DICTIONARY;
-
-               public static bool string_is_valid (string type_string);
-               public static bool string_scan (string type_string, char *limit = null, out char* endptr = null);
-
-               public VariantType (string type_string);
-
-               size_t get_string_length ();
-               weak string peek_string ();
-               string[] dup_string ();
-
-               public bool is_concrete ();
-               public bool is_container ();
-               public bool is_basic ();
-
-               public uint hash ();
-               public bool equal (VariantType other);
-               public bool matches (VariantType pattern);
-               public bool is_in_class (VariantTypeClass class);
-               public VariantTypeClass get_class ();
-
-               public weak VariantType element ();
-               public weak VariantType first ();
-               public weak VariantType next ();
-               public uint n_items ();
-               public weak VariantType key ();
-               public weak VariantType value ();
-
-               public VariantType.array (VariantType element);
-               public VariantType.maybe (VariantType element);
-               public VariantType.dict_entry (VariantType key, VariantType value);
-       }
-
-       [Compact]
-       [CCode (ref_function = "g_variant_ref", unref_function = "g_variant_unref", ref_sink_function = "g_variant_ref_sink", type_id = "G_TYPE_VARIANT", type_signature = "v")]
-       public class Variant {
-               public void flatten ();
-
-               public VariantTypeClass get_type_class ();
-               public weak VariantType get_type ();
-               public weak string get_type_string ();
-               public bool is_basic ();
-               public bool is_container ();
-               public bool matches (VariantType type);
-
-               public Variant (string format_string, ...);
-               public void get (string format_string, ...);
-               public static bool format_string_scan (string string, char* limit = null, out char* endptr = null);
-               public static VariantType format_string_scan_type (string string, char* limit = null, out char* endptr = null);
-
-               public Variant.boolean (bool value);
-               public Variant.byte (uint8 value);
-               public Variant.int16 (int16 value);
-               public Variant.uint16 (uint16 value);
-               public Variant.int32 (int32 value);
-               public Variant.uint32 (uint32 value);
-               public Variant.int64 (int64 value);
-               public Variant.uint64 (uint64 value);
-               public Variant.double (double value);
-               public Variant.string (string value);
-               public Variant.strv (string[] value);
-               public static bool is_object_path (string object_path);
-               public Variant.object_path (string object_path);
-               public static bool is_signature (string signature);
-               public Variant.signature (string signature);
-               public Variant.variant (Variant value);
-
-               public bool get_boolean ();
-               public uint8 get_byte ();
-               public int16 get_int16 ();
-               public uint16 get_uint16 ();
-               public int32 get_int32 ();
-               public uint32 get_uint32 ();
-               public int64 get_int64 ();
-               public uint64 get_uint64 ();
-               public double get_double ();
-               public weak string get_string (out size_t length);
-               public string dup_string (out size_t length);
-               public string*[] get_strv ();
-               public string[] dup_strv ();
-               public Variant get_variant ();
-
-               public void* get_fixed (size_t size);
-               public void* get_fixed_array (size_t elem_size, out uint length);
-
-               public uint n_children ();
-               public Variant get_child_value (uint index);
-               public void get_child (uint index, string format_string, ...);
-
-               public Variant lookup_value (string key);
-               public Variant lookup (string key, string format_string, ...);
-
-               public string print (bool type_annotate);
-               public StringBuilder print_string (StringBuilder ?string, bool type_annotate);
-               public static Variant parse (string text, int text_length, VariantType? type) throws Error;
-               public Variant.parsed (string format_string, ...);
-
-               public string markup_print (bool newlines, int indentation, int tabstop);
-               public StringBuilder markup_print_string (StringBuilder ?string, bool newlines, int indentation, int tabstop);
-       }
-
        [CCode (cname = "G_LIKELY", cheader_filename = "glib.h")]
        public static bool likely (bool expression);
        [CCode (cname = "G_UNLIKELY", cheader_filename = "glib.h")]