2016-11-03 19:41:53 +01:00
|
|
|
/* Pinos
|
|
|
|
|
* Copyright (C) 2015 Wim Taymans <wim.taymans@gmail.com>
|
2016-07-28 21:19:20 +02:00
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Library General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-11-03 19:41:53 +01:00
|
|
|
#include <string.h>
|
2016-07-28 21:19:20 +02:00
|
|
|
|
2016-11-03 19:41:53 +01:00
|
|
|
#include "pinos/client/pinos.h"
|
|
|
|
|
#include "pinos/server/registry.h"
|
2016-07-28 21:19:20 +02:00
|
|
|
|
2016-11-03 19:41:53 +01:00
|
|
|
void
|
|
|
|
|
pinos_registry_init (PinosRegistry *reg)
|
|
|
|
|
{
|
|
|
|
|
reg->map = pinos_id_map_get_default();
|
2016-07-28 21:19:20 +02:00
|
|
|
|
2016-11-03 19:41:53 +01:00
|
|
|
pinos_map_init (®->clients, 64);
|
|
|
|
|
pinos_map_init (®->nodes, 128);
|
|
|
|
|
pinos_map_init (®->ports, 512);
|
|
|
|
|
pinos_map_init (®->links, 256);
|
|
|
|
|
pinos_map_init (®->modules, 128);
|
|
|
|
|
pinos_map_init (®->monitors, 64);
|
|
|
|
|
}
|