Skip to content

Commit 3b72900

Browse files
committed
replace "\t" with " ", part 2
1 parent 1230c18 commit 3b72900

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+5484
-5484
lines changed

src/java.desktop/unix/native/libpipewire/include/pipewire/keys.h

+304-304
Large diffs are not rendered by default.

src/java.desktop/unix/native/libpipewire/include/pipewire/loop.h

+24-24
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ extern "C" {
2727
*/
2828

2929
struct pw_loop {
30-
struct spa_system *system; /**< system utils */
31-
struct spa_loop *loop; /**< wrapped loop */
32-
struct spa_loop_control *control; /**< loop control */
33-
struct spa_loop_utils *utils; /**< loop utils */
34-
const char *name;
30+
struct spa_system *system; /**< system utils */
31+
struct spa_loop *loop; /**< wrapped loop */
32+
struct spa_loop_control *control; /**< loop control */
33+
struct spa_loop_utils *utils; /**< loop utils */
34+
const char *name;
3535
};
3636

3737
#ifndef PW_API_LOOP_IMPL
@@ -48,100 +48,100 @@ int pw_loop_set_name(struct pw_loop *loop, const char *name);
4848

4949
PW_API_LOOP_IMPL int pw_loop_add_source(struct pw_loop *object, struct spa_source *source)
5050
{
51-
return spa_loop_add_source(object->loop, source);
51+
return spa_loop_add_source(object->loop, source);
5252
}
5353
PW_API_LOOP_IMPL int pw_loop_update_source(struct pw_loop *object, struct spa_source *source)
5454
{
55-
return spa_loop_update_source(object->loop, source);
55+
return spa_loop_update_source(object->loop, source);
5656
}
5757
PW_API_LOOP_IMPL int pw_loop_remove_source(struct pw_loop *object, struct spa_source *source)
5858
{
59-
return spa_loop_remove_source(object->loop, source);
59+
return spa_loop_remove_source(object->loop, source);
6060
}
6161
PW_API_LOOP_IMPL int pw_loop_invoke(struct pw_loop *object,
6262
spa_invoke_func_t func, uint32_t seq, const void *data,
6363
size_t size, bool block, void *user_data)
6464
{
65-
return spa_loop_invoke(object->loop, func, seq, data, size, block, user_data);
65+
return spa_loop_invoke(object->loop, func, seq, data, size, block, user_data);
6666
}
6767

6868
PW_API_LOOP_IMPL int pw_loop_get_fd(struct pw_loop *object)
6969
{
70-
return spa_loop_control_get_fd(object->control);
70+
return spa_loop_control_get_fd(object->control);
7171
}
7272
PW_API_LOOP_IMPL void pw_loop_add_hook(struct pw_loop *object,
7373
struct spa_hook *hook, const struct spa_loop_control_hooks *hooks,
7474
void *data)
7575
{
76-
spa_loop_control_add_hook(object->control, hook, hooks, data);
76+
spa_loop_control_add_hook(object->control, hook, hooks, data);
7777
}
7878
PW_API_LOOP_IMPL void pw_loop_enter(struct pw_loop *object)
7979
{
80-
spa_loop_control_enter(object->control);
80+
spa_loop_control_enter(object->control);
8181
}
8282
PW_API_LOOP_IMPL void pw_loop_leave(struct pw_loop *object)
8383
{
84-
spa_loop_control_leave(object->control);
84+
spa_loop_control_leave(object->control);
8585
}
8686
PW_API_LOOP_IMPL int pw_loop_iterate(struct pw_loop *object,
8787
int timeout)
8888
{
89-
return spa_loop_control_iterate_fast(object->control, timeout);
89+
return spa_loop_control_iterate_fast(object->control, timeout);
9090
}
9191

9292
PW_API_LOOP_IMPL struct spa_source *
9393
pw_loop_add_io(struct pw_loop *object, int fd, uint32_t mask,
9494
bool close, spa_source_io_func_t func, void *data)
9595
{
96-
return spa_loop_utils_add_io(object->utils, fd, mask, close, func, data);
96+
return spa_loop_utils_add_io(object->utils, fd, mask, close, func, data);
9797
}
9898
PW_API_LOOP_IMPL int pw_loop_update_io(struct pw_loop *object,
9999
struct spa_source *source, uint32_t mask)
100100
{
101-
return spa_loop_utils_update_io(object->utils, source, mask);
101+
return spa_loop_utils_update_io(object->utils, source, mask);
102102
}
103103
PW_API_LOOP_IMPL struct spa_source *
104104
pw_loop_add_idle(struct pw_loop *object, bool enabled,
105105
spa_source_idle_func_t func, void *data)
106106
{
107-
return spa_loop_utils_add_idle(object->utils, enabled, func, data);
107+
return spa_loop_utils_add_idle(object->utils, enabled, func, data);
108108
}
109109
PW_API_LOOP_IMPL int pw_loop_enable_idle(struct pw_loop *object,
110110
struct spa_source *source, bool enabled)
111111
{
112-
return spa_loop_utils_enable_idle(object->utils, source, enabled);
112+
return spa_loop_utils_enable_idle(object->utils, source, enabled);
113113
}
114114
PW_API_LOOP_IMPL struct spa_source *
115115
pw_loop_add_event(struct pw_loop *object, spa_source_event_func_t func, void *data)
116116
{
117-
return spa_loop_utils_add_event(object->utils, func, data);
117+
return spa_loop_utils_add_event(object->utils, func, data);
118118
}
119119
PW_API_LOOP_IMPL int pw_loop_signal_event(struct pw_loop *object,
120120
struct spa_source *source)
121121
{
122-
return spa_loop_utils_signal_event(object->utils, source);
122+
return spa_loop_utils_signal_event(object->utils, source);
123123
}
124124
PW_API_LOOP_IMPL struct spa_source *
125125
pw_loop_add_timer(struct pw_loop *object, spa_source_timer_func_t func, void *data)
126126
{
127-
return spa_loop_utils_add_timer(object->utils, func, data);
127+
return spa_loop_utils_add_timer(object->utils, func, data);
128128
}
129129
PW_API_LOOP_IMPL int pw_loop_update_timer(struct pw_loop *object,
130130
struct spa_source *source, struct timespec *value,
131131
struct timespec *interval, bool absolute)
132132
{
133-
return spa_loop_utils_update_timer(object->utils, source, value, interval, absolute);
133+
return spa_loop_utils_update_timer(object->utils, source, value, interval, absolute);
134134
}
135135
PW_API_LOOP_IMPL struct spa_source *
136136
pw_loop_add_signal(struct pw_loop *object, int signal_number,
137137
spa_source_signal_func_t func, void *data)
138138
{
139-
return spa_loop_utils_add_signal(object->utils, signal_number, func, data);
139+
return spa_loop_utils_add_signal(object->utils, signal_number, func, data);
140140
}
141141
PW_API_LOOP_IMPL void pw_loop_destroy_source(struct pw_loop *object,
142142
struct spa_source *source)
143143
{
144-
return spa_loop_utils_destroy_source(object->utils, source);
144+
return spa_loop_utils_destroy_source(object->utils, source);
145145
}
146146

147147
/**

src/java.desktop/unix/native/libpipewire/include/pipewire/port.h

+94-94
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ extern "C" {
2727
* \{
2828
*/
2929

30-
#define PW_TYPE_INTERFACE_Port PW_TYPE_INFO_INTERFACE_BASE "Port"
30+
#define PW_TYPE_INTERFACE_Port PW_TYPE_INFO_INTERFACE_BASE "Port"
3131

32-
#define PW_PORT_PERM_MASK PW_PERM_R|PW_PERM_X|PW_PERM_M
32+
#define PW_PORT_PERM_MASK PW_PERM_R|PW_PERM_X|PW_PERM_M
3333

34-
#define PW_VERSION_PORT 3
34+
#define PW_VERSION_PORT 3
3535
struct pw_port;
3636

3737
#ifndef PW_API_PORT_IMPL
@@ -47,132 +47,132 @@ struct pw_port;
4747
const char * pw_direction_as_string(enum pw_direction direction);
4848

4949
struct pw_port_info {
50-
uint32_t id; /**< id of the global */
51-
enum pw_direction direction; /**< port direction */
52-
#define PW_PORT_CHANGE_MASK_PROPS (1 << 0)
53-
#define PW_PORT_CHANGE_MASK_PARAMS (1 << 1)
54-
#define PW_PORT_CHANGE_MASK_ALL ((1 << 2)-1)
55-
uint64_t change_mask; /**< bitfield of changed fields since last call */
56-
struct spa_dict *props; /**< the properties of the port */
57-
struct spa_param_info *params; /**< parameters */
58-
uint32_t n_params; /**< number of items in \a params */
50+
uint32_t id; /**< id of the global */
51+
enum pw_direction direction; /**< port direction */
52+
#define PW_PORT_CHANGE_MASK_PROPS (1 << 0)
53+
#define PW_PORT_CHANGE_MASK_PARAMS (1 << 1)
54+
#define PW_PORT_CHANGE_MASK_ALL ((1 << 2)-1)
55+
uint64_t change_mask; /**< bitfield of changed fields since last call */
56+
struct spa_dict *props; /**< the properties of the port */
57+
struct spa_param_info *params; /**< parameters */
58+
uint32_t n_params; /**< number of items in \a params */
5959
};
6060

6161
struct pw_port_info *
6262
pw_port_info_update(struct pw_port_info *info,
63-
const struct pw_port_info *update);
63+
const struct pw_port_info *update);
6464

