/
codepage.h
40 lines (32 loc) · 1.66 KB
/
codepage.h
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
35
36
37
38
39
40
/* CODEPAGE.H (c) Copyright Jan Jaeger, 1999-2011 */
/* (c) Copyright TurboHercules, SAS 2010-2011 */
/* Code Page conversion */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
// $Id$
#ifndef _HERCULES_CODEPAGE_H
#define _HERCULES_CODEPAGE_H
#include "hercules.h"
#ifndef _CODEPAGE_C_
#ifndef _HUTIL_DLL_
#define COD_DLL_IMPORT DLL_IMPORT
#else /* _HUTIL_DLL_ */
#define COD_DLL_IMPORT extern
#endif /* _HUTIL_DLL_ */
#else /* _LOGGER_C_ */
#define COD_DLL_IMPORT DLL_EXPORT
#endif /* _LOGGER_C_ */
COD_DLL_IMPORT char* query_codepage(void);
COD_DLL_IMPORT void set_codepage(char *name);
COD_DLL_IMPORT int update_codepage(int argc, char *argv[], char *table );
COD_DLL_IMPORT unsigned char host_to_guest (unsigned char byte);
COD_DLL_IMPORT unsigned char guest_to_host (unsigned char byte);
/* helper functions for codepage */
COD_DLL_IMPORT void buf_guest_to_host( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT void str_guest_to_host( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT void buf_host_to_guest( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT void str_host_to_guest( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT void prt_guest_to_host( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
#endif /* _HERCULES_CODEPAGE_H */