File: lang.h

package info (click to toggle)
linuxtv-dvb-apps 1.1.1%2Brev1483-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,556 kB
  • sloc: ansic: 48,832; makefile: 792; perl: 236; sh: 110; xml: 13
file content (28 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (7)
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
#ifndef LANG_H
#define LANG_H

#include "misc.h"
#include "vt.h"

extern int latin1;

#define LATIN1 1
#define LATIN2 2
#define KOI8 3
#define GREEK 4


struct enhance
{
    int next_des; // next expected designation code
    u32 trip[13*16]; // tripplets
};

void lang_init(void);
void conv2latin(u8 *p, int n, int lang);
void conv2koi8(u8 *p);
void conv2greek(u8 *p);
void init_enhance(struct enhance *eh);
void add_enhance(struct enhance *eh, int dcode, u32 *data);
void enhance(struct enhance *eh, struct vt_page *vtp);
#endif