AsBuilder 3 APPSTREAM Library
AsBuilder

## Functions

GQuark | as_builder_error_quark ()
AsBuilder * | as_builder_new ()
AsBuilder * | as_builder_new_path ()
gboolean | as_builder_initialize ()
gboolean | as_builder_refresh_cache ()
void | as_builder_set_data_source_directories ()

## Types and Values

#define | AS_BUILDER_ERROR
enum | AsNodeError

## Object Hierarchy

        GObject
        ╰── AsBuilder

## Description

## Functions

### as_builder_error_quark ()

    GQuark
    as_builder_error_quark (void);

#### Returns

An error quark.

as_builder_error_quark

### as_builder_new ()

    AsBuilder *
    as_builder_new (void);

Creates a new AsBuilder.

#### Returns

an AsBuilder.

[transfer full]

as_builder_new

### as_builder_new_path ()

    AsBuilder *
    as_builder_new_path (const gchar *dbpath);

Creates a new AsBuilder with custom database path.

path path to the new Xapian database

#### Returns

an AsBuilder.

[transfer full]

as_builder_new_path

### as_builder_initialize ()

    gboolean
    as_builder_initialize (AsBuilder *self);

#### Returns

as_builder_initialize

### as_builder_refresh_cache ()

    gboolean
    as_builder_refresh_cache (AsBuilder *self,
                              gboolean force,
                              GError **error);

Update the AppStream Xapian cache

#### Returns

as_builder_refresh_cache

### as_builder_set_data_source_directories ()

    void
    as_builder_set_data_source_directories
                                   (AsBuilder *self,
                                    gchar **dirs);

Set locations for the database builder to pull it's data from. This is mainly used for testing purposes. Each location should have an "xmls" and/or "yaml" subdirectory with the actual data as (compressed) AppStream XML or DEP-11 YAML in it.

#### Parameters

self | a valid AsBuilder instance |
dirs | a zero-terminated array of data input directories. | [array zero-terminated=1]

as_builder_set_data_source_directories

## Types and Values

### AS_BUILDER_ERROR

    #define AS_BUILDER_ERROR as_builder_error_quark ()

AS_BUILDER_ERROR

### enum AsNodeError

#### Members

AS_BUILDER_ERROR_FAILED |  |
AS_BUILDER_ERROR_PARTIALLY_FAILED |  |

AsNodeError