The term "handler" is already overloaded. Besides command and signal
handlers we have callback result handlers, table event handlers and
max size handlers for para buffers. The simple "cb" is a shorter and
clearer name for the callback function pointer.
*/
struct callback_query {
/** The function to be called. */
*/
struct callback_query {
/** The function to be called. */
/** The number of bytes of the query */
size_t query_size;
};
/** The number of bytes of the query */
size_t query_size;
};
if (ret < 0)
goto out;
cq = query_shm;
if (ret < 0)
goto out;
cq = query_shm;
cq->query_size = query_shm_size - sizeof(*cq);
if (query)
cq->query_size = query_shm_size - sizeof(*cq);
if (query)
.fd = fd,
.band = SBD_OUTPUT
};
.fd = fd,
.band = SBD_OUTPUT
};
- ret = cq->handler(&aca);
ret2 = shm_detach(query_shm);
if (ret2 < 0) {
if (ret < 0) /* ignore (but log) detach error */
ret2 = shm_detach(query_shm);
if (ret2 < 0) {
if (ret < 0) /* ignore (but log) detach error */