File: modulemd-subdocument-info.h

package info (click to toggle)
libmodulemd 2.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,180 kB
  • sloc: ansic: 37,927; python: 3,233; xml: 1,739; sh: 389; makefile: 42
file content (60 lines) | stat: -rw-r--r-- 1,498 bytes parent folder | download | duplicates (4)
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
/*
 * 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 <glib-object.h>

G_BEGIN_DECLS

/**
 * SECTION: modulemd-subdocument-info
 * @title: Modulemd.SubdocumentInfo
 * @stability: stable
 * @short_description: Stores information regarding a YAML subdocument in a stream.
 */

#define MODULEMD_TYPE_SUBDOCUMENT_INFO (modulemd_subdocument_info_get_type ())

G_DECLARE_FINAL_TYPE (ModulemdSubdocumentInfo,
                      modulemd_subdocument_info,
                      MODULEMD,
                      SUBDOCUMENT_INFO,
                      GObject)


/**
 * modulemd_subdocument_info_get_yaml:
 * @self: This #ModulemdSubdocumentInfo object.
 *
 * Returns: (transfer none): The associated YAML subdocument.
 *
 * Since: 2.0
 */
const gchar *
modulemd_subdocument_info_get_yaml (ModulemdSubdocumentInfo *self);


/**
 * modulemd_subdocument_info_get_gerror:
 * @self: This #ModulemdSubdocumentInfo object.
 *
 * Returns: (transfer none): A #GError containing an error code and message
 * about why this subdocument failed parsing.
 *
 * Since: 2.0
 */
const GError *
modulemd_subdocument_info_get_gerror (ModulemdSubdocumentInfo *self);

G_END_DECLS