prov-db.h 1.2 KB

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2017 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. bool prov_db_show(const char *filename);
  11. bool prov_db_read(const char *filename);
  12. bool prov_db_read_local_node(const char *filename, bool provisioner);
  13. bool prov_db_add_new_node(struct mesh_node *node);
  14. bool prov_db_add_node_composition(struct mesh_node *node, uint8_t *data,
  15. uint16_t len);
  16. bool prov_db_node_keys(struct mesh_node *node, GList *idxs, const char *desc);
  17. bool prov_db_add_binding(struct mesh_node *node, uint8_t ele_idx,
  18. uint32_t model_id, uint16_t app_idx);
  19. bool prov_db_add_subscription(struct mesh_node *node, uint8_t ele_idx,
  20. uint32_t model_id, uint16_t addr);
  21. bool prov_db_node_set_ttl(struct mesh_node *node, uint8_t ttl);
  22. bool prov_db_node_set_iv_seq(struct mesh_node *node, uint32_t iv, uint32_t seq);
  23. bool prov_db_local_set_iv_index(uint32_t iv_index, bool update, bool prov);
  24. bool prov_db_local_set_seq_num(uint32_t seq_num);
  25. bool prov_db_node_set_model_pub(struct mesh_node *node, uint8_t ele_idx,
  26. uint32_t model_id,
  27. struct mesh_publication *pub);
  28. void prov_db_print_node_composition(struct mesh_node *node);