Modulemd.Buildopts

Modulemd.Buildopts — Provides hints to the build-system on how to build this module.

Functions

Types and Values

Description

Functions

modulemd_buildopts_new ()

ModulemdBuildopts *
modulemd_buildopts_new (void);

Returns

a newly-allocated ModulemdBuildopts. This object must be freed with g_object_unref().

[transfer full]

Since: 1.5


modulemd_buildopts_set_rpm_macros ()

void
modulemd_buildopts_set_rpm_macros (ModulemdBuildopts *self,
                                   const gchar *macros);

Assigns RPM macros for the build-system.

Parameters

macros

A string containing RPM build macros in the form that they would appear in an RPM macros file on-disk.

[nullable]

Since: 1.5


modulemd_buildopts_get_rpm_macros ()

gchar *
modulemd_buildopts_get_rpm_macros (ModulemdBuildopts *self);

Retrieves a copy of the string containing RPM build macros in the form that they would appear in an RPM macros file on-disk.

Returns

a copy of the string containing RPM build macros in the form that they would appear in an RPM macros file on-disk. The caller must free the returned string with g_free() once finished with it. This function may return NULL if no RPM macros have been set.

Since: 1.5


modulemd_buildopts_set_rpm_whitelist ()

void
modulemd_buildopts_set_rpm_whitelist (ModulemdBuildopts *self,
                                      GStrv whitelist);

This will make a copy of all of the unique items in whitelist .

Parameters

whitelist

The set of RPM names for the whitelist.

[array zero-terminated=1][transfer none]

Since: 1.5


modulemd_buildopts_set_rpm_whitelist_simpleset ()

void
modulemd_buildopts_set_rpm_whitelist_simpleset
                               (ModulemdBuildopts *self,
                                ModulemdSimpleSet *whitelist);

This will make a copy of all of the unique items in whitelist .

Parameters

whitelist

The ModulemdSimpleSet set of RPM names for the whitelist.

[transfer none]

Since: 1.5


modulemd_buildopts_get_rpm_whitelist ()

GStrv
modulemd_buildopts_get_rpm_whitelist (ModulemdBuildopts *self);

Returns a copy of the whitelist.

Returns

The set of RPM names for the whitelist. May return NULL if no whitelist is stored.

[array zero-terminated=1][transfer full]

Since: 1.5


modulemd_buildopts_get_rpm_whitelist_simpleset ()

ModulemdSimpleSet *
modulemd_buildopts_get_rpm_whitelist_simpleset
                               (ModulemdBuildopts *self);

Returns a copy of the whitelist as a ModulemdSimpleset

Returns

The ModulemdSimpleSet of RPM names for the whitelist. May return NULL if no whitelist is stored.

[transfer full]

Since: 1.5


modulemd_buildopts_copy ()

ModulemdBuildopts *
modulemd_buildopts_copy (ModulemdBuildopts *self);

Make a deep copy of this ModulemdBuildopts object.

Returns

A deep copy of this ModulemdBuildopts object. This value must be freed with g_object_unref().

[transfer full]

Since: 1.5

Types and Values

MODULEMD_TYPE_BUILDOPTS

#define MODULEMD_TYPE_BUILDOPTS (modulemd_buildopts_get_type ())

ModulemdBuildopts

typedef struct _ModulemdBuildopts ModulemdBuildopts;