TestPair

TestPair — Pair of integers

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── EggDBusStructure
        ╰── TestPair

Description

The TestPair type is used to group two integers together.

Functions

test_pair_new ()

TestPair *
test_pair_new (gint first,
               gint second);

Constructs a new TestPair.

Parameters

first

The first element

 

second

The second element

 

Returns

A TestPair.


test_pair_get_first ()

gint
test_pair_get_first (TestPair *instance);

Gets element 0 of the EggDBusStructure wrapped by TestPair.

Parameters

instance

A TestPair.

 

Returns

The first element


test_pair_get_second ()

gint
test_pair_get_second (TestPair *instance);

Gets element 1 of the EggDBusStructure wrapped by TestPair.

Parameters

instance

A TestPair.

 

Returns

The second element


test_pair_set_first ()

void
test_pair_set_first (TestPair *instance,
                     gint value);

Sets element 0 of the EggDBusStructure wrapped by TestPair.

Parameters

instance

A TestPair.

 

value

The first element

 

test_pair_set_second ()

void
test_pair_set_second (TestPair *instance,
                      gint value);

Sets element 1 of the EggDBusStructure wrapped by TestPair.

Parameters

instance

A TestPair.

 

value

The second element

 

Types and Values

TestPair

typedef struct _TestPair TestPair;