From 8177fc778b02d9f61ef482fc60d32f353be77ba4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 21 Dec 1999 23:14:01 +0000 Subject: Added new unicode functions - not used yet, but are the basis for the internal unicode conversion of Samba. Jeremy. (This used to be commit 302412df64aa4b6572b13ef61dfd68c3f8ebbb8b) --- source3/include/proto.h | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 401a619110..6171eb5a46 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -423,6 +423,9 @@ void default_unicode_map(smb_ucs2_t **pp_cp_to_ucs2, uint16 **pp_ucs2_to_cp); BOOL load_unicode_map(const char *codepage, smb_ucs2_t **pp_cp_to_ucs2, uint16 **pp_ucs2_to_cp); BOOL load_dos_unicode_map(int codepage); BOOL load_unix_unicode_map(const char *unix_char_set); +char *unicode_to_unix(char *dst, const smb_ucs2_t *src, size_t dst_len); +char *unicode_to_dos(char *dst, const smb_ucs2_t *src, size_t dst_len); +size_t wstrlen(const smb_ucs2_t *src); /*The following definitions come from libsmb/clientgen.c */ @@ -632,23 +635,6 @@ BOOL downgrade_share_oplock(files_struct *fsp); BOOL modify_share_mode(files_struct *fsp, int new_mode, uint16 new_oplock); int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf); int share_mode_forall(void (*fn)(share_mode_entry *, char *)); -void share_status(FILE *f); - -/*The following definitions come from locking/locking_shm.c */ - -struct share_ops *locking_shm_init(int ronly); - -/*The following definitions come from locking/locking_slow.c */ - -struct share_ops *locking_slow_init(int ronly); - -/*The following definitions come from locking/shmem.c */ - -struct shmem_ops *smb_shm_open(int ronly); - -/*The following definitions come from locking/shmem_sysv.c */ - -struct shmem_ops *sysv_shm_open(int ronly); /*The following definitions come from nmbd/asyncdns.c */ -- cgit