/* 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. */ #ifndef __PINOS_LINK_H__ #define __PINOS_LINK_H__ #include G_BEGIN_DECLS #define PINOS_LINK_URI "http://pinos.org/ns/link" #define PINOS_LINK_PREFIX PINOS_LINK_URI "#" typedef struct _PinosLink PinosLink; #include #include #include #include #include /** * PinosLink: * * Pinos link interface. */ struct _PinosLink { PinosProperties *properties; PinosLinkState state; GError *error; PinosPort *output; PinosPort *input; PinosSignal port_unlinked; PinosSignal notify_state; uint32_t queue[64]; SpaRingbuffer ringbuffer; gint in_ready; bool (*activate) (PinosLink *link); bool (*deactivate) (PinosLink *link); }; PinosObject * pinos_link_new (PinosCore *core, PinosPort *input, PinosPort *output, GPtrArray *format_filter, PinosProperties *properties); #define pinos_link_activate(l) (l)->activate(l) #define pinos_link_deactivate(l) (l)->deactivate(l) const gchar * pinos_link_get_object_path (PinosLink *link); G_END_DECLS #endif /* __PINOS_LINK_H__ */