summaryrefslogtreecommitdiffstats
path: root/loader/lang.h
blob: ce5c6fd0d71ec70a59bc58331ca4010905f03e29 (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
#ifndef _LANG_H_
#define _LANG_H_

#define _(x) translateString (x)
#define N_(foo) (foo)

int chooseLanguage(char ** lang, int flags);
int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags);
char * translateString(char * str);

/* define ask johnsonm@redhat.com where this came from */
#define KMAP_MAGIC 0x8B39C07F
#define KMAP_NAMELEN 40		/* including '\0' */

struct kmapHeader {
    int magic;
    int numEntries;
};

struct kmapInfo {
    int size;
    char name[KMAP_NAMELEN];
};


#endif /* _LANG_H_ */