summaryrefslogtreecommitdiffstats
path: root/loader/lang.h
blob: 10b3ef4aa73794ca7acf0fe0f33f1c84022541cf (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
#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);
void setLanguage (char * key, int flags);

/* 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_ */