diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-07 14:14:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-07 14:14:57 +0000 |
commit | 5573a1c7394362f5e46c58b8cfaf6bf7a080c391 (patch) | |
tree | fffa468b63bbb72701e4ed06667fbdf3459ea19b /source3/include | |
parent | 83ebf2b6b282926930dc2c5dee3b5f18447d6e81 (diff) | |
download | samba-5573a1c7394362f5e46c58b8cfaf6bf7a080c391.tar.gz samba-5573a1c7394362f5e46c58b8cfaf6bf7a080c391.tar.bz2 samba-5573a1c7394362f5e46c58b8cfaf6bf7a080c391.zip |
added "display charset" option in smb.conf, along with d_printf()
which should now be used instead of DEBUG(0) or printf() for
interactive messages
I have only converted client.c to use d_printf(), and the code hasn't
had much testing yet. Eventually we want all interactive code to use
d_printf(), plus SWAT
(This used to be commit 266d8e67669adb329f25676c4bc4d4c50f223428)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/charset.h | 25 | ||||
-rw-r--r-- | source3/include/includes.h | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/source3/include/charset.h b/source3/include/charset.h new file mode 100644 index 0000000000..3221349f4a --- /dev/null +++ b/source3/include/charset.h @@ -0,0 +1,25 @@ +/* + Unix SMB/Netbios implementation. + Version 3.0 + charset defines + Copyright (C) Andrew Tridgell 2001 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/* this defines the charset types used in samba */ +typedef enum {CH_UCS2=0, CH_UNIX=1, CH_DISPLAY=2, CH_DOS=3} charset_t; + +#define NUM_CHARSETS 4 diff --git a/source3/include/includes.h b/source3/include/includes.h index ad1633fb87..b29759540f 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -639,6 +639,7 @@ extern int errno; #include "secrets.h" #include "messages.h" #include "util_list.h" +#include "charset.h" #include "util_getent.h" |