http://marcin-wiacek.fkn.pl/english/zips/mygnokii.tar.gz
[gnokii.git] / include / gsm-encoding.h
1 /*
2
3   $Id$
4
5   G N O K I I
6
7   A Linux/Unix toolset and driver for Nokia mobile phones.
8
9   Copyright (C) 2001 Pawe³ Kot <pkot@linuxnews.pl>
10
11   Released under the terms of the GNU GPL, see file COPYING for more details.
12
13   Include file for encoding functions.
14
15   $Log$
16   Revision 1.1.1.1  2001/11/25 21:59:21  short
17   :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
18
19   Revision 1.2  2001/11/08 16:34:20  pkot
20   Updates to work with new libsms
21
22   Revision 1.1  2001/10/24 22:37:25  pkot
23   Moved encoding functions to a separate file
24
25
26 */
27
28 #ifndef __gsm_encoding_h_
29 #define __gsm_encoding_h_
30
31 int Unpack7BitCharacters(int offset, int in_length, int out_length,
32                            unsigned char *input, unsigned char *output);
33 int Pack7BitCharacters(int offset, unsigned char *input, unsigned char *output);
34
35 void DecodeUnicode (unsigned char* dest, const unsigned char* src, int len);
36 void EncodeUnicode (unsigned char* dest, const unsigned char* src, int len);
37
38 void DecodeAscii (unsigned char* dest, const unsigned char* src, int len);
39 void EncodeAscii (unsigned char* dest, const unsigned char* src, int len);
40
41 #endif