libreport
2.6.3
A tool to inform users about various problems on the running system
Main Page
Data Structures
Files
File List
Globals
src
include
client.h
1
/*
2
Copyright (C) 2011 ABRT team.
3
Copyright (C) 2011 RedHat inc.
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
20
#ifndef LIBREPORT_CLIENT_H_
21
#define LIBREPORT_CLIENT_H_
22
23
#define REPORT_PREFIX_ASK_YES_NO "ASK_YES_NO "
24
38
#define REPORT_PREFIX_ASK_YES_NO_YESFOREVER "ASK_YES_NO_YESFOREVER "
39
44
#define REPORT_PREFIX_ASK_YES_NO_SAVE_RESULT "ASK_YES_NO_SAVE_RESULT "
45
#define REPORT_PREFIX_ASK "ASK "
46
#define REPORT_PREFIX_ASK_PASSWORD "ASK_PASSWORD "
47
#define REPORT_PREFIX_ALERT "ALERT "
48
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
53
#define set_echo libreport_set_echo
54
int
set_echo(
int
enable);
55
56
#define ask_yes_no libreport_ask_yes_no
57
int
ask_yes_no(
const
char
*question);
58
82
#define ask_yes_no_yesforever libreport_ask_yes_no_yesforever
83
int
ask_yes_no_yesforever(
const
char
*key,
const
char
*question);
84
89
#define ask_yes_no_save_resutl libreport_ask_yes_no_save_result
90
int
ask_yes_no_save_result(
const
char
*key,
const
char
*question);
91
92
#define ask libreport_ask
93
char
*ask(
const
char
*question);
94
95
#define ask_password libreport_ask_password
96
char
*ask_password(
const
char
*question);
97
98
#define alert libreport_alert
99
void
alert(
const
char
*message);
100
101
#define client_log libreport_client_log
102
void
client_log(
const
char
*message);
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
Generated by
1.8.9.1