aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/range.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qemu/range.h')
-rw-r--r--include/qemu/range.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qemu/range.h b/include/qemu/range.h
index 7e2b1cc..aa671da 100644
--- a/include/qemu/range.h
+++ b/include/qemu/range.h
@@ -217,6 +217,12 @@ static inline int ranges_overlap(uint64_t first1, uint64_t len1,
return !(last2 < first1 || last1 < first2);
}
+/*
+ * Return -1 if @a < @b, 1 @a > @b, and 0 if they touch or overlap.
+ * Both @a and @b must not be empty.
+ */
+int range_compare(Range *a, Range *b);
+
GList *range_list_insert(GList *list, Range *data);
#endif