mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
protocol: use bool for Bool pod
This commit is contained in:
parent
c117ca0899
commit
3324a15fe3
3 changed files with 4 additions and 4 deletions
|
|
@ -1014,14 +1014,14 @@ static int client_node_demarshal_set_active(void *object, const struct pw_protoc
|
||||||
{
|
{
|
||||||
struct pw_resource *resource = object;
|
struct pw_resource *resource = object;
|
||||||
struct spa_pod_parser prs;
|
struct spa_pod_parser prs;
|
||||||
int active;
|
bool active;
|
||||||
|
|
||||||
spa_pod_parser_init(&prs, msg->data, msg->size);
|
spa_pod_parser_init(&prs, msg->data, msg->size);
|
||||||
if (spa_pod_parser_get_struct(&prs,
|
if (spa_pod_parser_get_struct(&prs,
|
||||||
SPA_POD_Bool(&active)) < 0)
|
SPA_POD_Bool(&active)) < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
pw_resource_notify(resource, struct pw_client_node_methods, set_active, 0, active ? true : false);
|
pw_resource_notify(resource, struct pw_client_node_methods, set_active, 0, active);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ struct client_data {
|
||||||
static void debug_msg(const char *prefix, const struct pw_protocol_native_message *msg, bool hex)
|
static void debug_msg(const char *prefix, const struct pw_protocol_native_message *msg, bool hex)
|
||||||
{
|
{
|
||||||
struct spa_pod *pod;
|
struct spa_pod *pod;
|
||||||
pw_log_debug("%s: id:%d op:%d size:%d seq:%d\n", prefix,
|
pw_log_debug("%s: id:%d op:%d size:%d seq:%d", prefix,
|
||||||
msg->id, msg->opcode, msg->size, msg->seq);
|
msg->id, msg->opcode, msg->size, msg->seq);
|
||||||
|
|
||||||
if ((pod = spa_pod_from_data(msg->data, msg->size, 0, msg->size)) != NULL)
|
if ((pod = spa_pod_from_data(msg->data, msg->size, 0, msg->size)) != NULL)
|
||||||
|
|
|
||||||
|
|
@ -468,7 +468,7 @@ pw_protocol_native_connection_end(struct pw_protocol_native_connection *conn,
|
||||||
buf->n_fds = buf->msg.n_fds;
|
buf->n_fds = buf->msg.n_fds;
|
||||||
|
|
||||||
if (debug_messages) {
|
if (debug_messages) {
|
||||||
pw_log_debug(">>>>>>>>> out: id:%d op:%d size:%d seq:%d\n",
|
pw_log_debug(">>>>>>>>> out: id:%d op:%d size:%d seq:%d",
|
||||||
buf->msg.id, buf->msg.opcode, size, buf->msg.seq);
|
buf->msg.id, buf->msg.opcode, size, buf->msg.seq);
|
||||||
spa_debug_pod(0, NULL, SPA_MEMBER(p, impl->hdr_size, struct spa_pod));
|
spa_debug_pod(0, NULL, SPA_MEMBER(p, impl->hdr_size, struct spa_pod));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue