gs-appstream: GNOME Software Reference Manual

## gs-appstream gs-appstream |

## Functions

GsApp * | gs_appstream_create_app ()
gboolean | gs_appstream_refine_app ()
gboolean | gs_appstream_search ()
gboolean | gs_appstream_search_developer_apps ()
gboolean | gs_appstream_refine_category_sizes ()
gboolean | gs_appstream_add_category_apps ()
gboolean | gs_appstream_add_installed ()
gboolean | gs_appstream_add_popular ()
gboolean | gs_appstream_add_featured ()
gboolean | gs_appstream_add_deployment_featured ()
gboolean | gs_appstream_add_alternates ()
gboolean | gs_appstream_add_recent ()
gboolean | gs_appstream_url_to_app ()
gboolean | gs_appstream_load_desktop_files ()
GPtrArray * | gs_appstream_get_appstream_data_dirs ()
void | gs_appstream_add_current_locales ()
void | gs_appstream_add_data_merge_fixup ()
void | gs_appstream_component_add_extra_info ()
void | gs_appstream_component_add_keyword ()
void | gs_appstream_component_add_category ()
void | gs_appstream_component_add_icon ()
void | gs_appstream_component_add_provide ()
void | gs_appstream_component_fix_url ()

## Description

## Functions

### gs_appstream_create_app ()

    GsApp *
    gs_appstream_create_app (GsPlugin *plugin,
                             XbSilo *silo,
                             XbNode *component,
                             const gchar *appstream_source_file,
                             AsComponentScope default_scope,
                             GError **error);

### gs_appstream_refine_app ()

    gboolean
    gs_appstream_refine_app (GsPlugin *plugin,
                             GsApp *app,
                             XbSilo *silo,
                             XbNode *component,
                             GsPluginRefineRequireFlags require_flags,
                             GHashTable *installed_by_desktopid,
                             const gchar *appstream_source_file,
                             AsComponentScope default_scope,
                             GError **error);

### gs_appstream_search ()

    gboolean
    gs_appstream_search (GsPlugin *plugin,
                         XbSilo *silo,
                         const gchar * const *values,
                         GsAppList *list,
                         GCancellable *cancellable,
                         GError **error);

### gs_appstream_search_developer_apps ()

    gboolean
    gs_appstream_search_developer_apps (GsPlugin *plugin,
                                        XbSilo *silo,
                                        const gchar * const *values,
                                        GsAppList *list,
                                        GCancellable *cancellable,
                                        GError **error);

### gs_appstream_refine_category_sizes ()

    gboolean
    gs_appstream_refine_category_sizes (XbSilo *silo,
                                        GPtrArray *list,
                                        GCancellable *cancellable,
                                        GError **error);

### gs_appstream_add_category_apps ()

    gboolean
    gs_appstream_add_category_apps (GsPlugin *plugin,
                                    XbSilo *silo,
                                    GsCategory *category,
                                    GsAppList *list,
                                    GCancellable *cancellable,
                                    GError **error);

### gs_appstream_add_installed ()

    gboolean
    gs_appstream_add_installed (GsPlugin *plugin,
                                XbSilo *silo,
                                GsAppList *list,
                                GCancellable *cancellable,
                                GError **error);

### gs_appstream_add_popular ()

    gboolean
    gs_appstream_add_popular (XbSilo *silo,
                              GsAppList *list,
                              GCancellable *cancellable,
                              GError **error);

### gs_appstream_add_featured ()

    gboolean
    gs_appstream_add_featured (XbSilo *silo,
                               GsAppList *list,
                               GCancellable *cancellable,
                               GError **error);

### gs_appstream_add_deployment_featured ()

    gboolean
    gs_appstream_add_deployment_featured (XbSilo *silo,
                                          const gchar * const *deployments,
                                          GsAppList *list,
                                          GCancellable *cancellable,
                                          GError **error);

### gs_appstream_add_alternates ()

    gboolean
    gs_appstream_add_alternates (XbSilo *silo,
                                 GsApp *app,
                                 GsAppList *list,
                                 GCancellable *cancellable,
                                 GError **error);

### gs_appstream_add_recent ()

    gboolean
    gs_appstream_add_recent (GsPlugin *plugin,
                             XbSilo *silo,
                             GsAppList *list,
                             guint64 age,
                             GCancellable *cancellable,
                             GError **error);

### gs_appstream_url_to_app ()

    gboolean
    gs_appstream_url_to_app (GsPlugin *plugin,
                             XbSilo *silo,
                             GsAppList *list,
                             const gchar *url,
                             GCancellable *cancellable,
                             GError **error);

### gs_appstream_load_desktop_files ()

    gboolean
    gs_appstream_load_desktop_files (XbBuilder *builder,
                                     const gchar *path,
                                     gboolean *out_any_loaded,
                                     GFileMonitor **out_file_monitor,
                                     GCancellable *cancellable,
                                     GError **error);

### gs_appstream_get_appstream_data_dirs ()

    GPtrArray *
    gs_appstream_get_appstream_data_dirs (void);

### gs_appstream_add_current_locales ()

    void
    gs_appstream_add_current_locales (XbBuilder *builder);

### gs_appstream_add_data_merge_fixup ()

    void
    gs_appstream_add_data_merge_fixup (XbBuilder *builder,
                                       GPtrArray *appstream_paths,
                                       GPtrArray *desktop_paths,
                                       GCancellable *cancellable);

### gs_appstream_component_add_extra_info ()

    void
    gs_appstream_component_add_extra_info (XbBuilderNode *component);

### gs_appstream_component_add_keyword ()

    void
    gs_appstream_component_add_keyword (XbBuilderNode *component,
                                        const gchar *str);

### gs_appstream_component_add_category ()

    void
    gs_appstream_component_add_category (XbBuilderNode *component,
                                         const gchar *str);

### gs_appstream_component_add_icon ()

    void
    gs_appstream_component_add_icon (XbBuilderNode *component,
                                     const gchar *str);

### gs_appstream_component_add_provide ()

    void
    gs_appstream_component_add_provide (XbBuilderNode *component,
                                        const gchar *str);

### gs_appstream_component_fix_url ()

    void
    gs_appstream_component_fix_url (XbBuilderNode *component,
                                    const gchar *baseurl);