librekontrol-core.h 1.37 KB
Newer Older
brandon's avatar
brandon committed
1
/* 
2
 * librekontrol-core.h --- 
brandon's avatar
brandon committed
3
 * 
4
 * Copyright (C) 2016, 2019 Brandon Invergo <brandon@invergo.net>
brandon's avatar
brandon committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * 
 * Author: Brandon Invergo <brandon@invergo.net>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

22 23
#ifndef LIBREKONTROL_CORE_H
#define LIBREKONTROL_CORE_H
brandon's avatar
brandon committed
24

brandon's avatar
brandon committed
25
#include <config.h>
brandon's avatar
brandon committed
26
#include <libguile.h>
brandon's avatar
brandon committed
27
#include <libevdev/libevdev.h>
brandon's avatar
brandon committed
28
#include <libintl.h>
29
#include "lk-device.h"
brandon's avatar
brandon committed
30

31
extern lk_device_t **lk_device_list;
32
extern size_t lk_num_devices;
33
extern lk_device_ctl_t **lk_ctl_list;
34 35
extern size_t lk_num_ctls;

brandon's avatar
brandon committed
36
void *init_lk_scm (void *data);
Brandon Invergo's avatar
Brandon Invergo committed
37 38 39 40
void handle_event (const char *device_id, int type, int code, int value);
void run_idle_hook (const char *device_id);
unsigned int get_idle_wait (const char *device_id);
void run_exit_hook (const char *device_id);
41
void lk_scm_cleanup (void);
brandon's avatar
brandon committed
42 43

#endif