3
* oFono - Open Source Telephony
5
* Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
char *convert_gsm_to_utf8(const unsigned char *text, long len, long *items_read,
23
long *items_written, unsigned char terminator);
24
unsigned char *convert_utf8_to_gsm(const char *text, long len, long *items_read,
25
long *items_written, unsigned char terminator);
27
unsigned char *decode_hex_own_buf(const char *in, long len, long *items_written,
28
unsigned char terminator,
31
unsigned char *decode_hex(const char *in, long len, long *items_written,
32
unsigned char terminator);
34
char *encode_hex_own_buf(const unsigned char *in, long len,
35
unsigned char terminator, char *buf);
37
char *encode_hex(const unsigned char *in, long len,
38
unsigned char terminator);
40
unsigned char *unpack_7bit_own_buf(const unsigned char *in, long len,
41
int byte_offset, gboolean ussd,
42
long max_to_unpack, long *items_written,
43
unsigned char terminator,
46
unsigned char *unpack_7bit(const unsigned char *in, long len, int byte_offset,
47
gboolean ussd, long max_to_unpack,
48
long *items_written, unsigned char terminator);
50
unsigned char *pack_7bit_own_buf(const unsigned char *in, long len,
51
int byte_offset, gboolean ussd,
53
unsigned char terminator,
56
unsigned char *pack_7bit(const unsigned char *in, long len, int byte_offset,
58
long *items_written, unsigned char terminator);
60
char *sim_string_to_utf8(const unsigned char *buffer, int length);