Top |
const gchar * | as_format_version_to_string () |
AsFormatVersion | as_format_version_from_string () |
AsContext * | as_context_new () |
AsFormatVersion | as_context_get_format_version () |
void | as_context_set_format_version () |
AsFormatStyle | as_context_get_style () |
void | as_context_set_style () |
gint | as_context_get_priority () |
void | as_context_set_priority () |
const gchar * | as_context_get_origin () |
void | as_context_set_origin () |
const gchar * | as_context_get_locale () |
void | as_context_set_locale () |
gboolean | as_context_has_media_baseurl () |
const gchar * | as_context_get_media_baseurl () |
void | as_context_set_media_baseurl () |
gboolean | as_context_get_locale_all_enabled () |
const gchar * | as_context_get_filename () |
void | as_context_set_filename () |
#define | AS_TYPE_CONTEXT |
struct | AsContextClass |
enum | AsFormatVersion |
#define | AS_FORMAT_VERSION_CURRENT |
AsContext |
Contains information about the context of AppStream metadata, from the root node of the document. 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
const gchar *
as_format_version_to_string (AsFormatVersion version
);
Converts the enumerated value to an text representation.
Since: 0.10
AsFormatVersion
as_format_version_from_string (const gchar *version_str
);
Converts the text representation to an enumerated value.
Since: 0.10
void as_context_set_format_version (AsContext *ctx
,AsFormatVersion ver
);
Sets the AppStream format version.
void as_context_set_style (AsContext *ctx
,AsFormatStyle style
);
Sets the AppStream document style.
void as_context_set_priority (AsContext *ctx
,gint priority
);
Sets the data priority.
void as_context_set_origin (AsContext *ctx
,const gchar *value
);
Sets the data origin.
void as_context_set_locale (AsContext *ctx
,const gchar *value
);
Sets the active locale.
void as_context_set_media_baseurl (AsContext *ctx
,const gchar *value
);
Sets the media base URL.