modulemd-component-rpm

modulemd-component-rpm

Functions

Types and Values

Description

Functions

modulemd_component_rpm_new ()

ModulemdComponentRpm *
modulemd_component_rpm_new (void);

modulemd_component_rpm_set_arches ()

void
modulemd_component_rpm_set_arches (ModulemdComponentRpm *self,
                                   ModulemdSimpleSet *arches);

Parameters

arches

a ModuleSimpleSet: A set of architectures on which this RPM package should be available. An empty set means the package is available on all supported architectures.

[nullable]

modulemd_component_rpm_get_arches ()

ModulemdSimpleSet *
modulemd_component_rpm_get_arches (ModulemdComponentRpm *self);

Retrieves the set of arches for this component.

Returns

A ModulemdSimpleSet containing the set of supported architectures for this component.

[transfer none]


modulemd_component_rpm_set_cache ()

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

Parameters

cache

A string: The URL of the lookaside cache where this package's sources are stored.

[nullable]

modulemd_component_rpm_get_cache ()

const gchar *
modulemd_component_rpm_get_cache (ModulemdComponentRpm *self);

Retrieves the lookaside cache URL.

Returns

A string containing the URL to the lookaside cache.


modulemd_component_rpm_set_multilib ()

void
modulemd_component_rpm_set_multilib (ModulemdComponentRpm *self,
                                     ModulemdSimpleSet *multilib);

Parameters

multilib

a ModuleSimpleSet: A set of architectures on which this RPM package should be available as multilib. An empty set means the package is not available as multilib on any architecture.

[nullable]

modulemd_component_rpm_get_multilib ()

ModulemdSimpleSet *
modulemd_component_rpm_get_multilib (ModulemdComponentRpm *self);

Retrieves the set of multilib for this component.

Returns

A ModulemdSimpleSet containing the set of supported multilib architectures for this component.

[transfer none]


modulemd_component_rpm_set_ref ()

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

Parameters

ref

A string: The particular repository commit hash, branch or tag name used in this module.

[nullable]

modulemd_component_rpm_get_ref ()

const gchar *
modulemd_component_rpm_get_ref (ModulemdComponentRpm *self);

Retrieves the repository ref.

Returns

A string containing the repository ref.


modulemd_component_rpm_set_repository ()

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

Parameters

repository

A string: The VCS repository with the RPM SPEC file, patches and other package data.

[nullable]

modulemd_component_rpm_get_repository ()

const gchar *
modulemd_component_rpm_get_repository (ModulemdComponentRpm *self);

Retrieves the repository location.

Returns

A string containing the repository location.

Types and Values

MODULEMD_TYPE_COMPONENT_RPM

#define MODULEMD_TYPE_COMPONENT_RPM (modulemd_component_rpm_get_type ())

ModulemdComponentRpm

typedef struct _ModulemdComponentRpm ModulemdComponentRpm;