summaryrefslogtreecommitdiff
path: root/source3/include/charset.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-08-30 01:30:25 +0000
committerJeremy Allison <jra@samba.org>1997-08-30 01:30:25 +0000
commit06dc98f220dba6d602010df235679c6584cba279 (patch)
tree77e113e737a2a1cc20205c1f96edb4ca34dae811 /source3/include/charset.h
parent57408548f3cc717116b5eb3fe7381f0568ac473d (diff)
downloadsamba-06dc98f220dba6d602010df235679c6584cba279.tar.gz
samba-06dc98f220dba6d602010df235679c6584cba279.tar.bz2
samba-06dc98f220dba6d602010df235679c6584cba279.zip
Makefile: New program and support for dynamic codepage loading.
charset.c: Dynamic codepage loading code. charset.h: Defines for file format. proto.h: Updated. Jeremy (jallison@whistle.com) (This used to be commit 550e98f2d49a101654b3abde278a7f7edf347ed8)
Diffstat (limited to 'source3/include/charset.h')
-rw-r--r--source3/include/charset.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/charset.h b/source3/include/charset.h
index 5f5e2016ee..fb184897c0 100644
--- a/source3/include/charset.h
+++ b/source3/include/charset.h
@@ -63,3 +63,13 @@ extern void charset_initialise(void);
#define issafe(c) (isalnum((c&0xff)) || strchr("-._",c))
#endif
+/* Dynamic codepage files defines. */
+
+/* Version id for dynamically loadable codepage files. */
+#define CODEPAGE_FILE_VERSION_ID 0x1
+/* Version 1 codepage file header size. */
+#define CODEPAGE_HEADER_SIZE 8
+/* Offsets for codepage file header entries. */
+#define CODEPAGE_VERSION_OFFSET 0
+#define CODEPAGE_CLIENT_CODEPAGE_OFFSET 2
+#define CODEPAGE_LENGTH_OFFSET 4