2015-06-30 18:06:36 +02:00
|
|
|
/* Pinos
|
2015-04-16 16:58:33 +02:00
|
|
|
* Copyright (C) 2015 Wim Taymans <wim.taymans@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2015-06-30 18:06:36 +02:00
|
|
|
#ifndef __PINOS_H__
|
|
|
|
|
#define __PINOS_H__
|
2015-04-16 16:58:33 +02:00
|
|
|
|
2016-09-26 12:15:52 +02:00
|
|
|
extern const char g_log_domain_pinos[];
|
|
|
|
|
|
2016-02-01 15:40:48 +01:00
|
|
|
#include <pinos/client/context.h>
|
2016-04-08 16:50:01 +02:00
|
|
|
#include <pinos/client/enumtypes.h>
|
2016-02-01 15:40:48 +01:00
|
|
|
#include <pinos/client/introspect.h>
|
2016-11-03 19:41:53 +01:00
|
|
|
#include <pinos/client/log.h>
|
2016-10-20 16:26:55 +02:00
|
|
|
#include <pinos/client/thread-mainloop.h>
|
2016-02-01 15:40:48 +01:00
|
|
|
#include <pinos/client/properties.h>
|
2016-06-28 12:21:56 +02:00
|
|
|
#include <pinos/client/ringbuffer.h>
|
2016-02-01 15:40:48 +01:00
|
|
|
#include <pinos/client/stream.h>
|
|
|
|
|
#include <pinos/client/subscribe.h>
|
2016-11-03 19:41:53 +01:00
|
|
|
#include <spa/include/spa/id-map.h>
|
2015-04-16 16:58:33 +02:00
|
|
|
|
2015-07-07 16:46:23 +02:00
|
|
|
#define PINOS_DBUS_SERVICE "org.pinos"
|
|
|
|
|
#define PINOS_DBUS_OBJECT_PREFIX "/org/pinos"
|
|
|
|
|
#define PINOS_DBUS_OBJECT_SERVER PINOS_DBUS_OBJECT_PREFIX "/server"
|
|
|
|
|
#define PINOS_DBUS_OBJECT_CLIENT PINOS_DBUS_OBJECT_PREFIX "/client"
|
2016-05-06 17:54:23 +02:00
|
|
|
#define PINOS_DBUS_OBJECT_NODE PINOS_DBUS_OBJECT_PREFIX "/node"
|
2016-07-21 18:38:24 +02:00
|
|
|
#define PINOS_DBUS_OBJECT_LINK PINOS_DBUS_OBJECT_PREFIX "/link"
|
2015-04-17 17:27:26 +02:00
|
|
|
|
2016-09-16 13:13:41 +02:00
|
|
|
typedef enum {
|
|
|
|
|
PINOS_ERROR_FAILED,
|
|
|
|
|
PINOS_ERROR_FORMAT_NEGOTIATION,
|
|
|
|
|
PINOS_ERROR_BUFFER_ALLOCATION,
|
|
|
|
|
PINOS_ERROR_NODE_STATE,
|
|
|
|
|
PINOS_ERROR_NODE_PORT,
|
|
|
|
|
PINOS_ERROR_NODE_LINK,
|
|
|
|
|
} PinosErrorEnum;
|
|
|
|
|
|
|
|
|
|
GQuark pinos_error_quark (void);
|
|
|
|
|
#define PINOS_ERROR pinos_error_quark()
|
|
|
|
|
|
2015-07-07 16:46:23 +02:00
|
|
|
void pinos_init (int *argc, char **argv[]);
|
2015-04-16 19:45:26 +02:00
|
|
|
|
2015-07-28 17:05:03 +02:00
|
|
|
gchar *pinos_client_name (void);
|
|
|
|
|
|
|
|
|
|
void pinos_fill_context_properties (PinosProperties *properties);
|
|
|
|
|
void pinos_fill_stream_properties (PinosProperties *properties);
|
|
|
|
|
|
2016-05-17 09:38:30 +02:00
|
|
|
PinosDirection pinos_direction_reverse (PinosDirection direction);
|
|
|
|
|
|
2016-11-03 19:41:53 +01:00
|
|
|
SpaIDMap * pinos_id_map_get_default (void);
|
|
|
|
|
|
2015-06-30 18:06:36 +02:00
|
|
|
#endif /* __PINOS_H__ */
|