mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Add a global object that can be used to track outstanding fds for a client. This can later also be used to limit the number of fds per client. Use this in the payloader to track fds. This makes it possible to track the fds even when the client reconnects. Set the client patch on the socket so that we can use it to track the fds we sent to this client. When the client disappears, release all outstanding fds.
46 lines
1.7 KiB
C
46 lines
1.7 KiB
C
/* Pinos
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __PINOS_H__
|
|
#define __PINOS_H__
|
|
|
|
#include <pinos/client/buffer.h>
|
|
#include <pinos/client/context.h>
|
|
#include <pinos/client/enumtypes.h>
|
|
#include <pinos/client/fdmanager.h>
|
|
#include <pinos/client/introspect.h>
|
|
#include <pinos/client/mainloop.h>
|
|
#include <pinos/client/properties.h>
|
|
#include <pinos/client/stream.h>
|
|
#include <pinos/client/subscribe.h>
|
|
|
|
#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_SOURCE PINOS_DBUS_OBJECT_PREFIX "/source"
|
|
#define PINOS_DBUS_OBJECT_CLIENT PINOS_DBUS_OBJECT_PREFIX "/client"
|
|
|
|
void pinos_init (int *argc, char **argv[]);
|
|
|
|
gchar *pinos_client_name (void);
|
|
|
|
void pinos_fill_context_properties (PinosProperties *properties);
|
|
void pinos_fill_stream_properties (PinosProperties *properties);
|
|
|
|
#endif /* __PINOS_H__ */
|