6565
struct pw_port_info *
6666
pw_port_info_merge(struct pw_port_info *info,
67-
const struct pw_port_info *update, bool reset);
67+
const struct pw_port_info *update, bool reset);
6868

6969
void
7070
pw_port_info_free(struct pw_port_info *info);
7171

72-
#define PW_PORT_EVENT_INFO 0
73-
#define PW_PORT_EVENT_PARAM 1
74-
#define PW_PORT_EVENT_NUM 2
72+
#define PW_PORT_EVENT_INFO 0
73+
#define PW_PORT_EVENT_PARAM 1
74+
#define PW_PORT_EVENT_NUM 2
7575

7676
/** Port events */
7777
struct pw_port_events {
78-
#define PW_VERSION_PORT_EVENTS 0
79-
uint32_t version;
80-
/**
81-
* Notify port info
82-
*
83-
* \param info info about the port
84-
*/
85-
void (*info) (void *data, const struct pw_port_info *info);
86-
/**
87-
* Notify a port param
88-
*
89-
* Event emitted as a result of the enum_params method.
90-
*
91-
* \param seq the sequence number of the request
92-
* \param id the param id
93-
* \param index the param index
94-
* \param next the param index of the next param
95-
* \param param the parameter
96-
*/
97-
void (*param) (void *data, int seq,
98-
uint32_t id, uint32_t index, uint32_t next,
99-
const struct spa_pod *param);
78+
#define PW_VERSION_PORT_EVENTS 0
79+
uint32_t version;
80+
/**
81+
* Notify port info
82+
*
83+
* \param info info about the port
84+
*/
85+
void (*info) (void *data, const struct pw_port_info *info);
86+
/**
87+
* Notify a port param
88+
*
89+
* Event emitted as a result of the enum_params method.
90+
*
91+
* \param seq the sequence number of the request
92+
* \param id the param id
93+
* \param index the param index
94+
* \param next the param index of the next param
95+
* \param param the parameter
96+
*/
97+
void (*param) (void *data, int seq,
98+
uint32_t id, uint32_t index, uint32_t next,
99+
const struct spa_pod *param);
100100
};
101101

