summaryrefslogtreecommitdiff
path: root/lib/util/charset/charset.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-12 10:36:37 +1000
committerAndrew Tridgell <tridge@samba.org>2011-04-13 14:47:08 +1000
commit748c31dc5de762942770b4cced8c1ea827d8e040 (patch)
tree59c6c46b007abb48c0f90442b091cb2c76782f79 /lib/util/charset/charset.h
parent8db1648f6644acca05ca41fd3803468bba98993d (diff)
downloadsamba-748c31dc5de762942770b4cced8c1ea827d8e040.tar.gz
samba-748c31dc5de762942770b4cced8c1ea827d8e040.tar.bz2
samba-748c31dc5de762942770b4cced8c1ea827d8e040.zip
lib/util/charset Add convert_string_error()
This adds an interface that matches the source3/ convert string code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'lib/util/charset/charset.h')
-rw-r--r--lib/util/charset/charset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h
index 9e2aa8f136..1078035592 100644
--- a/lib/util/charset/charset.h
+++ b/lib/util/charset/charset.h
@@ -174,6 +174,10 @@ bool convert_string(charset_t from, charset_t to,
void const *src, size_t srclen,
void *dest, size_t destlen,
size_t *converted_size);
+bool convert_string_error(charset_t from, charset_t to,
+ void const *src, size_t srclen,
+ void *dest, size_t destlen,
+ size_t *converted_size);
ssize_t iconv_talloc(TALLOC_CTX *mem_ctx,
smb_iconv_t cd,