fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
[Samba.git] / source3 / include / messages.h
blob2b8ca8bbe97b830fa1cb872e03cf8de308573b01
1 /*
2 Unix SMB/CIFS implementation.
3 messages.c header
4 Copyright (C) Andrew Tridgell 2000
5 Copyright (C) 2001, 2002 by Martin Pool
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef _MESSAGES_H_
23 #define _MESSAGES_H_
25 /* general messages */
26 #define MSG_DEBUG 1
27 #define MSG_PING 2
28 #define MSG_PONG 3
29 #define MSG_PROFILE 4
30 #define MSG_REQ_DEBUGLEVEL 5
31 #define MSG_DEBUGLEVEL 6
32 #define MSG_REQ_PROFILELEVEL 7
33 #define MSG_PROFILELEVEL 8
34 #define MSG_REQ_POOL_USAGE 9
35 #define MSG_POOL_USAGE 10
37 /* If dmalloc is included, set a steady-state mark */
38 #define MSG_REQ_DMALLOC_MARK 11
40 /* If dmalloc is included, dump to the dmalloc log a description of
41 * what has changed since the last MARK */
42 #define MSG_REQ_DMALLOC_LOG_CHANGED 12
44 #define MSG_SHUTDOWN 13
46 /* Dump out the talloc useage. */
47 #define MSG_REQ_TALLOC_USAGE 14
48 #define MSG_TALLOC_USAGE 15
50 /* nmbd messages */
51 #define MSG_FORCE_ELECTION 1001
52 #define MSG_WINS_NEW_ENTRY 1002
54 /* printing messages */
55 /* #define MSG_PRINTER_NOTIFY 2001*/ /* Obsolete */
56 #define MSG_PRINTER_DRVUPGRADE 2002
57 #define MSG_PRINTER_NOTIFY2 2003
58 #define MSG_PRINTERDATA_INIT_RESET 2004
60 /* smbd messages */
61 #define MSG_SMB_CONF_UPDATED 3001
62 #define MSG_SMB_FORCE_TDIS 3002
63 #define MSG_SMB_SAM_SYNC 3003
64 #define MSG_SMB_SAM_REPL 3004
66 /* Flags to classify messages - used in message_send_all() */
67 /* Sender will filter by flag. */
69 #define FLAG_MSG_GENERAL 0x0001
70 #define FLAG_MSG_SMBD 0x0002
71 #define FLAG_MSG_NMBD 0x0004
72 #define FLAG_MSG_PRINTING 0x0008
74 #endif