GthManager

GthManager — The Manager object

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GDBusObjectManagerClient
        ╰── GthGdbusObjectManagerClient
            ╰── GthManager

Implemented Interfaces

GthManager implements GInitable, GAsyncInitable and GDBusObjectManager.

Description

This object is also a GDBusObjectManagerClient, and therefore it allows to use the standard ObjectManager interface to list and handle the GthCoolingDevice and GthTermalZone objects.

Functions

gth_manager_new_sync ()

GthManager *
gth_manager_new_sync (GDBusConnection *connection,
                      GDBusObjectManagerClientFlags flags,
                      GCancellable *cancellable,
                      GError **error);

Synchronously creates a GthManager.

The calling thread is blocked until a reply is received.

See gthcli_manager_new() for the asynchronous version of this constructor.

Parameters

connection

A GDBusConnection.

 

flags

Flags from the GDBusObjectManagerClientFlags enumeration.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL

 

Returns

The constructed object manager client or NULL if error is set.

[transfer full][type GthManager]


gth_manager_get_cooling_devices ()

GPtrArray *
gth_manager_get_cooling_devices (GthManager *self);

Get the known cooling devices

Parameters

self

A GthManager

 

Returns

the cooling devices.

[transfer full][nullable][element-type GthCoolingDevice]


gth_manager_get_thermal_zones ()

GPtrArray *
gth_manager_get_thermal_zones (GthManager *self);

Get the known thermal zones

Parameters

self

A GthManager

 

Returns

the thermal zones.

[transfer full][nullable][element-type GthThermalZone]

Types and Values

GTH_TYPE_MANAGER

#define GTH_TYPE_MANAGER (gth_manager_get_type())

GthManager

typedef struct _GthManager GthManager;