summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-02 10:17:00 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-02 13:08:51 +0100
commit0ac7792e022107c352f5464f52563c4e885272dd (patch)
tree4b7f14df254962c202b98bb8cb0fb87d06c6edd5 /source4/libcli/raw
parente5e0a064853ff5cd7f9bea0d9a6db8a0ae497635 (diff)
downloadsamba-0ac7792e022107c352f5464f52563c4e885272dd.tar.gz
samba-0ac7792e022107c352f5464f52563c4e885272dd.tar.bz2
samba-0ac7792e022107c352f5464f52563c4e885272dd.zip
s4:libcliraw: s/private/private_data
metze
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/clioplock.c2
-rw-r--r--source4/libcli/raw/clitransport.c4
-rw-r--r--source4/libcli/raw/libcliraw.h6
-rw-r--r--source4/libcli/raw/rawrequest.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/source4/libcli/raw/clioplock.c b/source4/libcli/raw/clioplock.c
index 5005f878af..42ac6b517b 100644
--- a/source4/libcli/raw/clioplock.c
+++ b/source4/libcli/raw/clioplock.c
@@ -58,5 +58,5 @@ _PUBLIC_ void smbcli_oplock_handler(struct smbcli_transport *transport,
void *private_data)
{
transport->oplock.handler = handler;
- transport->oplock.private = private_data;
+ transport->oplock.private_data = private_data;
}
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c
index e6f27b1159..1fa27e37ea 100644
--- a/source4/libcli/raw/clitransport.c
+++ b/source4/libcli/raw/clitransport.c
@@ -317,7 +317,7 @@ static void idle_handler(struct tevent_context *ev,
transport,
next,
idle_handler, transport);
- transport->idle.func(transport, transport->idle.private);
+ transport->idle.func(transport, transport->idle.private_data);
}
/*
@@ -330,7 +330,7 @@ _PUBLIC_ void smbcli_transport_idle_handler(struct smbcli_transport *transport,
void *private_data)
{
transport->idle.func = idle_func;
- transport->idle.private = private_data;
+ transport->idle.private_data = private_data;
transport->idle.period = period;
if (transport->socket->event.te != NULL) {
diff --git a/source4/libcli/raw/libcliraw.h b/source4/libcli/raw/libcliraw.h
index 1b9cba8e38..a9fcdab9cc 100644
--- a/source4/libcli/raw/libcliraw.h
+++ b/source4/libcli/raw/libcliraw.h
@@ -128,7 +128,7 @@ struct smbcli_transport {
for a packet */
struct {
void (*func)(struct smbcli_transport *, void *);
- void *private;
+ void *private_data;
uint_t period;
} idle;
@@ -151,7 +151,7 @@ struct smbcli_transport {
bool (*handler)(struct smbcli_transport *transport,
uint16_t tid, uint16_t fnum, uint8_t level, void *private_data);
/* private data passed to the oplock handler */
- void *private;
+ void *private_data;
} oplock;
/* a list of async requests that are pending for receive on this connection */
@@ -286,7 +286,7 @@ struct smbcli_request {
*/
struct {
void (*fn)(struct smbcli_request *);
- void *private;
+ void *private_data;
} async;
};
diff --git a/source4/libcli/raw/rawrequest.c b/source4/libcli/raw/rawrequest.c
index a257e3d0f1..029d56428d 100644
--- a/source4/libcli/raw/rawrequest.c
+++ b/source4/libcli/raw/rawrequest.c
@@ -388,7 +388,7 @@ bool smbcli_handle_oplock_break(struct smbcli_transport *transport, uint_t len,
uint16_t tid = SVAL(hdr, HDR_TID);
uint16_t fnum = SVAL(vwv,VWV(2));
uint8_t level = CVAL(vwv,VWV(3)+1);
- transport->oplock.handler(transport, tid, fnum, level, transport->oplock.private);
+ transport->oplock.handler(transport, tid, fnum, level, transport->oplock.private_data);
}
return true;