source: vendor/current/source3/include/messages.h@ 599

Last change on this file since 599 was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 4.4 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3 messages.c header
4 Copyright (C) Andrew Tridgell 2000
5 Copyright (C) 2001, 2002 by Martin Pool
6
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 3 of the License, or
10 (at your option) any later version.
11
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.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef _MESSAGES_H_
22#define _MESSAGES_H_
23
24/* change the message version with any incompatible changes in the protocol */
25#define MESSAGE_VERSION 2
26
27/*
28 * Special flags passed to message_send. Allocated from the top, lets see when
29 * it collides with the message types in the lower 16 bits :-)
30 */
31
32/*
33 * Under high load, this message can be dropped. Use for notify-style
34 * messages that are not critical for correct operation.
35 */
36#define MSG_FLAG_LOWPRIORITY 0x80000000
37
38
39/* Flags to classify messages - used in message_send_all() */
40/* Sender will filter by flag. */
41
42#define FLAG_MSG_GENERAL 0x0001
43#define FLAG_MSG_SMBD 0x0002
44#define FLAG_MSG_NMBD 0x0004
45#define FLAG_MSG_PRINT_NOTIFY 0x0008
46#define FLAG_MSG_PRINT_GENERAL 0x0010
47/* dbwrap messages 4001-4999 */
48#define FLAG_MSG_DBWRAP 0x0020
49
50