/* Pinos * Copyright (C) 2015 Wim Taymans * * 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. */ #include #include "pinos/client/pinos.h" #include "pinos/client/uri.h" #include "pinos/server/core.h" #include "pinos/server/node.h" #include "pinos/server/node-factory.h" #include "pinos/server/client.h" #include "pinos/server/client-node.h" #include "pinos/server/module.h" #include "spa/include/spa/monitor.h" void pinos_uri_init (PinosURI *uri) { uri->map = pinos_id_map_get_default(); uri->core = spa_id_map_get_id (uri->map, PINOS_TYPE__Core); uri->registry = spa_id_map_get_id (uri->map, PINOS_TYPE__Registry); uri->node = spa_id_map_get_id (uri->map, PINOS_TYPE__Node); uri->node_factory = spa_id_map_get_id (uri->map, PINOS_TYPE__NodeFactory); uri->link = spa_id_map_get_id (uri->map, PINOS_TYPE__Link); uri->client = spa_id_map_get_id (uri->map, PINOS_TYPE__Client); uri->client_node = spa_id_map_get_id (uri->map, PINOS_TYPE__ClientNode); uri->module = spa_id_map_get_id (uri->map, PINOS_TYPE__Module); uri->spa_node = spa_id_map_get_id (uri->map, SPA_TYPE__Node); uri->spa_clock = spa_id_map_get_id (uri->map, SPA_TYPE__Clock); uri->spa_monitor = spa_id_map_get_id (uri->map, SPA_TYPE__Monitor); spa_event_node_map (uri->map, &uri->event_node); spa_command_node_map (uri->map, &uri->command_node); spa_monitor_types_map (uri->map, &uri->monitor_types); spa_alloc_param_buffers_map (uri->map, &uri->alloc_param_buffers); spa_alloc_param_meta_enable_map (uri->map, &uri->alloc_param_meta_enable); spa_alloc_param_video_padding_map (uri->map, &uri->alloc_param_video_padding); }