wlmaker
Loading...
Searching...
No Matches
Classes | Macros | Functions
lock_mgr.c File Reference
#include "lock_mgr.h"
#include <libbase/libbase.h>
#include <wlr/types/wlr_session_lock_v1.h>
Include dependency graph for lock_mgr.c:

Classes

struct  _wlmaker_lock_mgr_t
 

Functions

static void _wlmaker_lock_mgr_handle_new_lock (struct wl_listener *listener_ptr, void *data_ptr)
 
static void _wlmaker_lock_mgr_handle_destroy (struct wl_listener *listener_ptr, void *data_ptr)
 
wlmaker_lock_mgr_twlmaker_lock_mgr_create (wlmaker_server_t *server_ptr)
 
void wlmaker_lock_mgr_destroy (wlmaker_lock_mgr_t *lock_mgr_ptr)
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ _wlmaker_lock_mgr_handle_destroy()

void _wlmaker_lock_mgr_handle_destroy ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Handler for the destroy signal of wlr_session_lock_manager_v1: Cleans up associated resources.

Parameters
listener_ptr
data_ptr

◆ _wlmaker_lock_mgr_handle_new_lock()

void _wlmaker_lock_mgr_handle_new_lock ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Handler for the new_lock signal of wlr_session_lock_manager_v1: creates the corresponding lock.

Parameters
listener_ptr
data_ptr

◆ wlmaker_lock_mgr_create()

wlmaker_lock_mgr_t * wlmaker_lock_mgr_create ( wlmaker_server_t * server_ptr)

Creates the session lock manager.

Parameters
server_ptr
Returns
The session lock manager handler or NULL on error.

◆ wlmaker_lock_mgr_destroy()

void wlmaker_lock_mgr_destroy ( wlmaker_lock_mgr_t * lock_mgr_ptr)

Destroys the session lock manager.

Parameters
lock_mgr_ptr