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]

Since: 1.0


modulemd_component_rpm_get_arches ()

ModulemdSimpleSet *
modulemd_component_rpm_get_arches (ModulemdComponentRpm *self);

modulemd_component_rpm_get_arches has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_arches() instead.

Retrieves the set of arches for this component.

Returns

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

[transfer none]

Since: 1.0


modulemd_component_rpm_peek_arches ()

ModulemdSimpleSet *
modulemd_component_rpm_peek_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]

Since: 1.1


modulemd_component_rpm_dup_arches ()

ModulemdSimpleSet *
modulemd_component_rpm_dup_arches (ModulemdComponentRpm *self);

Retrieves a copy of the set of arches for this component.

Returns

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

[transfer full]

Since: 1.1


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]

Since: 1.0


modulemd_component_rpm_get_cache ()

const gchar *
modulemd_component_rpm_get_cache (ModulemdComponentRpm *self);

modulemd_component_rpm_get_cache has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_cache() instead.

Retrieves the lookaside cache URL.

Returns

A string containing the URL to the lookaside cache.


modulemd_component_rpm_peek_cache ()

const gchar *
modulemd_component_rpm_peek_cache (ModulemdComponentRpm *self);

Retrieves the lookaside cache URL.

Returns

A string containing the URL to the lookaside cache.

Since: 1.1


modulemd_component_rpm_dup_cache ()

gchar *
modulemd_component_rpm_dup_cache (ModulemdComponentRpm *self);

Retrieves a copy of the lookaside cache URL.

Returns

A copy of the string containing the URL to the lookaside cache.

Since: 1.1


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]

Since: 1.0


modulemd_component_rpm_get_multilib ()

ModulemdSimpleSet *
modulemd_component_rpm_get_multilib (ModulemdComponentRpm *self);

modulemd_component_rpm_get_multilib has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_multilib() instead.

Retrieves the set of multilib for this component.

Returns

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

[transfer none]

Since: 1.0


modulemd_component_rpm_peek_multilib ()

ModulemdSimpleSet *
modulemd_component_rpm_peek_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]

Since: 1.1


modulemd_component_rpm_dup_multilib ()

ModulemdSimpleSet *
modulemd_component_rpm_dup_multilib (ModulemdComponentRpm *self);

Retrieves a copy of the set of multilib for this component.

Returns

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

[transfer full]

Since: 1.1


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]

Since: 1.0


modulemd_component_rpm_get_ref ()

const gchar *
modulemd_component_rpm_get_ref (ModulemdComponentRpm *self);

modulemd_component_rpm_get_ref has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_ref() instead.

Retrieves the repository ref.

Returns

A string containing the repository ref.


modulemd_component_rpm_peek_ref ()

const gchar *
modulemd_component_rpm_peek_ref (ModulemdComponentRpm *self);

Retrieves the repository ref.

Returns

A string containing the repository ref.

Since: 1.1


modulemd_component_rpm_dup_ref ()

gchar *
modulemd_component_rpm_dup_ref (ModulemdComponentRpm *self);

Retrieves a copy of the repository ref.

Returns

A copy of the string containing the repository ref.

Since: 1.1


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]

Since: 1.0


modulemd_component_rpm_get_repository ()

const gchar *
modulemd_component_rpm_get_repository (ModulemdComponentRpm *self);

modulemd_component_rpm_get_repository has been deprecated since version 1.1 and should not be used in newly-written code.

Use peek_repository() instead.

Retrieves the repository location.

Returns

A string containing the repository location.

Since: 1.0


modulemd_component_rpm_peek_repository ()

const gchar *
modulemd_component_rpm_peek_repository
                               (ModulemdComponentRpm *self);

Retrieves the repository location.

Returns

A string containing the repository location.

Since: 1.1


modulemd_component_rpm_dup_repository ()

gchar *
modulemd_component_rpm_dup_repository (ModulemdComponentRpm *self);

Retrieves a copy of the repository location.

Returns

A copy of the string containing the repository location.

Since: 1.1

Types and Values

MODULEMD_TYPE_COMPONENT_RPM

#define MODULEMD_TYPE_COMPONENT_RPM (modulemd_component_rpm_get_type ())

ModulemdComponentRpm

typedef struct _ModulemdComponentRpm ModulemdComponentRpm;