Blame profiles/input/device.h

Packit 34410b
/*
Packit 34410b
 *
Packit 34410b
 *  BlueZ - Bluetooth protocol stack for Linux
Packit 34410b
 *
Packit 34410b
 *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
Packit 34410b
 *
Packit 34410b
 *
Packit 34410b
 *  This program is free software; you can redistribute it and/or modify
Packit 34410b
 *  it under the terms of the GNU General Public License as published by
Packit 34410b
 *  the Free Software Foundation; either version 2 of the License, or
Packit 34410b
 *  (at your option) any later version.
Packit 34410b
 *
Packit 34410b
 *  This program is distributed in the hope that it will be useful,
Packit 34410b
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 34410b
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 34410b
 *  GNU General Public License for more details.
Packit 34410b
 *
Packit 34410b
 *  You should have received a copy of the GNU General Public License
Packit 34410b
 *  along with this program; if not, write to the Free Software
Packit 34410b
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 34410b
 *
Packit 34410b
 */
Packit 34410b
Packit 34410b
#define L2CAP_PSM_HIDP_CTRL	0x11
Packit 34410b
#define L2CAP_PSM_HIDP_INTR	0x13
Packit 34410b
Packit 34410b
struct input_device;
Packit 34410b
struct input_conn;
Packit 34410b
Packit 34410b
void input_set_idle_timeout(int timeout);
Packit 34410b
void input_enable_userspace_hid(bool state);
Packit 34410b
Packit 34410b
int input_device_register(struct btd_service *service);
Packit 34410b
void input_device_unregister(struct btd_service *service);
Packit 34410b
Packit 34410b
bool input_device_exists(const bdaddr_t *src, const bdaddr_t *dst);
Packit 34410b
int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm,
Packit 34410b
							GIOChannel *io);
Packit 34410b
int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
Packit 34410b
Packit 34410b
int input_device_connect(struct btd_service *service);
Packit 34410b
int input_device_disconnect(struct btd_service *service);