Files
org-hyperion-cules/codepage.h
Paul Gorlinsky 28a68deb00 Comments to codepage.h
git-svn-id: file:///home/jj/hercules.svn/trunk@7404 956126f8-22a0-4046-8f4a-272fa8102e63
2011-04-07 20:04:10 +00:00

40 lines
1.6 KiB
C

/* CODEPAGE.H (c) Copyright Jan Jaeger, 1999-2010 */
/* 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 */