File: asc-globals.h

package info (click to toggle)
appstream 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,448 kB
  • sloc: ansic: 51,878; xml: 10,459; cpp: 4,721; python: 538; sh: 264; makefile: 24
file content (69 lines) | stat: -rw-r--r-- 2,282 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 *
 * Copyright (C) 2016-2024 Matthias Klumpp <matthias@tenstral.net>
 *
 * Licensed under the GNU Lesser General Public License Version 2.1
 *
 * This library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the license, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 */

#if !defined(__APPSTREAM_COMPOSE_H) && !defined(ASC_COMPILATION)
#error "Only <appstream-compose.h> can be included directly."
#endif
#pragma once

#include <glib-object.h>
#include <appstream.h>

G_BEGIN_DECLS

/**
 * AscComposeError:
 * @ASC_COMPOSE_ERROR_FAILED:	Generic failure.
 *
 * A metadata composition error.
 **/
typedef enum {
	ASC_COMPOSE_ERROR_FAILED,
	/*< private >*/
	ASC_COMPOSE_ERROR_LAST
} AscComposeError;

#define ASC_COMPOSE_ERROR asc_compose_error_quark ()
GQuark		asc_compose_error_quark (void);

void		asc_globals_clear (void);

const gchar    *asc_globals_get_tmp_dir (void);
const gchar    *asc_globals_get_tmp_dir_create (void);
void		asc_globals_set_tmp_dir (const gchar *path);

gboolean	asc_globals_get_use_optipng (void);
void		asc_globals_set_use_optipng (gboolean enabled);

const gchar    *asc_globals_get_optipng_binary (void);
void		asc_globals_set_optipng_binary (const gchar *path);

const gchar    *asc_globals_get_ffprobe_binary (void);
void		asc_globals_set_ffprobe_binary (const gchar *path);

gboolean	asc_globals_add_hint_tag (const gchar	 *tag,
					  AsIssueSeverity severity,
					  const gchar	 *explanation,
					  gboolean	  overrideExisting);
gchar	      **asc_globals_get_hint_tags (void);
AsIssueSeverity asc_globals_hint_tag_severity (const gchar *tag);
const gchar    *asc_globals_hint_tag_explanation (const gchar *tag);

G_END_DECLS