Modulemd.ComponentRpm

Modulemd.ComponentRpm — A rpm component that goes into a module stream.

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Description

Functions

modulemd_component_rpm_new ()

ModulemdComponentRpm *
modulemd_component_rpm_new (const gchar *key);

Parameters

key

The key of this module component. Used when looking up components from a ModulemdModuleStream.

[not nullable]

Returns

A newly-allocated ModulemdComponentRpm object.

[transfer full]

Since: 2.0


modulemd_component_rpm_add_restricted_arch ()

void
modulemd_component_rpm_add_restricted_arch
                               (ModulemdComponentRpm *self,
                                const gchar *arch);

Restrict the list of architectures on which this RPM will be available. It may be called any number of times to indicate support on additional architectures. Use reset_arches() to return to "all architectures".

Parameters

self

This ModulemdComponentRpm object.

 

arch

An architecture on which this package should be available.

 

Since: 2.0


modulemd_component_rpm_reset_arches ()

void
modulemd_component_rpm_reset_arches (ModulemdComponentRpm *self);

Indicate that this RPM component is available on all arches.

Parameters

self

This ModulemdComponentRpm object.

 

Since: 2.0


modulemd_component_rpm_get_arches_as_strv ()

GStrv
modulemd_component_rpm_get_arches_as_strv
                               (ModulemdComponentRpm *self);

[rename-to modulemd_component_rpm_get_arches]

Parameters

self

This ModulemdComponentRpm object.

 

Returns

A list of architectures on which this RPM should be available.

[transfer full]

Since: 2.0


modulemd_component_rpm_add_multilib_arch ()

void
modulemd_component_rpm_add_multilib_arch
                               (ModulemdComponentRpm *self,
                                const gchar *arch);

Add an architectures on which this RPM will be multilib. It may be called any number of times. Use reset_multilib_arches() to return to "no architectures".

Parameters

self

This ModulemdComponentRpm object.

 

arch

An architecture on which this package should be multilib.

 

Since: 2.0


modulemd_component_rpm_reset_multilib_arches ()

void
modulemd_component_rpm_reset_multilib_arches
                               (ModulemdComponentRpm *self);

Indicate that this RPM component is multilib on no architectures.

Parameters

self

This ModulemdComponentRpm object.

 

Since: 2.0


modulemd_component_rpm_get_multilib_arches_as_strv ()

GStrv
modulemd_component_rpm_get_multilib_arches_as_strv
                               (ModulemdComponentRpm *self);

[rename-to modulemd_component_rpm_get_multilib_arches]

Parameters

self

This ModulemdComponentRpm object.

 

Returns

A list of architectures on which multilib should be available.

[transfer full]

Since: 2.0


modulemd_component_rpm_set_cache ()

void
modulemd_component_rpm_set_cache (ModulemdComponentRpm *self,
                                  const gchar *cache);

Parameters

self

This ModulemdComponentRpm object.

 

cache

The lookaside cache URL.

 

Since: 2.0


modulemd_component_rpm_get_cache ()

const gchar *
modulemd_component_rpm_get_cache (ModulemdComponentRpm *self);

Parameters

self

This ModulemdComponentRpm object.

 

Returns

The lookaside cache URL.

[transfer none]

Since: 2.0


modulemd_component_rpm_set_ref ()

void
modulemd_component_rpm_set_ref (ModulemdComponentRpm *self,
                                const gchar *ref);

Parameters

self

This ModulemdComponentRpm object.

 

ref

The commit ID in the SCM repository.

 

Since: 2.0


modulemd_component_rpm_get_ref ()

const gchar *
modulemd_component_rpm_get_ref (ModulemdComponentRpm *self);

Parameters

self

This ModulemdComponentRpm object

 

Returns

The commit ID in the SCM repository.

[transfer none]

Since: 2.0


modulemd_component_rpm_set_repository ()

void
modulemd_component_rpm_set_repository (ModulemdComponentRpm *self,
                                       const gchar *repository);

Parameters

self

This ModulemdComponentRpm object

 

repository

The URI of the SCM repository.

 

Since: 2.0


modulemd_component_rpm_get_repository ()

const gchar *
modulemd_component_rpm_get_repository (ModulemdComponentRpm *self);

Parameters

self

This ModulemdComponentRpm object

 

Returns

The URI of the SCM repository.

[transfer none]

Since: 2.0

Types and Values

MODULEMD_TYPE_COMPONENT_RPM

#define MODULEMD_TYPE_COMPONENT_RPM (modulemd_component_rpm_get_type ())

ModulemdComponentRpm

typedef struct _ModulemdComponentRpm ModulemdComponentRpm;