102-
#define PW_PORT_METHOD_ADD_LISTENER 0
103-
#define PW_PORT_METHOD_SUBSCRIBE_PARAMS 1
104-
#define PW_PORT_METHOD_ENUM_PARAMS 2
105-
#define PW_PORT_METHOD_NUM 3
102+
#define PW_PORT_METHOD_ADD_LISTENER 0
103+
#define PW_PORT_METHOD_SUBSCRIBE_PARAMS 1
104+
#define PW_PORT_METHOD_ENUM_PARAMS 2
105+
#define PW_PORT_METHOD_NUM 3
106106

107107
/** Port methods */
108108
struct pw_port_methods {
109-
#define PW_VERSION_PORT_METHODS 0
110-
uint32_t version;
111-
112-
int (*add_listener) (void *object,
113-
struct spa_hook *listener,
114-
const struct pw_port_events *events,
115-
void *data);
116-
/**
117-
* Subscribe to parameter changes
118-
*
119-
* Automatically emit param events for the given ids when
120-
* they are changed.
121-
*
122-
* \param ids an array of param ids
123-
* \param n_ids the number of ids in \a ids
124-
*
125-
* This requires X permissions on the port.
126-
*/
127-
int (*subscribe_params) (void *object, uint32_t *ids, uint32_t n_ids);
128-
129-
/**
130-
* Enumerate port parameters
131-
*
132-
* Start enumeration of port parameters. For each param, a
133-
* param event will be emitted.
134-
*
135-
* \param seq a sequence number returned in the reply
136-
* \param id the parameter id to enumerate
137-
* \param start the start index or 0 for the first param
138-
* \param num the maximum number of params to retrieve
139-
* \param filter a param filter or NULL
140-
*
141-
* This requires X permissions on the port.
142-
*/
143-
int (*enum_params) (void *object, int seq,
144-
uint32_t id, uint32_t start, uint32_t num,
145-
const struct spa_pod *filter);
109+
#define PW_VERSION_PORT_METHODS 0
110+
uint32_t version;
111+
112+
int (*add_listener) (void *object,
113+
struct spa_hook *listener,
114+
const struct pw_port_events *events,
115+
void *data);
116+
/**
117+
* Subscribe to parameter changes
118+
*
119+
* Automatically emit param events for the given ids when
120+
* they are changed.
121+
*
122+
* \param ids an array of param ids
123+
* \param n_ids the number of ids in \a ids
124+
*
125+
* This requires X permissions on the port.
126+
*/
127+
int (*subscribe_params) (void *object, uint32_t *ids, uint32_t n_ids);
128+
129+
/**
130+
* Enumerate port parameters
131+
*
132+
* Start enumeration of port parameters. For each param, a
133+
* param event will be emitted.
134+
*
135+
* \param seq a sequence number returned in the reply
136+
* \param id the parameter id to enumerate
137+
* \param start the start index or 0 for the first param
138+
* \param num the maximum number of params to retrieve
139+
* \param filter a param filter or NULL
140+
*
141+
* This requires X permissions on the port.
142+
*/
143+
int (*enum_params) (void *object, int seq,
144+
uint32_t id, uint32_t start, uint32_t num,
145+
const struct spa_pod *filter);
146146
};
147147

