summaryrefslogtreecommitdiffstats
path: root/gf-error-codes.h.template
blob: 5ca64fd90fc8d85d9f2943dcd5a699a301519b33 (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
/***************************************************************/
/**                                                           **/
/**                   DO NOT EDIT THIS FILE                   **/
/**           THIS IS AUTO-GENERATED FROM LOG BOOK            **/
/**         YOUR CHANGES WILL BE LOST IN NEXT BUILD           **/
/**                                                           **/
/***************************************************************/

#ifndef _GF_ERROR_CODES_H
#define _GF_ERROR_CODES_H

#ifdef HAVE_LIBINTL_H
#include <libintl.h>

#define _(STRING)    gettext(STRING)
#endif

/** START: ERROR CODE DEFINITIONS **/
$DEFINES
/** END: ERROR CODE DEFINITIONS **/


/** START: FUNCTION RETURNS MESSAGE OF GIVEN ERROR CODE **/
const char *
_gf_get_message (int code) {
        switch (code) {
$CASES
        default: return NULL;
        }
}
/** END: FUNCTION RETURNS MESSAGE OF GIVEN ERROR CODE **/


#endif