view src/ljlocale.h @ 2:80a2761bd3a4

change DS keys (add alt. rotate)
author paulo@localhost
date Mon, 23 Mar 2009 01:19:12 -0700
parents
children
line source
1 #ifndef LJLOCALE_H
2 #define LJLOCALE_H
3 #include <stdint.h>
5 /*
6 A FourCC, or four-character code, is a short string that fits in a
7 32-bit word.
8 */
9 typedef union FourCC {
10 char c[4];
11 uint32_t i;
12 } FourCC;
14 /* When abusing union, test that the types that the compiler uses are
15 the same types the developer's compiler uses. */
16 extern char sizeof_uint32_t_equals_4[(sizeof(uint32_t) == 4) ? 1 : -1];
18 typedef struct FourCCLocaleEntry {
19 FourCC code;
20 const char *name;
21 const char *desc;
22 } FourCCLocaleEntry;
24 void ljSetLocale(const FourCCLocaleEntry *locale);
26 #define _4CC(i) (ljGetFourCCName((FourCC){i}))
27 const char *ljGetFourCCName(FourCC i);
29 #define _4CCDESC(i) (ljGetFourCCDesc((FourCC){i}))
30 const char *ljGetFourCCDesc(FourCC i);
32 extern const FourCCLocaleEntry englishLocale[];
33 #endif