diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-03-25 09:15:06 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-03-25 04:37:06 +0100 |
commit | 64258a300f3a8e1c1e0d8e7edcf71ace5a573d0e (patch) | |
tree | 0362fbd50edd0c35ac91e9bd15b9285894f70c69 /source3/include | |
parent | 2643a7ba6b87d0378323237e143ce128dfc09837 (diff) | |
download | samba-64258a300f3a8e1c1e0d8e7edcf71ace5a573d0e.tar.gz samba-64258a300f3a8e1c1e0d8e7edcf71ace5a573d0e.tar.bz2 samba-64258a300f3a8e1c1e0d8e7edcf71ace5a573d0e.zip |
s3-charcnv Add convert_string_error()
This function returns errors rather than printing them.
Andrew Bartlett
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index e797b14b16..737dbec931 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -416,6 +416,10 @@ void init_iconv(void); size_t convert_string(charset_t from, charset_t to, void const *src, size_t srclen, void *dest, size_t destlen); +size_t convert_string_error(charset_t from, charset_t to, + void const *src, size_t srclen, + void *dest, size_t destlen, + size_t *converted_size); size_t unix_strupper(const char *src, size_t srclen, char *dest, size_t destlen); char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *s); char *strupper_talloc(TALLOC_CTX *ctx, const char *s); |