mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 06:35:57 +01:00
screencast: bring function names in line with the wlroots guidelines
- no functional changes
This commit is contained in:
parent
b20b9d76d7
commit
dbe71a66c7
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
|||
¶m, 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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue