fix some leaks

Fix some leaks
Remove some unused fields
Install a loop so that plugins can use it
Start on adding format introspection
This commit is contained in:
Wim Taymans 2017-01-31 09:57:58 +01:00
parent 4b55d7c4da
commit 8b84d8fde6
13 changed files with 124 additions and 103 deletions

View file

@ -1216,10 +1216,6 @@ pinos_connection_parse_message (PinosConnection *conn,
connection_parse_port_update (conn, message);
break;
case PINOS_MESSAGE_PORT_STATUS_CHANGE:
pinos_log_warn ("implement iter of %d", conn->in.type);
break;
case PINOS_MESSAGE_NODE_STATE_CHANGE:
if (conn->in.size < sizeof (PinosMessageNodeStateChange))
return false;
@ -1410,10 +1406,6 @@ pinos_connection_add_message (PinosConnection *conn,
connection_add_port_update (conn, dest_id, message);
break;
case PINOS_MESSAGE_PORT_STATUS_CHANGE:
p = connection_add_message (conn, dest_id, type, 0);
break;
case PINOS_MESSAGE_NODE_STATE_CHANGE:
p = connection_add_message (conn, dest_id, type, sizeof (PinosMessageNodeStateChange));
memcpy (p, message, sizeof (PinosMessageNodeStateChange));