summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-builder.h
blob: 3fbac2831e4a2bcfbd8c7d5c5936e03f1edf8e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 *
 * Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
 *
 * SPDX-License-Identifier: LGPL-2.1+
 */

#pragma once

#if !defined (__APPSTREAM_GLIB_H_INSIDE__) && !defined (AS_COMPILATION)
#error "Only <appstream-glib.h> can be included directly."
#endif

#include <glib.h>
#include <gio/gio.h>

#include "as-app.h"

G_BEGIN_DECLS

/**
 * AsAppBuilderFlags:
 * @AS_APP_BUILDER_FLAG_NONE:			No special actions to use
 * @AS_APP_BUILDER_FLAG_USE_FALLBACKS:		Fall back to guesses where required
 *
 * The flags to use when building applications.
 **/
typedef enum {
	AS_APP_BUILDER_FLAG_NONE,
	AS_APP_BUILDER_FLAG_USE_FALLBACKS	= 1,	/* Since: 0.5.8 */
	/*< private >*/
	AS_APP_BUILDER_FLAG_LAST,
} AsAppBuilderFlags;

gboolean	 as_app_builder_search_translations	(AsApp		*app,
							 const gchar	*prefix,
							 guint		 min_percentage,
							 AsAppBuilderFlags flags,
							 GCancellable	*cancellable,
							 GError		**error);
gboolean	 as_app_builder_search_kudos		(AsApp		*app,
							 const gchar	*prefix,
							 AsAppBuilderFlags flags,
							 GError		**error);
gboolean	 as_app_builder_search_provides		(AsApp		*app,
							 const gchar	*prefix,
							 AsAppBuilderFlags flags,
							 GError		**error);

G_END_DECLS