--- src/shared/hfp.c | 5 +++++ src/shared/hfp.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/shared/hfp.c b/src/shared/hfp.c index b10316e..44b5b55 100644 --- a/src/shared/hfp.c +++ b/src/shared/hfp.c @@ -336,6 +336,11 @@ bool hfp_gw_result_get_unquoted_string(struct hfp_gw_result *result, char *buf, return true; } +bool hfp_gw_result_has_next(struct hfp_gw_result *result) +{ + return result->data[result->offset] != '\0'; +} + static void process_input(struct hfp_gw *hfp) { char *str, *ptr; diff --git a/src/shared/hfp.h b/src/shared/hfp.h index 649b77e..4da5c97 100644 --- a/src/shared/hfp.h +++ b/src/shared/hfp.h @@ -120,3 +120,4 @@ bool hfp_gw_result_get_string(struct hfp_gw_result *result, char *buf, uint8_t len); bool hfp_gw_result_get_unquoted_string(struct hfp_gw_result *result, char *buf, uint8_t len); +bool hfp_gw_result_has_next(struct hfp_gw_result *result); -- 1.8.3.2 -- 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