mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: split out server creation and socket handling
Part of !776.
This commit is contained in:
parent
49d31ea0af
commit
d366487116
7 changed files with 1077 additions and 964 deletions
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <spa/utils/defs.h>
|
||||
#include <spa/utils/ringbuffer.h>
|
||||
|
|
@ -58,21 +57,6 @@ struct stats {
|
|||
uint32_t sample_cache;
|
||||
};
|
||||
|
||||
struct impl;
|
||||
|
||||
struct server {
|
||||
struct spa_list link;
|
||||
struct impl *impl;
|
||||
|
||||
struct sockaddr_storage addr;
|
||||
|
||||
struct spa_source *source;
|
||||
struct spa_list clients;
|
||||
uint32_t n_clients;
|
||||
uint32_t wait_clients;
|
||||
unsigned int activated:1;
|
||||
};
|
||||
|
||||
struct impl {
|
||||
struct pw_loop *loop;
|
||||
struct pw_context *context;
|
||||
|
|
@ -99,7 +83,4 @@ struct impl {
|
|||
|
||||
extern bool debug_messages;
|
||||
|
||||
int create_and_start_servers(struct impl *impl, const char *addresses, struct pw_array *servers);
|
||||
void server_free(struct server *server);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue