|
Packit |
34410b |
/*
|
|
Packit |
34410b |
*
|
|
Packit |
34410b |
* BlueZ - Bluetooth protocol stack for Linux
|
|
Packit |
34410b |
*
|
|
Packit |
34410b |
* Copyright (C) 2014 Intel Corporation. All rights reserved.
|
|
Packit |
34410b |
*
|
|
Packit |
34410b |
*
|
|
Packit |
34410b |
* This library is free software; you can redistribute it and/or
|
|
Packit |
34410b |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
34410b |
* License as published by the Free Software Foundation; either
|
|
Packit |
34410b |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
34410b |
*
|
|
Packit |
34410b |
* This library 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 GNU
|
|
Packit |
34410b |
* Lesser General Public License for more details.
|
|
Packit |
34410b |
*
|
|
Packit |
34410b |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
34410b |
* License along with this library; 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 |
#include <stdbool.h>
|
|
Packit |
34410b |
#include <stdint.h>
|
|
Packit |
34410b |
|
|
Packit |
34410b |
#include "profiles/input/uhid_copy.h"
|
|
Packit |
34410b |
|
|
Packit |
34410b |
struct bt_uhid;
|
|
Packit |
34410b |
|
|
Packit |
34410b |
struct bt_uhid *bt_uhid_new_default(void);
|
|
Packit |
34410b |
struct bt_uhid *bt_uhid_new(int fd);
|
|
Packit |
34410b |
|
|
Packit |
34410b |
struct bt_uhid *bt_uhid_ref(struct bt_uhid *uhid);
|
|
Packit |
34410b |
void bt_uhid_unref(struct bt_uhid *uhid);
|
|
Packit |
34410b |
|
|
Packit |
34410b |
bool bt_uhid_set_close_on_unref(struct bt_uhid *uhid, bool do_close);
|
|
Packit |
34410b |
|
|
Packit |
34410b |
typedef void (*bt_uhid_callback_t)(struct uhid_event *ev, void *user_data);
|
|
Packit |
34410b |
unsigned int bt_uhid_register(struct bt_uhid *uhid, uint32_t event,
|
|
Packit |
34410b |
bt_uhid_callback_t func, void *user_data);
|
|
Packit |
34410b |
bool bt_uhid_unregister(struct bt_uhid *uhid, unsigned int id);
|
|
Packit |
34410b |
|
|
Packit |
34410b |
int bt_uhid_send(struct bt_uhid *uhid, const struct uhid_event *ev);
|