1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
*
*
*/
#define L2CAP_PSM_HIDP_CTRL 0x11
#define L2CAP_PSM_HIDP_INTR 0x13
typedef enum {
UHID_DISABLED = 0,
UHID_ENABLED,
UHID_PERSIST
} uhid_state_t;
struct input_device;
struct input_conn;
void input_set_idle_timeout(int timeout);
void input_set_userspace_hid(char *state);
void input_set_classic_bonded_only(bool state);
bool input_get_classic_bonded_only(void);
int input_device_register(struct btd_service *service);
void input_device_unregister(struct btd_service *service);
bool input_device_exists(const bdaddr_t *src, const bdaddr_t *dst);
int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm,
GIOChannel *io);
int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
int input_device_connect(struct btd_service *service);
int input_device_disconnect(struct btd_service *service);
|