This is needed for using gatttool on Android where readline is not available. --- attrib/gatttool.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/attrib/gatttool.h b/attrib/gatttool.h index 8f0913c..f15fe01 100644 --- a/attrib/gatttool.h +++ b/attrib/gatttool.h @@ -21,8 +21,18 @@ * */ +#ifdef GATTTOOL_NO_INTERACTIVE +static inline int interactive(const char *src, const char *dst, + const char *dst_type, int psm) +{ + g_print("Interactive mode disabled\n"); + return 0; +} +#else int interactive(const char *src, const char *dst, const char *dst_type, int psm); +#endif + GIOChannel *gatt_connect(const char *src, const char *dst, const char *dst_type, const char *sec_level, int psm, int mtu, BtIOConnect connect_cb, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html