From 9f6e2d64852026d118c717d80236177fd74331eb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 1 Mar 2009 12:59:58 +0100 Subject: Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents. --- lib/util/charset/charset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/util/charset/charset.h') diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index 82484b7805..3acdde30ad 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -61,6 +61,7 @@ typedef struct smb_iconv_s { size_t (*push)(void *cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); void *cd_direct, *cd_pull, *cd_push; + char *from_name, *to_name; } *smb_iconv_t; /* string manipulation flags */ @@ -119,7 +120,7 @@ ssize_t convert_string_talloc(TALLOC_CTX *ctx, void const *src, size_t srclen, void **dest, bool allow_badcharcnv); -ssize_t convert_string(charset_t from, charset_t to, +size_t convert_string(charset_t from, charset_t to, void const *src, size_t srclen, void *dest, size_t destlen, bool allow_badcharcnv); -- cgit