Blame profiles/input/hog-lib.h

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
struct bt_hog;
Packit 34410b
Packit 34410b
struct bt_hog *bt_hog_new_default(const char *name, uint16_t vendor,
Packit 34410b
					uint16_t product, uint16_t version,
Packit 34410b
					struct gatt_db *db);
Packit 34410b
Packit 34410b
struct bt_hog *bt_hog_new(int fd, const char *name, uint16_t vendor,
Packit 34410b
					uint16_t product, uint16_t version,
Packit 34410b
					struct gatt_db *db);
Packit 34410b
Packit 34410b
struct bt_hog *bt_hog_ref(struct bt_hog *hog);
Packit 34410b
void bt_hog_unref(struct bt_hog *hog);
Packit 34410b
Packit 34410b
bool bt_hog_attach(struct bt_hog *hog, void *gatt);
Packit 34410b
void bt_hog_detach(struct bt_hog *hog);
Packit 34410b
Packit 34410b
int bt_hog_set_control_point(struct bt_hog *hog, bool suspend);
Packit 34410b
int bt_hog_send_report(struct bt_hog *hog, void *data, size_t size, int type);