diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-17 00:06:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-12-17 11:04:45 +0100 |
commit | 081f8883bafc11ca7c08f868ec19f1ea32071837 (patch) | |
tree | 2e190f34ba0cb18321e0581f5e3ac242ee93f03b /source4/lib | |
parent | 675b363b712e0b91b9b7d1189a819a36853db539 (diff) | |
download | samba-081f8883bafc11ca7c08f868ec19f1ea32071837.tar.gz samba-081f8883bafc11ca7c08f868ec19f1ea32071837.tar.bz2 samba-081f8883bafc11ca7c08f868ec19f1ea32071837.zip |
s4: fix LIBEVENTS dependencies and use more forward declarations
We should only include events.h where we really need it
and prefer forward declarations of 'struct event_context'
metze
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/socket/socket.h | 3 | ||||
-rw-r--r-- | source4/lib/stream/packet.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source4/lib/socket/socket.h b/source4/lib/socket/socket.h index ec3afe8f7f..8b1b65db92 100644 --- a/source4/lib/socket/socket.h +++ b/source4/lib/socket/socket.h @@ -20,8 +20,7 @@ #ifndef _SAMBA_SOCKET_H #define _SAMBA_SOCKET_H -#include "lib/events/events.h" - +struct event_context; struct socket_context; enum socket_type { diff --git a/source4/lib/stream/packet.h b/source4/lib/stream/packet.h index 45826c5f14..f7b10cd878 100644 --- a/source4/lib/stream/packet.h +++ b/source4/lib/stream/packet.h @@ -20,6 +20,10 @@ */ +struct packet_context; +struct event_context; +struct fd_event; + typedef NTSTATUS (*packet_full_request_fn_t)(void *private, DATA_BLOB blob, size_t *packet_size); typedef NTSTATUS (*packet_callback_fn_t)(void *private, DATA_BLOB blob); |