summaryrefslogtreecommitdiffstats
path: root/include/bluetooth.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bluetooth.h')
-rw-r--r--include/bluetooth.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/bluetooth.h b/include/bluetooth.h
index a005c1c7..d7747996 100644
--- a/include/bluetooth.h
+++ b/include/bluetooth.h
@@ -36,9 +36,9 @@ extern "C" {
#endif
#include <stdint.h>
+#include <string.h>
#include <endian.h>
#include <byteswap.h>
-#include <string.h>
#ifndef AF_BLUETOOTH
#define AF_BLUETOOTH 31
@@ -129,6 +129,11 @@ char *batostr(const bdaddr_t *ba);
int ba2str(const bdaddr_t *ba, char *str);
int str2ba(const char *str, bdaddr_t *ba);
+int baprintf(const char *format, ...);
+int bafprintf(FILE *stream, const char *format, ...);
+int basprintf(char *str, const char *format, ...);
+int basnprintf(char *str, size_t size, const char *format, ...);
+
int bt_error(uint16_t code);
char *bt_compidtostr(int id);