pipewire/pinos/server/node-factory.h
Wim Taymans 190f01d88e WIP
Change object model
2016-11-10 15:42:14 +01:00

53 lines
1.7 KiB
C

/* Pinos
* Copyright (C) 2016 Axis Communications AB
*
* 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_NODE_FACTORY_H__
#define __PINOS_NODE_FACTORY_H__
#include <glib-object.h>
G_BEGIN_DECLS
#define PINOS_NODE_FACTORY_URI "http://pinos.org/ns/node-factory"
#define PINOS_NODE_FACTORY_PREFIX PINOS_NODE_FACTORY_URI "#"
typedef struct _PinosNodeFactory PinosNodeFactory;
#include <pinos/server/core.h>
#include <pinos/server/client.h>
/**
* PinosNodeFactory:
*
* Pinos node factory interface.
*/
struct _PinosNodeFactory {
const char *name;
PinosNode * (*create_node) (PinosNodeFactory *factory,
PinosClient *client,
const gchar *name,
PinosProperties *properties);
};
#define pinos_node_factory_create_node(f,...) (f)->create_node((f),__VA_ARGS__)
G_END_DECLS
#endif /* __PINOS_NODE_FACTORY_H__ */