2006-11-12 07:14:14 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* BlueZ - Bluetooth protocol stack for Linux
|
|
|
|
*
|
2007-01-29 02:06:45 +08:00
|
|
|
* Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org>
|
2006-11-12 07:14:14 +08:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* 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 2 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, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
2007-05-29 11:58:10 +08:00
|
|
|
|
|
|
|
#define L2CAP_PSM_HIDP_CTRL 0x11
|
|
|
|
#define L2CAP_PSM_HIDP_INTR 0x13
|
2006-11-12 07:14:14 +08:00
|
|
|
|
2007-03-19 22:58:44 +08:00
|
|
|
int input_device_register(DBusConnection *conn, bdaddr_t *src, bdaddr_t *dst,
|
2007-05-29 11:58:10 +08:00
|
|
|
struct hidp_connadd_req *hidp, const char **ppath);
|
2007-03-19 22:58:44 +08:00
|
|
|
int fake_input_register(DBusConnection *conn, bdaddr_t *src,
|
2007-03-21 22:40:19 +08:00
|
|
|
bdaddr_t *dst, uint8_t ch, const char **ppath);
|
2007-03-19 22:58:44 +08:00
|
|
|
int input_device_unregister(DBusConnection *conn, const char *path);
|
2007-04-12 17:59:15 +08:00
|
|
|
|
2007-06-23 03:14:38 +08:00
|
|
|
gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst);
|
2007-06-22 06:06:33 +08:00
|
|
|
|
|
|
|
int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk);
|
|
|
|
|
|
|
|
int input_device_close_channels(bdaddr_t *src, bdaddr_t *dst);
|
|
|
|
|
|
|
|
int input_device_connadd(bdaddr_t *src, bdaddr_t *dst);
|
|
|
|
|
2007-04-17 21:22:58 +08:00
|
|
|
int l2cap_connect(bdaddr_t *src, bdaddr_t *dst,
|
2007-05-29 11:58:10 +08:00
|
|
|
unsigned short psm, GIOFunc cb, void *data);
|