modulemd-profile

modulemd-profile

Functions

Types and Values

Description

Functions

modulemd_profile_new ()

ModulemdProfile *
modulemd_profile_new (void);

modulemd_profile_set_description ()

void
modulemd_profile_set_description (ModulemdProfile *self,
                                  const gchar *description);

Sets the "description" property.

Parameters

description

the profile description.

[nullable]

modulemd_profile_get_description ()

const gchar *
modulemd_profile_get_description (ModulemdProfile *self);

Retrieves the profile description.

Returns

A string containing the "description" property.


modulemd_profile_set_name ()

void
modulemd_profile_set_name (ModulemdProfile *self,
                           const gchar *name);

Sets the "name" property.

Parameters

name

the profile name.

[nullable]

modulemd_profile_get_name ()

const gchar *
modulemd_profile_get_name (ModulemdProfile *self);

Retrieves the profile name.

Returns

A string containing the "name" property.


modulemd_profile_set_rpms ()

void
modulemd_profile_set_rpms (ModulemdProfile *self,
                           ModulemdSimpleSet *rpms);

Assigns the set of RPMs that will be installed when this profile is activated.

Parameters

rpms

A ModuleSimpleSet: The rpms to be installed by this profile.

[nullable]

modulemd_profile_get_rpms ()

ModulemdSimpleSet *
modulemd_profile_get_rpms (ModulemdProfile *self);

Retrieves the "rpms" for this profile

Returns

a SimpleSet containing the set of RPMs in the "rpms" property.

[transfer none]


modulemd_profile_add_rpm ()

void
modulemd_profile_add_rpm (ModulemdProfile *self,
                          const gchar *rpm);

modulemd_profile_remove_rpm ()

void
modulemd_profile_remove_rpm (ModulemdProfile *self,
                             const gchar *rpm);

Types and Values

MODULEMD_TYPE_PROFILE

#define MODULEMD_TYPE_PROFILE modulemd_profile_get_type ()

ModulemdProfile

typedef struct _ModulemdProfile ModulemdProfile;