waf: Remove lib prefix from libraries manually.
[kai/samba.git] / source4 / smbd / service_stream.h
index 6eb26a42825605f06b44571cbf1fe0825808adcc..202ea5232762066df380a61506899b0083f06d6c 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef __SERVICE_STREAM_H__
 #define __SERVICE_STREAM_H__
 
-#include "librpc/gen_ndr/misc.h"
+#include "librpc/gen_ndr/server_id.h"
 
 /* modules can use the following to determine if the interface has changed
  * please increment the version number after each interface change
@@ -39,15 +39,26 @@ struct stream_connection {
        const struct stream_server_ops *ops;
        const struct model_ops *model_ops;
        struct server_id server_id;
-       void *private;
+       void *private_data;
 
        struct {
-               struct event_context *ctx;
-               struct fd_event *fde;
+               struct tevent_context *ctx;
+               struct tevent_fd *fde;
        } event;
 
        struct socket_context *socket;
        struct messaging_context *msg_ctx;
+       struct loadparm_context *lp_ctx;
+
+       struct tstream_context *tstream;
+       struct tsocket_address *local_address;
+       struct tsocket_address *remote_address;
+
+       /*
+        * this transport layer session info, normally NULL
+        * which means the same as an anonymous session info
+        */
+       struct auth_session_info *session_info;
 
        bool processing;
        const char *terminate;
@@ -63,4 +74,6 @@ struct stream_server_ops {
        void (*send_handler)(struct stream_connection *, uint16_t);
 };
 
+void stream_terminate_connection(struct stream_connection *srv_conn, const char *reason);
+
 #endif /* __SERVICE_STREAM_H__ */