aboutsummaryrefslogtreecommitdiff
path: root/src/track_remove_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/track_remove_parser.h')
-rw-r--r--src/track_remove_parser.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/track_remove_parser.h b/src/track_remove_parser.h
new file mode 100644
index 0000000..1783cc8
--- /dev/null
+++ b/src/track_remove_parser.h
@@ -0,0 +1,17 @@
+#ifndef TRACK_REMOVE_PARSER_H
+#define TRACK_REMOVE_PARSER_H
+
+#include "buffer.h"
+
+typedef struct {
+ int start;
+ int end;
+} Range;
+
+/*
+ |ranges| should be initialized before calling this.
+ Returns 0 on success.
+*/
+int track_remove_parser_parse(const char *str, size_t size, Buffer /*Range*/ *ranges);
+
+#endif