This allows the callback to consume the fds and e.g. set
them to -1 so that the caller can then treat (close) only those
fds that have not been consumed.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
}
static void messaging_recv_cb(const uint8_t *msg, size_t msg_len,
- const int *fds, size_t num_fds,
+ int *fds, size_t num_fds,
void *private_data)
{
struct messaging_context *msg_ctx = talloc_get_type_abort(
void (*recv_cb)(const uint8_t *msg,
size_t msg_len,
- const int *fds,
+ int *fds,
size_t num_fds,
void *private_data);
void *recv_cb_private_data;
uid_t dir_owner,
void (*recv_cb)(const uint8_t *msg,
size_t msg_len,
- const int *fds,
+ int *fds,
size_t num_fds,
void *private_data),
void *recv_cb_private_data)
uid_t dir_owner,
void (*recv_cb)(const uint8_t *msg,
size_t msg_len,
- const int *fds,
+ int *fds,
size_t num_fds,
void *private_data),
void *recv_cb_private_data);