Modulemd.Component

Modulemd.Component — Pure virtual parent class for components that go into a module stream. See ModulemdComponentRPM and ModulemdComponentModule for specific types.

Functions

Types and Values

Description

Functions

modulemd_component_new ()

ModulemdComponent *
modulemd_component_new (void);

Allocates a new ModulemdComponent

Returns

a new ModulemdComponent

Since: 1.0


modulemd_component_set_buildorder ()

void
modulemd_component_set_buildorder (ModulemdComponent *self,
                                   gint64 buildorder);

Sets the 'buildorder' property.

Parameters

buildorder

The order to build this component

 

Since: 1.0


modulemd_component_get_buildorder ()

gint64
modulemd_component_get_buildorder (ModulemdComponent *self);

Returns the 'buildorder' property

Since: 1.0


modulemd_component_peek_buildorder ()

gint64
modulemd_component_peek_buildorder (ModulemdComponent *self);

Returns the 'buildorder' property

Since: 1.1


modulemd_component_set_name ()

void
modulemd_component_set_name (ModulemdComponent *self,
                             const gchar *name);

Sets the 'name' property.

Parameters

name

The name of the component

 

Since: 1.0


modulemd_component_get_name ()

const gchar *
modulemd_component_get_name (ModulemdComponent *self);

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

Use peek_name() instead.

Returns the 'name' property;

Since: 1.0


modulemd_component_peek_name ()

const gchar *
modulemd_component_peek_name (ModulemdComponent *self);

Returns the 'name' property;

Since: 1.1


modulemd_component_dup_name ()

gchar *
modulemd_component_dup_name (ModulemdComponent *self);

Returns a copy of the 'name' property;

Since: 1.1


modulemd_component_set_rationale ()

void
modulemd_component_set_rationale (ModulemdComponent *self,
                                  const gchar *rationale);

Sets the 'rationale' property.

Parameters

rationale

The rationale for including this component

 

Since: 1.0


modulemd_component_get_rationale ()

const gchar *
modulemd_component_get_rationale (ModulemdComponent *self);

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

Use peek_rationale() instead.

Returns the 'rationale' property;

Since: 1.0


modulemd_component_peek_rationale ()

const gchar *
modulemd_component_peek_rationale (ModulemdComponent *self);

Returns the 'rationale' property;

Since: 1.1


modulemd_component_dup_rationale ()

gchar *
modulemd_component_dup_rationale (ModulemdComponent *self);

Returns a copy of the 'rationale' property;

Since: 1.1


modulemd_component_copy ()

ModulemdComponent *
modulemd_component_copy (ModulemdComponent *self);

Returns a complete copy of this Component.

Returns

A copy of this Component.

[transfer full]

Since: 1.1

Types and Values

MODULEMD_TYPE_COMPONENT

#define MODULEMD_TYPE_COMPONENT modulemd_component_get_type ()

struct ModulemdComponentClass

struct ModulemdComponentClass {
  GObjectClass parent_instance;

  /* Virtual Public Members */
  void (*set_buildorder) (ModulemdComponent *self, gint64 buildorder);
  gint64 (*peek_buildorder) (ModulemdComponent *self);

  void (*set_name) (ModulemdComponent *self, const gchar *name);
  const gchar *(*peek_name) (ModulemdComponent *self);

  void (*set_rationale) (ModulemdComponent *self, const gchar *rationale);
  const gchar *(*peek_rationale) (ModulemdComponent *self);

  gchar *(*dup_name) (ModulemdComponent *self);
  gchar *(*dup_rationale) (ModulemdComponent *self);

  /* Pure Virtual Public Members */
  ModulemdComponent *(*copy) (ModulemdComponent *self);

  /* Padding to allow adding up to 11 new virtual functions without
   * breaking ABI. */
  gpointer padding[9];
};

ModulemdComponent

typedef struct _ModulemdComponent ModulemdComponent;