hdp_util.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2010 GSyC/LibreSoft, Universidad Rey Juan Carlos.
  7. *
  8. */
  9. #ifndef __HDP_UTIL_H__
  10. #define __HDP_UTIL_H__
  11. typedef void (*hdp_continue_mdep_f)(uint8_t mdep, gpointer user_data,
  12. GError *err);
  13. typedef void (*hdp_continue_dcpsm_f)(uint16_t dcpsm, gpointer user_data,
  14. GError *err);
  15. typedef void (*hdp_continue_proc_f)(gpointer user_data, GError *err);
  16. struct hdp_application *hdp_get_app_config(DBusMessageIter *iter, GError **err);
  17. gboolean hdp_update_sdp_record(struct hdp_adapter *adapter, GSList *app_list);
  18. gboolean hdp_get_mdep(struct hdp_device *device, struct hdp_application *app,
  19. hdp_continue_mdep_f func,
  20. gpointer data, GDestroyNotify destroy,
  21. GError **err);
  22. gboolean hdp_establish_mcl(struct hdp_device *device,
  23. hdp_continue_proc_f func,
  24. gpointer data,
  25. GDestroyNotify destroy,
  26. GError **err);
  27. gboolean hdp_get_dcpsm(struct hdp_device *device, hdp_continue_dcpsm_f func,
  28. gpointer data,
  29. GDestroyNotify destroy,
  30. GError **err);
  31. struct hdp_application *hdp_application_ref(struct hdp_application *app);
  32. void hdp_application_unref(struct hdp_application *app);
  33. struct hdp_device *health_device_ref(struct hdp_device *hdp_dev);
  34. void health_device_unref(struct hdp_device *hdp_dev);
  35. #endif /* __HDP_UTIL_H__ */