device.h 982 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
  7. *
  8. *
  9. */
  10. #define L2CAP_PSM_HIDP_CTRL 0x11
  11. #define L2CAP_PSM_HIDP_INTR 0x13
  12. struct input_device;
  13. struct input_conn;
  14. void input_set_idle_timeout(int timeout);
  15. void input_enable_userspace_hid(bool state);
  16. void input_set_classic_bonded_only(bool state);
  17. bool input_get_classic_bonded_only(void);
  18. void input_set_auto_sec(bool state);
  19. int input_device_register(struct btd_service *service);
  20. void input_device_unregister(struct btd_service *service);
  21. bool input_device_exists(const bdaddr_t *src, const bdaddr_t *dst);
  22. int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm,
  23. GIOChannel *io);
  24. int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
  25. int input_device_connect(struct btd_service *service);
  26. int input_device_disconnect(struct btd_service *service);