X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=encoding.h;h=f4a2129e09041cfcfbe887a3d7ad156c026899e5;hb=45a9528c2705679e8556c9bbfe9196233ec14d29;hp=287e478e9bd636747debf02f06d736e713227b7a;hpb=845f7ac49d5e63b96aca7a4cd1f60ac5e3230033;p=gedcom-parse.git diff --git a/encoding.h b/encoding.h index 287e478..f4a2129 100644 --- a/encoding.h +++ b/encoding.h @@ -1,5 +1,29 @@ +/* This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + + (C) 2001 by The Genes Development Team + Original author: Peter Verthez (Peter.Verthez@advalvas.be) +*/ + +/* $Id$ */ +/* $Name$ */ + +/* Basic file encoding */ +#ifndef __ENCODING_H +#define __ENCODING_H + +typedef enum _ENC { + ONE_BYTE = 0, + TWO_BYTE_HILO = 1, + TWO_BYTE_LOHI = 2 +} ENCODING; + int open_conv_to_internal(char* fromcode); void close_conv_to_internal(); char* to_internal(char* str, size_t len); void init_encodings(); -char* get_encoding(char* gedcom_name); +void set_encoding_width(ENCODING enc); + +#endif /* __ENCODING_H */