summaryrefslogtreecommitdiff
path: root/lib/util/charset/util_unistr.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-18 13:47:28 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-02-18 18:41:01 +1100
commit2a3a86a86f3d1ab97adda563beda7ee35f6a2414 (patch)
tree38b9f9b9818482cdfe6ecdb9ee797fe2f3531e7d /lib/util/charset/util_unistr.c
parent5155a5f5c130ff5b71ce4e37877378a6967046b4 (diff)
downloadsamba-2a3a86a86f3d1ab97adda563beda7ee35f6a2414.tar.gz
samba-2a3a86a86f3d1ab97adda563beda7ee35f6a2414.tar.bz2
samba-2a3a86a86f3d1ab97adda563beda7ee35f6a2414.zip
lib/util/charcnv Move iconv handle setup in common
We now use the struct smb_iconv_convenience at the core of all our iconv code, and use global_iconv_convenience for the callers that don't specify one. Andrew Bartlett
Diffstat (limited to 'lib/util/charset/util_unistr.c')
-rw-r--r--lib/util/charset/util_unistr.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/util/charset/util_unistr.c b/lib/util/charset/util_unistr.c
index 410547400d..b6bfb29e7d 100644
--- a/lib/util/charset/util_unistr.c
+++ b/lib/util/charset/util_unistr.c
@@ -21,16 +21,6 @@
#include "includes.h"
#include "system/locale.h"
-struct smb_iconv_convenience *global_iconv_convenience = NULL;
-
-static inline struct smb_iconv_convenience *get_iconv_convenience(void)
-{
- if (global_iconv_convenience == NULL)
- global_iconv_convenience = smb_iconv_convenience_reinit(talloc_autofree_context(),
- "ASCII", "UTF-8", true, NULL);
- return global_iconv_convenience;
-}
-
/**
Case insensitive string compararison
**/
@@ -1043,19 +1033,3 @@ _PUBLIC_ bool convert_string_talloc(TALLOC_CTX *ctx,
allow_badcharcnv);
}
-_PUBLIC_ codepoint_t next_codepoint_ext(const char *str, charset_t src_charset,
- size_t *size)
-{
- return next_codepoint_convenience_ext(get_iconv_convenience(), str,
- src_charset, size);
-}
-
-_PUBLIC_ codepoint_t next_codepoint(const char *str, size_t *size)
-{
- return next_codepoint_convenience(get_iconv_convenience(), str, size);
-}
-
-_PUBLIC_ ssize_t push_codepoint(char *str, codepoint_t c)
-{
- return push_codepoint_convenience(get_iconv_convenience(), str, c);
-}