diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index 6c804f5..a35cb7b 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
return context->data[context->offset] != '\0';
}
+void hfp_context_skip_field(struct hfp_context *context)
+{
+ const char *data = context->data;
+ unsigned int offset = context->offset;
+
+ while (data[offset] != '\0' && data[offset] != ',')
+ offset++;
+
+ context->offset = offset;
+ next_field(context);
+}
+
bool hfp_context_get_range(struct hfp_context *context, uint32_t *min,
uint32_t *max)
{
diff --git a/src/shared/hfp.h b/src/shared/hfp.h
index 5ba020d..2eb7838 100644
--- a/src/shared/hfp.h
+++ b/src/shared/hfp.h
bool hfp_context_get_range(struct hfp_context *context, unsigned int *min,
unsigned int *max);
bool hfp_context_has_next(struct hfp_context *context);
+void hfp_context_skip_field(struct hfp_context *context);
typedef void (*hfp_hf_result_func_t)(struct hfp_context *context,
void *user_data);