abrt  2.10.9
A tool to inform users about various problems on the running system
internal_libabrt.h
1 /*
2  Copyright (C) 2014 ABRT team
3  Copyright (C) 2014 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 #include "libabrt.h"
21 
22 #ifdef HAVE_CONFIG_H
23 # include "config.h"
24 #endif
25 
26 #undef NORETURN
27 #define NORETURN __attribute__ ((noreturn))
28 
29 /* Must be after #include "config.h" */
30 #if ENABLE_NLS
31 # include <libintl.h>
32 # define _(S) dgettext(PACKAGE, S)
33 #else
34 # define _(S) (S)
35 #endif
36 
37 extern int g_libabrt_inited;
38 void libabrt_init(void);
39 
40 #define INITIALIZE_LIBABRT() \
41  do \
42  { \
43  if (!g_libabrt_inited) \
44  { \
45  g_libabrt_inited = 1; \
46  libabrt_init(); \
47  } \
48  } \
49  while (0)
50