util.h 632 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2017, 2019 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. #include <stdbool.h>
  11. struct mesh_publication;
  12. void set_menu_prompt(const char *name, const char *id);
  13. void print_byte_array(const char *prefix, const void *ptr, int len);
  14. uint16_t mesh_opcode_set(uint32_t opcode, uint8_t *buf);
  15. bool mesh_opcode_get(const uint8_t *buf, uint16_t sz, uint32_t *opcode, int *n);
  16. const char *mesh_status_str(uint8_t status);
  17. void swap_u256_bytes(uint8_t *u256);
  18. const char *sig_model_string(uint16_t sig_model_id);