Use mapper to make object id

Reuse object ids by using a mapper
Simpify the uri struct a little.
This commit is contained in:
Wim Taymans 2016-11-21 16:29:15 +01:00
parent f42268b9a5
commit e7cae649aa
14 changed files with 61 additions and 64 deletions

View file

@ -31,7 +31,7 @@ typedef struct _PinosGlobal PinosGlobal;
#include <pinos/server/main-loop.h>
#include <pinos/server/data-loop.h>
#include <pinos/server/registry.h>
#include <pinos/server/uri.h>
#include <pinos/server/node.h>
#include <pinos/server/link.h>
@ -52,7 +52,9 @@ struct _PinosGlobal {
* Pinos core object class.
*/
struct _PinosCore {
PinosRegistry registry;
PinosURI uri;
PinosMap objects;
SpaList global_list;
SpaList client_list;