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__
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);