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
|
/* json-glib-1.0.vapi generated by lt-vapigen, do not modify. */
[CCode (cprefix = "Json", lower_case_cprefix = "json_")]
namespace Json {
[CCode (cprefix = "JSON_NODE_", has_type_id = "0", cheader_filename = "json-glib/json-glib.h")]
public enum NodeType {
OBJECT,
ARRAY,
VALUE,
NULL
}
[CCode (cprefix = "JSON_PARSER_ERROR_", has_type_id = "0", cheader_filename = "json-glib/json-glib.h")]
public enum ParserError {
PARSE,
UNKNOWN
}
[CCode (cprefix = "JSON_TOKEN_", has_type_id = "0", cheader_filename = "json-glib/json-glib.h")]
public enum TokenType {
INVALID,
TRUE,
FALSE,
NULL,
VAR,
LAST
}
[Compact]
[CCode (ref_function = "json_array_ref", unref_function = "json_array_unref", cheader_filename = "json-glib/json-glib.h")]
public class Array : GLib.Boxed {
public void add_element (Json.Node node);
public weak Json.Node get_element (uint index_);
public weak GLib.List get_elements ();
public uint get_length ();
public Array ();
public void remove_element (uint index_);
public static weak Json.Array sized_new (uint n_elements);
}
[Compact]
[CCode (copy_function = "json_node_copy", cheader_filename = "json-glib/json-glib.h")]
public class Node : GLib.Boxed {
public Json.NodeType type;
public void* data;
public weak Json.Node parent;
public weak Json.Node copy ();
public weak Json.Array dup_array ();
public weak Json.Object dup_object ();
public weak string dup_string ();
public weak Json.Array get_array ();
public bool get_boolean ();
public double get_double ();
public int get_int ();
public weak Json.Object get_object ();
public weak Json.Node get_parent ();
public weak string get_string ();
public void get_value (GLib.Value value);
public GLib.Type get_value_type ();
public Node (Json.NodeType type);
public void set_array (Json.Array array);
public void set_boolean (bool value);
public void set_double (double value);
public void set_int (int value);
public void set_object (Json.Object object);
public void set_string (string value);
public void set_value (GLib.Value value);
public void take_array (Json.Array array);
public void take_object (Json.Object object);
public weak string type_name ();
}
[Compact]
[CCode (ref_function = "json_object_ref", unref_function = "json_object_unref", cheader_filename = "json-glib/json-glib.h")]
public class Object : GLib.Boxed {
public void add_member (string member_name, Json.Node node);
public weak Json.Node get_member (string member_name);
public weak GLib.List get_members ();
public uint get_size ();
public weak GLib.List get_values ();
public bool has_member (string member_name);
public Object ();
public void remove_member (string member_name);
}
[CCode (cheader_filename = "json-glib/json-glib.h")]
public class Generator : GLib.Object {
public Generator ();
public void set_root (Json.Node node);
public string to_data (out ulong length);
public bool to_file (string filename) throws GLib.Error;
[NoAccessorMethod]
public uint indent { get; set; }
[NoAccessorMethod]
public bool pretty { get; set; }
[NoAccessorMethod]
public Json.Node root { get; set; }
}
[CCode (cheader_filename = "json-glib/json-glib.h")]
public class Parser : GLib.Object {
public static GLib.Quark error_quark ();
public uint get_current_line ();
public uint get_current_pos ();
public weak Json.Node get_root ();
public bool has_assignment (out weak string variable_name);
public bool load_from_data (string data, ulong length) throws GLib.Error;
public bool load_from_file (string filename) throws GLib.Error;
public Parser ();
public virtual signal void array_element (Json.Array array, int index_);
public virtual signal void array_end (Json.Array array);
public virtual signal void array_start ();
public virtual signal void error (void* error);
public virtual signal void object_end (Json.Object object);
public virtual signal void object_member (Json.Object object, string member_name);
public virtual signal void object_start ();
public virtual signal void parse_end ();
public virtual signal void parse_start ();
}
[CCode (cheader_filename = "json-glib/json-glib.h")]
public interface Serializable {
public abstract bool deserialize_property (string property_name, GLib.Value value, GLib.ParamSpec pspec, Json.Node property_node);
public abstract Json.Node serialize_property (string property_name, GLib.Value value, GLib.ParamSpec pspec);
}
[CCode (cheader_filename = "json-glib/json-glib.h")]
public const int MAJOR_VERSION;
[CCode (cheader_filename = "json-glib/json-glib.h")]
public const int MICRO_VERSION;
[CCode (cheader_filename = "json-glib/json-glib.h")]
public const int MINOR_VERSION;
[CCode (cheader_filename = "json-glib/json-glib.h")]
public const int VERSION_HEX;
[CCode (cheader_filename = "json-glib/json-glib.h")]
public const string VERSION_S;
[CCode (cheader_filename = "json-glib/json-glib.h")]
public static GLib.Object construct_gobject (GLib.Type gtype, string data, ulong length) throws GLib.Error;
[CCode (cheader_filename = "json-glib/json-glib.h")]
public static string serialize_gobject (GLib.Object gobject, out ulong length);
}
|