Use types with known sizes where we can, easier to serialize

Add iterator for POD and use it to implement some demarshalling.
This commit is contained in:
Wim Taymans 2017-03-07 11:56:43 +01:00
parent 23d09d5b60
commit f92b68c3c3
77 changed files with 839 additions and 695 deletions

View file

@ -141,7 +141,7 @@ connection_data (SpaSource *source,
PinosConnection *conn = client->connection;
uint8_t opcode;
uint32_t id;
size_t size;
uint32_t size;
PinosClient *c = client->client;
void *message;

View file

@ -84,7 +84,7 @@ add_item (PinosSpaMonitor *this, SpaMonitorItem *item)
props = pinos_properties_new (NULL, NULL);
if (item->info) {
unsigned int i;
uint32_t i;
for (i = 0; i < item->info->n_items; i++) {
pinos_properties_set (props,
@ -203,7 +203,7 @@ pinos_spa_monitor_load (PinosCore *core,
SpaResult res;
void *iface;
void *hnd;
unsigned int index;
uint32_t index;
SpaEnumHandleFactoryFunc enum_func;
const SpaHandleFactory *factory;

View file

@ -47,7 +47,7 @@ pinos_spa_node_load (PinosCore *core,
SpaResult res;
SpaHandle *handle;
void *hnd;
unsigned int index;
uint32_t index;
SpaEnumHandleFactoryFunc enum_func;
const SpaHandleFactory *factory;
void *iface;