dbus_g_type_get_collection: : a string specifying a registered collection type : GType of collection elements
Gets a GType for a particular collection instance, creating the type if not already created.
Returns: the GType of that instance
IMPORT_C GType | dbus_g_type_get_map | ( | const char * | container, |
GType | key_specialization, | |||
GType | value_specialization | |||
) |
dbus_g_type_get_map: : a string specifying a registered map type : GType of keys : GType of values
Gets a GType for a particular map instance, creating the type if not already created.
Returns: the GType of that instance
dbus_g_type_get_structv: : a string specifying a registered struct type : number of members in the struct : an array specufying a GType for each struct element
Gets a GType for a particular struct instance, creating the type if not already created.
Returns: the GType of that instance
dbus_g_type_get_struct: : a string specifying a registered struct type : GType for the struct's first member @...: more GTypes for the struct's members, terminated by G_TYPE_INVALID
Varags methsod to get a GType for a particular struct instance, creating the type if not already created.
Returns: the GType of that instance
dbus_g_type_is_collection: : a GType to test
Tests if a given GType is a collection.
Returns: true if the given GType is a collection
dbus_g_type_is_map: : a GType to test
Tests if a given GType is a map, i.e. it was created with dbus_g_type_get_map.
Returns: true if the given GType is a map
dbus_g_type_is_struct: : a GType to test
Tests if a given GType is a struct, i.e. it was created with dbus_g_type_get_struct
Returns: true if the given GType is a struct
dbus_g_type_get_collection_specialization: : a collection GType, as created by dbus_g_type_get_collection.
Returns: the element type for a given collection GType. Returns G_TYPE_INVALID if not a collection GType
dbus_g_type_get_map_key_specialization: : a map GType, as created by dbus_g_type_get_map.
Returns: the key type for a given map GType. Returns G_TYPE_INVALID if not a map GType
dbus_g_type_get_map_value_specialization: : a map GType, as created by dbus_g_type_get_map.
Returns: the value type for a given map GType. Returns G_TYPE_INVALID if not a map GType
dbus_g_type_get_struct_member_type : a struct GType, as created with dbus_g_type_get_struct : the index of a struct member
Returns: the type for a given member of a struct GType. Returns G_TYPE_INVALID if not a struct GType
dbus_g_type_get_struct_size : a struct GType, as created with dbus_g_type_get_struct.
Returns: the number of members in a given struct GType. Returns G_TYPE_INVALID if not a struct GType
typedef void(* | DBusGTypeSpecializedCollectionIterator |
typedef void(* | DBusGTypeSpecializedMapIterator |
dbus_g_type_specialized_construct: : a specialized GType, as created by dbus_g_type_get_collection, dbus_g_type_get_map or dbus_g_type_get_struct.
Create an instance of a given specialized type. The structure created and returned will depend on the container type of the GType. E.g. If the given type was created by dbus_g_type_get_collection("GArray", G_TYPE_INT), then this will return a GArray with element_size of sizeof(int)
Returns: a pointer to a newly constructed instance of the given type.
IMPORT_C void | dbus_g_type_specialized_init_append | ( | GValue * | value, |
DBusGTypeSpecializedAppendContext * | ctx | |||
) |
dbus_g_type_specialized_init_append: : a Deprecated: maybe i'll deprecate this as its a bit wank.GValue containing an instance of specialized type : a DBusGTypeSpecializedAppendContext in which to return a new appending context.
Create a new context for adding elements to a collection or key/value pairs to a map. You generally don't need or want to use this..
IMPORT_C void | dbus_g_type_specialized_collection_append | ( | DBusGTypeSpecializedAppendContext * | ctx, |
GValue * | elt | |||
) |
dbus_g_type_specialized_collection_append: : a context created by Deprecated: maybe i'll deprecate this as its a bit wank.dbus_g_type_specialized_init_append : a GValue containing an element to append to the collection.
Appends a given element to the end of a collection.
IMPORT_C void | dbus_g_type_specialized_collection_end_append | ( | DBusGTypeSpecializedAppendContext * | ctx | ) |
dbus_g_type_specialized_collection_end_append: : a context created by Deprecated: maybe i'll deprecate this as its a bit wank.dbus_g_type_specialized_init_append
Finish appending elements to a given collection
IMPORT_C void | dbus_g_type_specialized_map_append | ( | DBusGTypeSpecializedAppendContext * | ctx, |
GValue * | key, | |||
GValue * | val | |||
) |
dbus_g_type_specialized_map_append: : a context created by Deprecated: maybe i'll deprecate this as its a bit wank.dbus_g_type_specialized_init_append : a GValue containing a key : a GValue containing a value
Inserts the given key/value pair into the map instance.
dbus_g_type_collection_get_fixed: Deprecated: maybe?
if the collection has elements of fixed size (i.e. a fundamental type), return the contents of the array. Its pretty obscure and I don't think anyone uses it.
IMPORT_C void | dbus_g_type_collection_value_iterate | ( | const GValue * | value, |
DBusGTypeSpecializedCollectionIterator | iterator, | |||
gpointer | user_data | |||
) |
dbus_g_type_collection_value_iterate: : a GValue holding a collection type. : a function to call for each element : user data to pass to the
Calls the given function for each element of the collection. The function is passed a GValue containing the element and the given parameter. The collection may not be modified while iterating over it.
IMPORT_C void | dbus_g_type_map_value_iterate | ( | const GValue * | value, |
DBusGTypeSpecializedMapIterator | iterator, | |||
gpointer | user_data | |||
) |
dbus_g_type_map_value_iterate: : a GValue holding a collection type. : a function to call for each element : user data to pass to the
Calls the given function for each key/value pair of the map. The function is passed two GValues containing the key/value pair and the given parameter. The map may not be modified while iterating over it.
dbus_g_type_struct_get_member: : a GValue containing a struct instance : the index of a given member : an initialised GValue in which to return the struct member
Fetches a given member of a given struct instance. must be initialised was the correct type for that member, e.g. as returned by
Returns: TRUE if sucessful
dbus_g_type_struct_set_member: : a GValue containing a struct instance : the index of a given member : an GValue containing the new value for that struct member
Sets a given member of a struct to a new value. The type of must match the exiting type of member of the struct.
Returns: TRUE if sucessful
dbus_g_type_struct_get: : a GValue containing a #DBusGTypeStruct type : struct member to get @...: location in which to return the value of this member, followed optionally by more member/return locations pairs, followed by by G_MAXUINT
Collects the selected values of this struct into the return locations provided.
Returns: FALSE on failure
dbus_g_type_struct_set: : a GValue containing a #DBusGTypeStruct type : struct member to set @...: value for the first member, followed optionally by more member/value pairs, followed by G_MAXUINT
Sets the selected members of the struct in .
Returns: FALSE on failure
typedef gpointer(* | DBusGTypeSpecializedConstructor |
typedef void(* | DBusGTypeSpecializedFreeFunc |
typedef gpointer(* | DBusGTypeSpecializedCopyFunc |
typedef gboolean(* | DBusGTypeSpecializedCollectionFixedAccessorFunc |
typedef void(* | DBusGTypeSpecializedCollectionIteratorFunc |
typedef void(* | DBusGTypeSpecializedCollectionAppendFunc |
typedef void(* | DBusGTypeSpecializedCollectionEndAppendFunc |
typedef void(* | DBusGTypeSpecializedMapIteratorFunc |
typedef void(* | DBusGTypeSpecializedMapAppendFunc |
typedef gboolean(* | DBusGTypeSpecializedStructGetMember |
typedef gboolean(* | DBusGTypeSpecializedStructSetMember |
IMPORT_C void | dbus_g_type_specialized_init | ( | void | ) |
IMPORT_C void | dbus_g_type_register_collection | ( | const char * | name, |
const DBusGTypeSpecializedCollectionVtable * | vtable, | |||
guint | flags | |||
) |
IMPORT_C void | dbus_g_type_register_map | ( | const char * | name, |
const DBusGTypeSpecializedMapVtable * | vtable, | |||
guint | flags | |||
) |
IMPORT_C const DBusGTypeSpecializedMapVtable * | dbus_g_type_map_peek_vtable | ( | GType | map_type | ) |
dbus_g_type_map_peek_vtable: : a gtype of a map specialization
Peek the vtable for a given map specialization
IMPORT_C const DBusGTypeSpecializedCollectionVtable * | dbus_g_type_collection_peek_vtable | ( | GType | collection_type | ) |
dbus_g_type_collection_peek_vtable: : a gtype of a collection specialization
Peek the vtable for a given collection specialization
IMPORT_C void | dbus_g_type_register_struct | ( | const char * | name, |
const DBusGTypeSpecializedStructVtable * | vtable, | |||
guint | flags | |||
) |
IMPORT_C const DBusGTypeSpecializedStructVtable * | dbus_g_type_struct_peek_vtable | ( | GType | struct_type | ) |
dbus_g_type_struct_peek_vtable: : a gtype of a struct specialization
Peek the vtable for a given struct specialization