altosui: Add low-level Bluetooth APIs
[fw/altos] / altosui / libaltos / libaltos.h
index 0e5691cb87b8acd6e9649f819f97d4f673387b9e..9c3f965589d754b2a6ee784429c3e1c9c6a20d8f 100644 (file)
@@ -58,6 +58,15 @@ struct altos_device {
        //%mutable;
 };
 
+#define BLUETOOTH_PRODUCT_TELEBT       "TeleBT"
+
+struct altos_bt_device {
+       //%immutable;
+       char                            name[256];
+       char                            addr[20];
+       //%mutable;
+};
+
 #define LIBALTOS_SUCCESS       0
 #define LIBALTOS_ERROR         -1
 #define LIBALTOS_TIMEOUT       -2
@@ -100,4 +109,16 @@ altos_flush(struct altos_file *file);
 PUBLIC int
 altos_getchar(struct altos_file *file, int timeout);
 
+PUBLIC struct altos_bt_list *
+altos_bt_list_start(void);
+
+PUBLIC int
+altos_bt_list_next(struct altos_bt_list *list, struct altos_bt_device *device);
+
+PUBLIC void
+altos_bt_list_finish(struct altos_bt_list *list);
+
+PUBLIC struct altos_file *
+altos_bt_open(struct altos_bt_device *device);
+
 #endif /* _LIBALTOS_H_ */