screencast: bring function names in line with the wlroots guidelines

- no functional changes
This commit is contained in:
Tobias Jakobi 2021-05-09 13:42:24 +02:00 committed by Simon Ser
parent b20b9d76d7
commit dbe71a66c7
3 changed files with 6 additions and 6 deletions

View file

@ -6,8 +6,8 @@
#define XDPW_PWR_BUFFERS 1
#define XDPW_PWR_ALIGN 16
void xdpw_pwr_stream_init(struct xdpw_screencast_instance *cast);
int xdpw_pwr_core_connect(struct xdpw_state *state);
void xdpw_pwr_stream_create(struct xdpw_screencast_instance *cast);
void xdpw_pwr_stream_destroy(struct xdpw_screencast_instance *cast);
int xdpw_pwr_context_create(struct xdpw_state *state);
#endif

View file

@ -136,7 +136,7 @@ static const struct pw_stream_events pwr_stream_events = {
.param_changed = pwr_handle_stream_param_changed,
};
void xdpw_pwr_stream_init(struct xdpw_screencast_instance *cast) {
void xdpw_pwr_stream_create(struct xdpw_screencast_instance *cast) {
struct xdpw_screencast_context *ctx = cast->ctx;
struct xdpw_state *state = ctx->state;
@ -206,7 +206,7 @@ void xdpw_pwr_stream_init(struct xdpw_screencast_instance *cast) {
&param, 1);
}
int xdpw_pwr_core_connect(struct xdpw_state *state) {
int xdpw_pwr_context_create(struct xdpw_state *state) {
struct xdpw_screencast_context *ctx = &state->screencast;
logprint(DEBUG, "pipewire: establishing connection to core");

View file

@ -134,7 +134,7 @@ static int start_screencast(struct xdpw_screencast_instance *cast) {
wl_display_dispatch(cast->ctx->state->wl_display);
wl_display_roundtrip(cast->ctx->state->wl_display);
xdpw_pwr_stream_init(cast);
xdpw_pwr_stream_create(cast);
cast->initialized = true;
return 0;
@ -472,7 +472,7 @@ int xdpw_screencast_init(struct xdpw_state *state) {
state->screencast.state = state;
int err;
err = xdpw_pwr_core_connect(state);
err = xdpw_pwr_context_create(state);
if (err) {
goto end;
}