s3-messaging: Fix messaging classes.
commitb706fd37f6d0e7e66718488d069053687ad0664c
authorSimo Sorce <idra@samba.org>
Thu, 11 Aug 2011 03:10:48 +0000 (10 23:10 -0400)
committerAndreas Schneider <asn@samba.org>
Thu, 11 Aug 2011 12:58:01 +0000 (11 14:58 +0200)
treea2440046423fca0764fee98637b8d43499c91fca
parentcb1af61cb1988931654ad14c787d2493ef629a58
s3-messaging: Fix messaging classes.

This has been broken since ff0ac5b0 (May 2007).
Basically all messages were belonging to the General class except for CTDB
messages.
This fixed the message_send_all() function to correctly compute the class, and
fixes registrations to include all they need to cope with the fact not all
messages are of calss general (registrations rotted a bit because as long as
FLAG_MSG_GENERAL was defined the process woould receive all messages).

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/include/messages.h
source3/lib/messages.c
source3/librpc/idl/messaging.idl
source3/nmbd/nmbd.c
source3/winbindd/winbindd.c