util.h 540 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  2. /*
  3. *
  4. * BlueZ - Bluetooth protocol stack for Linux
  5. *
  6. * Copyright (C) 2018 Intel Corporation. All rights reserved.
  7. *
  8. *
  9. */
  10. uint32_t get_timestamp_secs(void);
  11. bool str2hex(const char *str, uint16_t in_len, uint8_t *out,
  12. uint16_t out_len);
  13. size_t hex2str(uint8_t *in, size_t in_len, char *out, size_t out_len);
  14. void print_packet(const char *label, const void *data, uint16_t size);
  15. int create_dir(const char *dir_name);
  16. void del_path(const char *path);
  17. void enable_debug(void);