This repository has been archived by the owner on May 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codepage.h
31 lines (26 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
/* CODEPAGE.H (C) Copyright Jan Jaeger, 1999-2012 */
/* (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. */
#ifndef _HERCULES_CODEPAGE_H
#define _HERCULES_CODEPAGE_H
#include "hercules.h"
COD_DLL_IMPORT const char* query_codepage();
COD_DLL_IMPORT bool valid_codepage_name( const char* name );
COD_DLL_IMPORT void set_codepage( const 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);
COD_DLL_IMPORT unsigned char *h2g_tab();
COD_DLL_IMPORT unsigned char *g2h_tab();
/* helper functions for codepage */
COD_DLL_IMPORT BYTE* buf_guest_to_host( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT BYTE* str_guest_to_host( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT BYTE* buf_host_to_guest( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT BYTE* str_host_to_guest( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT BYTE* prt_guest_to_host( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
COD_DLL_IMPORT BYTE* prt_host_to_guest( const BYTE *psinbuf, BYTE *psoutbuf, const u_int ilength );
#endif /* _HERCULES_CODEPAGE_H */