Modulemd.Buildopts

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

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Description

Functions

modulemd_buildopts_new ()

ModulemdBuildopts *
modulemd_buildopts_new (void);

Returns

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

[transfer full]

Since: 2.0


modulemd_buildopts_equals ()

gboolean
modulemd_buildopts_equals (ModulemdBuildopts *self_1,
                           ModulemdBuildopts *self_2);

Check for equality for 2 ModulemdBuildopts objects.

Parameters

self_1

A ModulemdBuildopts

 

self_2

A ModulemdBuildopts

 

Returns

TRUE if both objects are equal, FALSE otherwise.

Since: 2.2


modulemd_buildopts_copy ()

ModulemdBuildopts *
modulemd_buildopts_copy (ModulemdBuildopts *self);

Create a copy of this ModulemdBuildopts object.

Parameters

self

This ModulemdBuildopts

 

Returns

a copied ModulemdBuildopts object.

[transfer full]

Since: 2.0


modulemd_buildopts_set_rpm_macros ()

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

Parameters

self

This ModulemdBuildopts

 

rpm_macros

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

 

Since: 2.0


modulemd_buildopts_get_rpm_macros ()

const gchar *
modulemd_buildopts_get_rpm_macros (ModulemdBuildopts *self);

Parameters

self

This ModulemdBuildopts

 

Returns

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

[transfer none]

Since: 2.0


modulemd_buildopts_add_rpm_to_whitelist ()

void
modulemd_buildopts_add_rpm_to_whitelist
                               (ModulemdBuildopts *self,
                                const gchar *rpm);

Parameters

self

This ModulemdBuildopts

 

rpm

An RPM name to add to the whitelist.

 

Since: 2.0


modulemd_buildopts_remove_rpm_from_whitelist ()

void
modulemd_buildopts_remove_rpm_from_whitelist
                               (ModulemdBuildopts *self,
                                const gchar *rpm);

Parameters

self

This ModulemdBuildopts

 

rpm

An RPM name to remove from the whitelist.

 

Since: 2.0


modulemd_buildopts_get_rpm_whitelist_as_strv ()

gchar **
modulemd_buildopts_get_rpm_whitelist_as_strv
                               (ModulemdBuildopts *self);

[rename-to modulemd_buildopts_get_rpm_whitelist]

Parameters

self

This ModulemdBuildopts

 

Returns

An ordered list of all RPMs in the whitelist.

[transfer full]

Since: 2.0

Types and Values

MODULEMD_TYPE_BUILDOPTS

#define MODULEMD_TYPE_BUILDOPTS (modulemd_buildopts_get_type ())

ModulemdBuildopts

typedef struct _ModulemdBuildopts ModulemdBuildopts;