summaryrefslogtreecommitdiff
path: root/mesh/util.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2018-07-14 12:58:57 -0700
committerBrian Gix <brian.gix@intel.com>2018-08-20 12:48:21 -0700
commit6fbc4c83e13470d669e16ea05cc1def297e71665 (patch)
tree2751482464af5aa95f8996d576f84e2ff7ed4354 /mesh/util.h
parentef60219269c31f53ec438cb045956b75204b250d (diff)
downloadbluez-6fbc4c83e13470d669e16ea05cc1def297e71665.tar.gz
mesh: Header files for mesh access layer and utilities
This adds initial implementation of Mesh access layer functionality
Diffstat (limited to 'mesh/util.h')
-rw-r--r--mesh/util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/mesh/util.h b/mesh/util.h
new file mode 100644
index 000000000..61110104a
--- /dev/null
+++ b/mesh/util.h
@@ -0,0 +1,24 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2018 Intel Corporation. All rights reserved.
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ *
+ */
+
+uint32_t get_timestamp_secs(void);
+bool str2hex(const char *str, uint16_t in_len, uint8_t *out,
+ uint16_t out_len);
+size_t hex2str(uint8_t *in, size_t in_len, char *out, size_t out_len);