mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s4:lib/messaging: s/private/private_data
metze
This commit is contained in:
parent
b7f2983489
commit
735af62105
@ -159,11 +159,11 @@ static PyObject *py_messaging_send(PyObject *self, PyObject *args, PyObject *kwa
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static void py_msg_callback_wrapper(struct messaging_context *msg, void *private,
|
||||
static void py_msg_callback_wrapper(struct messaging_context *msg, void *private_data,
|
||||
uint32_t msg_type,
|
||||
struct server_id server_id, DATA_BLOB *data)
|
||||
{
|
||||
PyObject *callback = (PyObject *)private;
|
||||
PyObject *callback = (PyObject *)private_data;
|
||||
|
||||
PyObject_CallFunction(callback, discard_const_p(char, "i(iii)s#"), msg_type,
|
||||
server_id.id, server_id.id2, server_id.node,
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
static uint32_t msg_pong;
|
||||
|
||||
static void ping_message(struct messaging_context *msg, void *private,
|
||||
static void ping_message(struct messaging_context *msg, void *private_data,
|
||||
uint32_t msg_type, struct server_id src, DATA_BLOB *data)
|
||||
{
|
||||
NTSTATUS status;
|
||||
@ -39,17 +39,17 @@ static void ping_message(struct messaging_context *msg, void *private,
|
||||
}
|
||||
}
|
||||
|
||||
static void pong_message(struct messaging_context *msg, void *private,
|
||||
static void pong_message(struct messaging_context *msg, void *private_data,
|
||||
uint32_t msg_type, struct server_id src, DATA_BLOB *data)
|
||||
{
|
||||
int *count = private;
|
||||
int *count = (int *)private_data;
|
||||
(*count)++;
|
||||
}
|
||||
|
||||
static void exit_message(struct messaging_context *msg, void *private,
|
||||
static void exit_message(struct messaging_context *msg, void *private_data,
|
||||
uint32_t msg_type, struct server_id src, DATA_BLOB *data)
|
||||
{
|
||||
talloc_free(private);
|
||||
talloc_free(private_data);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user