hog-lib.h 793 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2014 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. struct bt_hog;
  11. struct bt_hog *bt_hog_new_default(const char *name, uint16_t vendor,
  12. uint16_t product, uint16_t version,
  13. struct gatt_db *db);
  14. struct bt_hog *bt_hog_new(int fd, const char *name, uint16_t vendor,
  15. uint16_t product, uint16_t version,
  16. struct gatt_db *db);
  17. struct bt_hog *bt_hog_ref(struct bt_hog *hog);
  18. void bt_hog_unref(struct bt_hog *hog);
  19. bool bt_hog_attach(struct bt_hog *hog, void *gatt);
  20. void bt_hog_detach(struct bt_hog *hog);
  21. int bt_hog_set_control_point(struct bt_hog *hog, bool suspend);
  22. int bt_hog_send_report(struct bt_hog *hog, void *data, size_t size, int type);