TestStructWithVariant

TestStructWithVariant — Complex structure

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── EggDBusStructure
        ╰── TestStructWithVariant

Description

Test type for a complex structure (siivi).

Functions

test_struct_with_variant_new ()

TestStructWithVariant *
test_struct_with_variant_new (const gchar *name,
                              gint anger_level,
                              gint threat_level,
                              EggDBusVariant *a_variant,
                              TestSomeExampleCType override_c_type);

Constructs a new TestStructWithVariant.

Parameters

name

A name

 

anger_level

The level of anger

 

threat_level

The level of threat

 

a_variant

Some variant

 

override_c_type

Some primitive type

 

test_struct_with_variant_get_name ()

const gchar *
test_struct_with_variant_get_name (TestStructWithVariant *instance);

Gets element 0 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

Returns

A name


test_struct_with_variant_get_anger_level ()

gint
test_struct_with_variant_get_anger_level
                               (TestStructWithVariant *instance);

Gets element 1 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

Returns

The level of anger


test_struct_with_variant_get_threat_level ()

gint
test_struct_with_variant_get_threat_level
                               (TestStructWithVariant *instance);

Gets element 2 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

Returns

The level of threat


test_struct_with_variant_get_a_variant ()

EggDBusVariant *
test_struct_with_variant_get_a_variant
                               (TestStructWithVariant *instance);

Gets element 3 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

Returns

Some variant


test_struct_with_variant_get_override_c_type ()

TestSomeExampleCType
test_struct_with_variant_get_override_c_type
                               (TestStructWithVariant *instance);

Gets element 4 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

Returns

Some primitive type


test_struct_with_variant_set_name ()

void
test_struct_with_variant_set_name (TestStructWithVariant *instance,
                                   const gchar *value);

Sets element 0 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

value

A name

 

test_struct_with_variant_set_anger_level ()

void
test_struct_with_variant_set_anger_level
                               (TestStructWithVariant *instance,
                                gint value);

Sets element 1 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

value

The level of anger

 

test_struct_with_variant_set_threat_level ()

void
test_struct_with_variant_set_threat_level
                               (TestStructWithVariant *instance,
                                gint value);

Sets element 2 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

value

The level of threat

 

test_struct_with_variant_set_a_variant ()

void
test_struct_with_variant_set_a_variant
                               (TestStructWithVariant *instance,
                                EggDBusVariant *value);

Sets element 3 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

value

Some variant

 

test_struct_with_variant_set_override_c_type ()

void
test_struct_with_variant_set_override_c_type
                               (TestStructWithVariant *instance,
                                TestSomeExampleCType value);

Sets element 4 of the EggDBusStructure wrapped by TestStructWithVariant.

Parameters

instance

A TestStructWithVariant.

 

value

Some primitive type

 

Types and Values

TestStructWithVariant

typedef struct _TestStructWithVariant TestStructWithVariant;