148148
/** \copydoc pw_port_methods.add_listener
149149
* \sa pw_port_methods.add_listener */
150150
PW_API_PORT_IMPL int pw_port_add_listener(struct pw_port *object,
151-
struct spa_hook *listener,
152-
const struct pw_port_events *events,
153-
void *data)
151+
struct spa_hook *listener,
152+
const struct pw_port_events *events,
153+
void *data)
154154
{
155-
return spa_api_method_r(int, -ENOTSUP,
156-
pw_port, (struct spa_interface*)object, add_listener, 0,
157-
listener, events, data);
155+
return spa_api_method_r(int, -ENOTSUP,
156+
pw_port, (struct spa_interface*)object, add_listener, 0,
157+
listener, events, data);
158158
}
159159
/** \copydoc pw_port_methods.subscribe_params
160160
* \sa pw_port_methods.subscribe_params */
161161
PW_API_PORT_IMPL int pw_port_subscribe_params(struct pw_port *object, uint32_t *ids, uint32_t n_ids)
162162
{
163-
return spa_api_method_r(int, -ENOTSUP,
164-
pw_port, (struct spa_interface*)object, subscribe_params, 0,
165-
ids, n_ids);
163+
return spa_api_method_r(int, -ENOTSUP,
164+
pw_port, (struct spa_interface*)object, subscribe_params, 0,
165+
ids, n_ids);
166166
}
167167
/** \copydoc pw_port_methods.enum_params
168168
* \sa pw_port_methods.enum_params */
169169
PW_API_PORT_IMPL int pw_port_enum_params(struct pw_port *object,
170-
int seq, uint32_t id, uint32_t start, uint32_t num,
171-
const struct spa_pod *filter)
170+
int seq, uint32_t id, uint32_t start, uint32_t num,
171+
const struct spa_pod *filter)
172172
{
173-
return spa_api_method_r(int, -ENOTSUP,
174-
pw_port, (struct spa_interface*)object, enum_params, 0,
175-
seq, id, start, num, filter);
173+
return spa_api_method_r(int, -ENOTSUP,
174+
pw_port, (struct spa_interface*)object, enum_params, 0,
175+
seq, id, start, num, filter);
176176
}
177177

178178
/**

0 commit comments

Comments
 (0)