dbus-gtype-specialized.h File Reference

dbus_g_type_get_collection ( const char *, GType )

G_BEGIN_DECLS IMPORT_C GTypedbus_g_type_get_collection(const char *container,
GTypespecialization
)

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

dbus_g_type_get_map ( const char *, GType, GType )

IMPORT_C GTypedbus_g_type_get_map(const char *container,
GTypekey_specialization,
GTypevalue_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 ( const char *, guint, GType * )

IMPORT_C GTypedbus_g_type_get_structv(const char *container,
guintnum_members,
GType *types
)

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 ( const char *, GType, ... )

IMPORT_C GTypedbus_g_type_get_struct(const char *container,
GTypefirst_type,
...
)

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 ( GType )

IMPORT_C gbooleandbus_g_type_is_collection(GTypegtype)

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 ( GType )

IMPORT_C gbooleandbus_g_type_is_map(GTypegtype)

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 ( GType )

IMPORT_C gbooleandbus_g_type_is_struct(GTypegtype)

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 ( GType )

IMPORT_C GTypedbus_g_type_get_collection_specialization(GTypegtype)

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 ( GType )

IMPORT_C GTypedbus_g_type_get_map_key_specialization(GTypegtype)

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 ( GType )

IMPORT_C GTypedbus_g_type_get_map_value_specialization(GTypegtype)

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 ( GType, guint )

IMPORT_C GTypedbus_g_type_get_struct_member_type(GTypegtype,
guintmember
)

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 ( GType )

IMPORT_C guintdbus_g_type_get_struct_size(GTypegtype)

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 DBusGTypeSpecializedCollectionIterator

typedef void(*DBusGTypeSpecializedCollectionIterator

Typedef DBusGTypeSpecializedMapIterator

typedef void(*DBusGTypeSpecializedMapIterator

dbus_g_type_specialized_construct ( GType )

IMPORT_C gpointerdbus_g_type_specialized_construct(GTypegtype)

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.

dbus_g_type_specialized_init_append ( GValue *, DBusGTypeSpecializedAppendContext * )

IMPORT_C voiddbus_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..

dbus_g_type_specialized_collection_append ( DBusGTypeSpecializedAppendContext *, GValue * )

IMPORT_C voiddbus_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.

dbus_g_type_specialized_collection_end_append ( DBusGTypeSpecializedAppendContext * )

IMPORT_C voiddbus_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

dbus_g_type_specialized_map_append ( DBusGTypeSpecializedAppendContext *, GValue *, GValue * )

IMPORT_C voiddbus_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 ( GValue *, gpointer *, guint * )

IMPORT_C gbooleandbus_g_type_collection_get_fixed(GValue *value,
gpointer *data,
guint *len
)

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.

dbus_g_type_collection_value_iterate ( const GValue *, DBusGTypeSpecializedCollectionIterator, gpointer )

IMPORT_C voiddbus_g_type_collection_value_iterate(const GValue *value,
DBusGTypeSpecializedCollectionIteratoriterator,
gpointeruser_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.

dbus_g_type_map_value_iterate ( const GValue *, DBusGTypeSpecializedMapIterator, gpointer )

IMPORT_C voiddbus_g_type_map_value_iterate(const GValue *value,
DBusGTypeSpecializedMapIteratoriterator,
gpointeruser_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 ( const GValue *, guint, GValue * )

IMPORT_C gbooleandbus_g_type_struct_get_member(const GValue *value,
guintmember,
GValue *dest
)

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 ( GValue *, guint, const GValue * )

IMPORT_C gbooleandbus_g_type_struct_set_member(GValue *value,
guintmember,
const GValue *src
)

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 ( const GValue *, guint, ... )

IMPORT_C gbooleandbus_g_type_struct_get(const GValue *value,
guintmember,
...
)

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 ( GValue *, guint, ... )

IMPORT_C gbooleandbus_g_type_struct_set(GValue *value,
guintmember,
...
)

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 DBusGTypeSpecializedConstructor

typedef gpointer(*DBusGTypeSpecializedConstructor

Typedef DBusGTypeSpecializedFreeFunc

typedef void(*DBusGTypeSpecializedFreeFunc

Typedef DBusGTypeSpecializedCopyFunc

typedef gpointer(*DBusGTypeSpecializedCopyFunc

Typedef DBusGTypeSpecializedCollectionFixedAccessorFunc

typedef gboolean(*DBusGTypeSpecializedCollectionFixedAccessorFunc

Typedef DBusGTypeSpecializedCollectionIteratorFunc

typedef void(*DBusGTypeSpecializedCollectionIteratorFunc

Typedef DBusGTypeSpecializedCollectionAppendFunc

typedef void(*DBusGTypeSpecializedCollectionAppendFunc

Typedef DBusGTypeSpecializedCollectionEndAppendFunc

typedef void(*DBusGTypeSpecializedCollectionEndAppendFunc

Typedef DBusGTypeSpecializedMapIteratorFunc

typedef void(*DBusGTypeSpecializedMapIteratorFunc

Typedef DBusGTypeSpecializedMapAppendFunc

typedef void(*DBusGTypeSpecializedMapAppendFunc

Typedef DBusGTypeSpecializedStructGetMember

typedef gboolean(*DBusGTypeSpecializedStructGetMember

Typedef DBusGTypeSpecializedStructSetMember

typedef gboolean(*DBusGTypeSpecializedStructSetMember

dbus_g_type_specialized_init ( void )

IMPORT_C voiddbus_g_type_specialized_init(void)

dbus_g_type_register_collection ( const char *, const DBusGTypeSpecializedCollectionVtable *, guint )

IMPORT_C voiddbus_g_type_register_collection(const char *name,
const DBusGTypeSpecializedCollectionVtable *vtable,
guintflags
)

dbus_g_type_register_map ( const char *, const DBusGTypeSpecializedMapVtable *, guint )

IMPORT_C voiddbus_g_type_register_map(const char *name,
const DBusGTypeSpecializedMapVtable *vtable,
guintflags
)

dbus_g_type_map_peek_vtable ( GType )

IMPORT_C const DBusGTypeSpecializedMapVtable *dbus_g_type_map_peek_vtable(GTypemap_type)

dbus_g_type_map_peek_vtable: : a gtype of a map specialization

Peek the vtable for a given map specialization

dbus_g_type_collection_peek_vtable ( GType )

IMPORT_C const DBusGTypeSpecializedCollectionVtable *dbus_g_type_collection_peek_vtable(GTypecollection_type)

dbus_g_type_collection_peek_vtable: : a gtype of a collection specialization

Peek the vtable for a given collection specialization

dbus_g_type_register_struct ( const char *, const DBusGTypeSpecializedStructVtable *, guint )

IMPORT_C voiddbus_g_type_register_struct(const char *name,
const DBusGTypeSpecializedStructVtable *vtable,
guintflags
)

dbus_g_type_struct_peek_vtable ( GType )

IMPORT_C const DBusGTypeSpecializedStructVtable *dbus_g_type_struct_peek_vtable(GTypestruct_type)

dbus_g_type_struct_peek_vtable: : a gtype of a struct specialization

Peek the vtable for a given struct specialization