1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
/*
* This file is part of libmodulemd
* Copyright (C) 2018 Red Hat, Inc.
*
* Fedora-License-Identifier: MIT
* SPDX-2.0-License-Identifier: MIT
* SPDX-3.0-License-Identifier: MIT
*
* This program is free software.
* For more information on the license, see COPYING.
* For more information on free software, see <https://www.gnu.org/philosophy/free-sw.en.html>.
*/
#pragma once
#include "modulemd-component.h"
#include <glib-object.h>
G_BEGIN_DECLS
/**
* SECTION: modulemd-component-module
* @title: Modulemd.ComponentModule
* @stability: stable
* @short_description: A module component that goes into a module stream.
*/
#define MODULEMD_TYPE_COMPONENT_MODULE (modulemd_component_module_get_type ())
G_DECLARE_FINAL_TYPE (ModulemdComponentModule,
modulemd_component_module,
MODULEMD,
COMPONENT_MODULE,
ModulemdComponent)
/**
* modulemd_component_module_new:
* @key: (not nullable): The key of this module component. Used when looking up
* components from a #ModulemdModuleStream.
*
* Returns: (transfer full): A newly-allocated #ModulemdComponentModule object.
*
* Since: 2.0
*/
ModulemdComponentModule *
modulemd_component_module_new (const gchar *key);
/**
* modulemd_component_module_set_ref:
* @self: This #ModulemdComponentModule object.
* @ref: (in) (nullable): The commit ID in the SCM repository.
*
* Since: 2.0
*/
void
modulemd_component_module_set_ref (ModulemdComponentModule *self,
const gchar *ref);
/**
* modulemd_component_module_get_ref:
* @self: This #ModulemdComponentModule object.
*
* Returns: (transfer none): The commit ID in the SCM repository.
*
* Since: 2.0
*/
const gchar *
modulemd_component_module_get_ref (ModulemdComponentModule *self);
/**
* modulemd_component_module_set_repository:
* @self: This #ModulemdComponentModule object.
* @repository: (in) (nullable): The URI of the SCM repository.
*
* Since: 2.0
*/
void
modulemd_component_module_set_repository (ModulemdComponentModule *self,
const gchar *repository);
/**
* modulemd_component_module_get_repository:
* @self: This #ModulemdComponentModule object.
*
* Returns: (transfer none): The URI of the SCM repository.
*
* Since: 2.0
*/
const gchar *
modulemd_component_module_get_repository (ModulemdComponentModule *self);
G_END_DECLS
|