Modulemd.ServiceLevel

Modulemd.ServiceLevel — Provides lifecycle information for a module stream.

Functions

Types and Values

Description

Functions

modulemd_servicelevel_new ()

ModulemdServiceLevel *
modulemd_servicelevel_new (void);

Returns

A newly-allocated ModulemdServiceLevel. This object must be freed with g_object_unref().

[transfer full]

Since: 1.0


modulemd_servicelevel_set_eol ()

void
modulemd_servicelevel_set_eol (ModulemdServiceLevel *self,
                               const GDate *date);

Sets the end date of the service level.

Parameters

date

The date this service level ends.

[nullable]

Since: 1.0


modulemd_servicelevel_get_eol ()

const GDate *
modulemd_servicelevel_get_eol (ModulemdServiceLevel *self);

modulemd_servicelevel_get_eol has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_eol() instead.

Retrieves the end-of-life date of this service level.

Returns

a GDate representing the end-of-life date of the service level.

Since: 1.0


modulemd_servicelevel_peek_eol ()

const GDate *
modulemd_servicelevel_peek_eol (ModulemdServiceLevel *self);

Retrieves the end-of-life date of this service level.

Returns

a GDate representing the end-of-life date of the service level.

Since: 1.1


modulemd_servicelevel_dup_eol ()

GDate *
modulemd_servicelevel_dup_eol (ModulemdServiceLevel *self);

Retrieves a copy of the end-of-life date of this service level.

Returns

a GDate representing the end-of-life date of the service level.

Since: 1.1


modulemd_servicelevel_set_name ()

void
modulemd_servicelevel_set_name (ModulemdServiceLevel *self,
                                const gchar *name);

Set the name of this service level.

Parameters

name

The name of this servicelevel.

[nullable]

Since: 1.0


modulemd_servicelevel_get_name ()

const gchar *
modulemd_servicelevel_get_name (ModulemdServiceLevel *self);

modulemd_servicelevel_get_name has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_name() instead.

Retrieves the name of this service level

Returns

a string representing the name of the service level or NULL if not set.

Since: 1.0


modulemd_servicelevel_peek_name ()

const gchar *
modulemd_servicelevel_peek_name (ModulemdServiceLevel *self);

Retrieves the name of this service level

Returns

a string representing the name of the service level or NULL if not set.

Since: 1.1


modulemd_servicelevel_dup_name ()

gchar *
modulemd_servicelevel_dup_name (ModulemdServiceLevel *self);

Retrieves a copy of the name of this service level

Returns

a copy of the string representing the name of the service level or NULL if not set.

Since: 1.1


modulemd_servicelevel_copy ()

ModulemdServiceLevel *
modulemd_servicelevel_copy (ModulemdServiceLevel *self);

Create a copy of this ModulemdServiceLevel object.

Returns

a copied ModulemdServiceLevel object.

[transfer full]

Since: 1.1

Types and Values

MODULEMD_TYPE_SERVICELEVEL

#define MODULEMD_TYPE_SERVICELEVEL modulemd_servicelevel_get_type ()

ModulemdServiceLevel

typedef struct _ModulemdServiceLevel ModulemdServiceLevel;