diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-09-11 07:02:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-09-11 07:02:43 +0000 |
commit | 3689e4ffc10fceb4c39814ef58fe31697e7dd976 (patch) | |
tree | 805fc5690a3b97e4e72866519760ee86a038c781 /source3/include | |
parent | e0f9de0c49dde82610b0da406b4685e787f69725 (diff) | |
download | samba-3689e4ffc10fceb4c39814ef58fe31697e7dd976.tar.gz samba-3689e4ffc10fceb4c39814ef58fe31697e7dd976.tar.bz2 samba-3689e4ffc10fceb4c39814ef58fe31697e7dd976.zip |
the first cut of the internal messaging system.
The motivation for this system is to replace the UDP message for
oplocks, but this commit only does the "set debug level" message.
(This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/includes.h | 1 | ||||
-rw-r--r-- | source3/include/messages.h | 27 | ||||
-rw-r--r-- | source3/include/proto.h | 10 |
3 files changed, 36 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index eb2f23b6fe..a18c8b6d5c 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -612,6 +612,7 @@ extern int errno; #include "trans2.h" #include "nterr.h" #include "secrets.h" +#include "messages.h" #include "util_list.h" #ifndef UBI_BINTREE_H diff --git a/source3/include/messages.h b/source3/include/messages.h new file mode 100644 index 0000000000..4bc4014ca0 --- /dev/null +++ b/source3/include/messages.h @@ -0,0 +1,27 @@ +/* + Unix SMB/Netbios implementation. + Version 3.0 + messages.c header + Copyright (C) Andrew Tridgell 2000 + + 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. +*/ + +#ifndef _MESSAGES_H_ +#define _MESSAGES_H_ + +enum message_type {MSG_DEBUG}; + +#endif diff --git a/source3/include/proto.h b/source3/include/proto.h index 737053a2a3..754c51ee9d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -59,8 +59,8 @@ uint32 crc32_calc_buffer( char *buffer, uint32 count); /*The following definitions come from lib/debug.c */ -void sig_usr2( int sig ); -void sig_usr1( int sig ); +void debug_message(pid_t src, void *buf, int len); +void debug_message_send(pid_t pid, int level); void setup_logging( char *pname, BOOL interactive ); void reopen_logs( void ); void force_check_log_size( void ); @@ -150,6 +150,12 @@ void initialize_multibyte_vectors( int client_codepage); void mdfour(unsigned char *out, unsigned char *in, int n); +/*The following definitions come from lib/messages.c */ + +BOOL message_init(void); +BOOL message_send_pid(pid_t pid, enum message_type msg_type, void *buf, size_t len); +void message_dispatch(void); + /*The following definitions come from lib/ms_fnmatch.c */ int ms_fnmatch(char *pattern, char *string); |