dis.h 697 B

123456789101112131415161718192021222324252627
  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_dis;
  11. struct bt_dis *bt_dis_new(struct gatt_db *db);
  12. struct bt_dis *bt_dis_new_primary(void *primary);
  13. struct bt_dis *bt_dis_ref(struct bt_dis *dis);
  14. void bt_dis_unref(struct bt_dis *dis);
  15. bool bt_dis_attach(struct bt_dis *dis, void *gatt);
  16. void bt_dis_detach(struct bt_dis *dis);
  17. typedef void (*bt_dis_notify) (uint8_t source, uint16_t vendor,
  18. uint16_t product, uint16_t version,
  19. void *user_data);
  20. bool bt_dis_set_notification(struct bt_dis *dis, bt_dis_notify func,
  21. void *user_data);