Commit b13dc5a5 authored by Matthias Klumpp's avatar Matthias Klumpp
Browse files

Make AsContext public API

parent 8c939f99
......@@ -26,6 +26,7 @@
extern "C" {
#endif
#include <as-context.h>
#include <as-component.h>
#include <as-enums.h>
#include <as-provided.h>
......
......@@ -26,6 +26,10 @@
G_BEGIN_DECLS
#pragma GCC visibility push(hidden)
const gchar *as_context_get_architecture (AsContext *ctx);
void as_context_set_architecture (AsContext *ctx,
const gchar *value);
gboolean as_context_get_internal_mode (AsContext *ctx);
void as_context_set_internal_mode (AsContext *ctx,
gboolean enabled);
......
......@@ -25,7 +25,12 @@
*
* Contains information about the context of AppStream metadata, from the
* root node of the document.
* This is a private/internal class.
* Instances of #AsContext may be shared between #AsComponent instances.
*
* You usually do not want to use this directly, but use the more convenient
* #AsMetadata instead.
*
* See also: #AsComponent, #AsMetadata
*/
#include "config.h"
......
......@@ -72,10 +72,6 @@ const gchar *as_context_get_media_baseurl (AsContext *ctx);
void as_context_set_media_baseurl (AsContext *ctx,
const gchar *value);
const gchar *as_context_get_architecture (AsContext *ctx);
void as_context_set_architecture (AsContext *ctx,
const gchar *value);
gboolean as_context_get_all_locale_enabled (AsContext *ctx);
const gchar *as_context_get_filename (AsContext *ctx);
......
......@@ -40,9 +40,9 @@
#include "as-utils-private.h"
#include "as-component.h"
#include "as-component-private.h"
#include "as-context-private.h"
#include "as-distro-details.h"
#include "as-desktop-entry.h"
#include "as-context.h"
#include "as-xml.h"
#include "as-yaml.h"
......
......@@ -47,6 +47,7 @@ aslib_pub_headers = [
'appstream.h',
'as-utils.h',
'as-spdx.h',
'as-context.h',
'as-metadata.h',
'as-component.h',
'as-pool.h',
......@@ -77,7 +78,6 @@ aslib_pub_headers = [
aslib_priv_headers = [
'as-utils-private.h',
'as-tag.h',
'as-context.h',
'as-context-private.h',
'as-xml.h',
'as-yaml.h',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment