mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
protocol-native: move to separate file
Move protocol-native to separate client and server file
This commit is contained in:
parent
b9a0b067be
commit
842d73ca4b
10 changed files with 1196 additions and 1061 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "spa/lib/debug.h"
|
||||
|
||||
#include "pinos/client/pinos.h"
|
||||
#include "pinos/client/protocol-native.h"
|
||||
#include "pinos/client/array.h"
|
||||
#include "pinos/client/connection.h"
|
||||
#include "pinos/client/context.h"
|
||||
|
|
@ -928,11 +929,6 @@ static const PinosClientNodeEvent client_node_events = {
|
|||
&client_node_transport
|
||||
};
|
||||
|
||||
typedef void (*MarshallFunc) (void *object, void *data, size_t size);
|
||||
|
||||
extern const PinosClientNodeInterface client_node_interface;
|
||||
extern const MarshallFunc client_node_marshall[];
|
||||
|
||||
static void
|
||||
on_node_proxy_destroy (PinosListener *listener,
|
||||
PinosProxy *proxy)
|
||||
|
|
@ -1002,9 +998,9 @@ pinos_stream_connect (PinosStream *stream,
|
|||
on_node_proxy_destroy);
|
||||
|
||||
impl->node_proxy->user_data = stream;
|
||||
impl->node_proxy->interface = &client_node_interface;
|
||||
impl->node_proxy->event = &client_node_events;
|
||||
impl->node_proxy->marshall = &client_node_marshall;
|
||||
impl->node_proxy->interface = &pinos_protocol_native_client_client_node_interface;
|
||||
impl->node_proxy->marshall = &pinos_protocol_native_client_client_node_marshall;
|
||||
|
||||
pinos_core_do_create_client_node (stream->context->core_proxy,
|
||||
++impl->seq,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue