25#ifndef PIPEWIRE_EXT_PROTOCOL_NATIVE_H
26#define PIPEWIRE_EXT_PROTOCOL_NATIVE_H
45#define PW_TYPE_INFO_PROTOCOL_Native PW_TYPE_INFO_PROTOCOL_BASE "Native"
65#define PW_VERSION_PROTOCOL_NATIVE_EXT 0
87#define pw_protocol_native_begin_proxy(p,...) pw_protocol_ext(pw_proxy_get_protocol(p),struct pw_protocol_native_ext,begin_proxy,p,__VA_ARGS__)
88#define pw_protocol_native_add_proxy_fd(p,...) pw_protocol_ext(pw_proxy_get_protocol(p),struct pw_protocol_native_ext,add_proxy_fd,p,__VA_ARGS__)
89#define pw_protocol_native_get_proxy_fd(p,...) pw_protocol_ext(pw_proxy_get_protocol(p),struct pw_protocol_native_ext,get_proxy_fd,p,__VA_ARGS__)
90#define pw_protocol_native_end_proxy(p,...) pw_protocol_ext(pw_proxy_get_protocol(p),struct pw_protocol_native_ext,end_proxy,p,__VA_ARGS__)
92#define pw_protocol_native_begin_resource(r,...) pw_protocol_ext(pw_resource_get_protocol(r),struct pw_protocol_native_ext,begin_resource,r,__VA_ARGS__)
93#define pw_protocol_native_add_resource_fd(r,...) pw_protocol_ext(pw_resource_get_protocol(r),struct pw_protocol_native_ext,add_resource_fd,r,__VA_ARGS__)
94#define pw_protocol_native_get_resource_fd(r,...) pw_protocol_ext(pw_resource_get_protocol(r),struct pw_protocol_native_ext,get_resource_fd,r,__VA_ARGS__)
95#define pw_protocol_native_end_resource(r,...) pw_protocol_ext(pw_resource_get_protocol(r),struct pw_protocol_native_ext,end_resource,r,__VA_ARGS__)
Definition: protocol-native.h:62
uint32_t flags
Definition: protocol-native.h:65
uint32_t permissions
Definition: protocol-native.h:64
int(* func)(void *object, const struct pw_protocol_native_message *msg)
Definition: protocol-native.h:63
pw_protocol_native_ext methods
Definition: protocol-native.h:69
int(* get_proxy_fd)(struct pw_proxy *proxy, uint32_t index)
Definition: protocol-native.h:78
int(* end_resource)(struct pw_resource *resource, struct spa_pod_builder *builder)
Definition: protocol-native.h:89
uint32_t(* add_proxy_fd)(struct pw_proxy *proxy, int fd)
Definition: protocol-native.h:77
uint32_t version
Definition: protocol-native.h:72
int(* end_proxy)(struct pw_proxy *proxy, struct spa_pod_builder *builder)
Definition: protocol-native.h:80
uint32_t(* add_resource_fd)(struct pw_resource *resource, int fd)
Definition: protocol-native.h:86
int(* get_resource_fd)(struct pw_resource *resource, uint32_t index)
Definition: protocol-native.h:87
Definition: protocol-native.h:52
uint32_t id
Definition: protocol-native.h:53
int seq
Definition: protocol-native.h:59
void * data
Definition: protocol-native.h:55
uint32_t n_fds
Definition: protocol-native.h:57
int * fds
Definition: protocol-native.h:58
uint32_t size
Definition: protocol-native.h:56
uint32_t opcode
Definition: protocol-native.h:54