PipeWire  0.3.33
PipeWire Client

Data Structures

struct  pw_client_info
 The client information. More...
 
struct  pw_client_events
 Client events. More...
 
struct  pw_client_methods
 Client methods. More...
 

Macros

#define PW_TYPE_INTERFACE_Client   PW_TYPE_INFO_INTERFACE_BASE "Client"
 
#define PW_VERSION_CLIENT   3
 
#define PW_ID_CLIENT   1
 
#define PW_CLIENT_EVENT_INFO   0
 
#define PW_CLIENT_EVENT_PERMISSIONS   1
 
#define PW_CLIENT_EVENT_NUM   2
 
#define PW_CLIENT_METHOD_ADD_LISTENER   0
 
#define PW_CLIENT_METHOD_ERROR   1
 
#define PW_CLIENT_METHOD_UPDATE_PROPERTIES   2
 
#define PW_CLIENT_METHOD_GET_PERMISSIONS   3
 
#define PW_CLIENT_METHOD_UPDATE_PERMISSIONS   4
 
#define PW_CLIENT_METHOD_NUM   5
 
#define pw_client_method(o, method, version, ...)
 
#define pw_client_add_listener(c, ...)   pw_client_method(c,add_listener,0,__VA_ARGS__)
 
#define pw_client_error(c, ...)   pw_client_method(c,error,0,__VA_ARGS__)
 
#define pw_client_update_properties(c, ...)   pw_client_method(c,update_properties,0,__VA_ARGS__)
 
#define pw_client_get_permissions(c, ...)   pw_client_method(c,get_permissions,0,__VA_ARGS__)
 
#define pw_client_update_permissions(c, ...)   pw_client_method(c,update_permissions,0,__VA_ARGS__)
 

Functions

struct pw_client_infopw_client_info_update (struct pw_client_info *info, const struct pw_client_info *update)
 Update and existing pw_client_info with update. More...
 
void pw_client_info_free (struct pw_client_info *info)
 Free a pw_client_info. More...
 

Detailed Description

Macro Definition Documentation

◆ pw_client_add_listener

#define pw_client_add_listener (   c,
  ... 
)    pw_client_method(c,add_listener,0,__VA_ARGS__)

◆ pw_client_error

#define pw_client_error (   c,
  ... 
)    pw_client_method(c,error,0,__VA_ARGS__)

◆ PW_CLIENT_EVENT_INFO

#define PW_CLIENT_EVENT_INFO   0

◆ PW_CLIENT_EVENT_NUM

#define PW_CLIENT_EVENT_NUM   2

◆ PW_CLIENT_EVENT_PERMISSIONS

#define PW_CLIENT_EVENT_PERMISSIONS   1

◆ pw_client_get_permissions

#define pw_client_get_permissions (   c,
  ... 
)    pw_client_method(c,get_permissions,0,__VA_ARGS__)

◆ pw_client_method

#define pw_client_method (   o,
  method,
  version,
  ... 
)
Value:
({ \
int _res = -ENOTSUP; \
spa_interface_call_res((struct spa_interface*)o, \
struct pw_client_methods, _res, \
method, version, ##__VA_ARGS__); \
_res; \
})

◆ PW_CLIENT_METHOD_ADD_LISTENER

#define PW_CLIENT_METHOD_ADD_LISTENER   0

◆ PW_CLIENT_METHOD_ERROR

#define PW_CLIENT_METHOD_ERROR   1

◆ PW_CLIENT_METHOD_GET_PERMISSIONS

#define PW_CLIENT_METHOD_GET_PERMISSIONS   3

◆ PW_CLIENT_METHOD_NUM

#define PW_CLIENT_METHOD_NUM   5

◆ PW_CLIENT_METHOD_UPDATE_PERMISSIONS

#define PW_CLIENT_METHOD_UPDATE_PERMISSIONS   4

◆ PW_CLIENT_METHOD_UPDATE_PROPERTIES

#define PW_CLIENT_METHOD_UPDATE_PROPERTIES   2

◆ pw_client_update_permissions

#define pw_client_update_permissions (   c,
  ... 
)    pw_client_method(c,update_permissions,0,__VA_ARGS__)

◆ pw_client_update_properties

#define pw_client_update_properties (   c,
  ... 
)    pw_client_method(c,update_properties,0,__VA_ARGS__)

◆ PW_ID_CLIENT

#define PW_ID_CLIENT   1

◆ PW_TYPE_INTERFACE_Client

#define PW_TYPE_INTERFACE_Client   PW_TYPE_INFO_INTERFACE_BASE "Client"

◆ PW_VERSION_CLIENT

#define PW_VERSION_CLIENT   3

Function Documentation

◆ pw_client_info_free()

void pw_client_info_free ( struct pw_client_info info)

◆ pw_client_info_update()

struct pw_client_info* pw_client_info_update ( struct pw_client_info info,
const struct pw_client_info update 
)
spa_interface
Definition: hook.h:146
pw_client_methods
Client methods.
Definition: client.h:111