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

Make AsContext public API

parent 8c939f99
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
extern "C" { extern "C" {
#endif #endif
#include <as-context.h>
#include <as-component.h> #include <as-component.h>
#include <as-enums.h> #include <as-enums.h>
#include <as-provided.h> #include <as-provided.h>
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#pragma GCC visibility push(hidden) #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); gboolean as_context_get_internal_mode (AsContext *ctx);
void as_context_set_internal_mode (AsContext *ctx, void as_context_set_internal_mode (AsContext *ctx,
gboolean enabled); gboolean enabled);
......
...@@ -25,7 +25,12 @@ ...@@ -25,7 +25,12 @@
* *
* Contains information about the context of AppStream metadata, from the * Contains information about the context of AppStream metadata, from the
* root node of the document. * 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" #include "config.h"
......
...@@ -72,10 +72,6 @@ const gchar *as_context_get_media_baseurl (AsContext *ctx); ...@@ -72,10 +72,6 @@ const gchar *as_context_get_media_baseurl (AsContext *ctx);
void as_context_set_media_baseurl (AsContext *ctx, void as_context_set_media_baseurl (AsContext *ctx,
const gchar *value); 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); gboolean as_context_get_all_locale_enabled (AsContext *ctx);
const gchar *as_context_get_filename (AsContext *ctx); const gchar *as_context_get_filename (AsContext *ctx);
......
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
#include "as-utils-private.h" #include "as-utils-private.h"
#include "as-component.h" #include "as-component.h"
#include "as-component-private.h" #include "as-component-private.h"
#include "as-context-private.h"
#include "as-distro-details.h" #include "as-distro-details.h"
#include "as-desktop-entry.h" #include "as-desktop-entry.h"
#include "as-context.h"
#include "as-xml.h" #include "as-xml.h"
#include "as-yaml.h" #include "as-yaml.h"
......
...@@ -47,6 +47,7 @@ aslib_pub_headers = [ ...@@ -47,6 +47,7 @@ aslib_pub_headers = [
'appstream.h', 'appstream.h',
'as-utils.h', 'as-utils.h',
'as-spdx.h', 'as-spdx.h',
'as-context.h',
'as-metadata.h', 'as-metadata.h',
'as-component.h', 'as-component.h',
'as-pool.h', 'as-pool.h',
...@@ -77,7 +78,6 @@ aslib_pub_headers = [ ...@@ -77,7 +78,6 @@ aslib_pub_headers = [
aslib_priv_headers = [ aslib_priv_headers = [
'as-utils-private.h', 'as-utils-private.h',
'as-tag.h', 'as-tag.h',
'as-context.h',
'as-context-private.h', 'as-context-private.h',
'as-xml.h', 'as-xml.h',
'as-yaml.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