summaryrefslogtreecommitdiffstats
path: root/source/include/ntdomain.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-12 12:56:00 +0200
committerVolker Lendecke <vl@samba.org>2008-07-26 13:20:10 +0200
commite11b5cb1e061caf4c3793fb402ca6bee95a8f26c (patch)
tree1ccc2ac0153bc19571032af91f5dad6a81c627eb /source/include/ntdomain.h
parent10b47a0c2cfd62489428518112da82f73a52b7bc (diff)
downloadsamba-e11b5cb1e061caf4c3793fb402ca6bee95a8f26c.tar.gz
samba-e11b5cb1e061caf4c3793fb402ca6bee95a8f26c.tar.xz
samba-e11b5cb1e061caf4c3793fb402ca6bee95a8f26c.zip
make read/write to internal pipes available externally
Diffstat (limited to 'source/include/ntdomain.h')
-rw-r--r--source/include/ntdomain.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/include/ntdomain.h b/source/include/ntdomain.h
index da3dd141893..de0a3136098 100644
--- a/source/include/ntdomain.h
+++ b/source/include/ntdomain.h
@@ -303,10 +303,8 @@ typedef struct smb_np_struct {
/*
* NamedPipe state information.
- *
- * (e.g. typecast a np_struct, above).
*/
- void *np_state;
+ struct pipes_struct *np_state;
/*
* NamedPipe functions, to be called to perform
@@ -326,8 +324,8 @@ typedef struct smb_np_struct {
/* call to perform a write namedpipe operation
*/
- ssize_t (*namedpipe_write)(void * np_state,
- char *data, size_t n);
+ ssize_t (*namedpipe_write)(struct pipes_struct *p,
+ char *data, size_t n);
/* call to perform a read namedpipe operation.
*
@@ -340,9 +338,9 @@ typedef struct smb_np_struct {
* when samba is modified to use namedpipe_transact,
* the pipe_outstanding argument may be removed.
*/
- ssize_t (*namedpipe_read)(void * np_state,
- char *data, size_t max_len,
- bool *pipe_outstanding);
+ ssize_t (*namedpipe_read)(struct pipes_struct *p,
+ char *data, size_t max_len,
+ bool *pipe_outstanding);
} smb_np_struct;