NEWS.adoc: [Post-factum] Update for jackdbus 2.23.0 (2023-10-26)
[jackdbus.git] / dbus / device_reservation.h
blob1b292d71d8ac55eb4e8e792f516fee0a74b5212b
1 /*
2 Copyright (C) 2009 Grame
3 Copyright (C) 2024 Nedko Arnaudov
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __device_reservation__
21 #define __device_reservation__
23 #include <stdbool.h>
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 int device_reservation_init(void);
30 int device_reservation_finish(void);
32 bool device_reservation_acquire(const char * device_name);
33 void device_reservation_release(const char * device_name);
34 void device_reservation_loop(void);
36 #ifdef __cplusplus
37 } /* extern "C" */
38 #endif
40 #endif