summaryrefslogtreecommitdiffstats
path: root/misc/natural_sort.h
diff options
context:
space:
mode:
authorPhilip Sequeira <phsequei@gmail.com>2018-07-26 23:01:35 -0400
committeravih <avih@users.noreply.github.com>2019-09-29 01:13:00 +0300
commita7158ceec00f14e680a885722cfe23761b4662d3 (patch)
tree450530025fc1570d6577bddcb6ef9ce9283d7aae /misc/natural_sort.h
parentf726b368da87024a0cfe82627e0730ffe4578716 (diff)
downloadmpv-a7158ceec00f14e680a885722cfe23761b4662d3.tar.bz2
mpv-a7158ceec00f14e680a885722cfe23761b4662d3.tar.xz
demux: sort filenames naturally when playing a directory / archive
Diffstat (limited to 'misc/natural_sort.h')
-rw-r--r--misc/natural_sort.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/natural_sort.h b/misc/natural_sort.h
new file mode 100644
index 0000000000..47b9a7a132
--- /dev/null
+++ b/misc/natural_sort.h
@@ -0,0 +1,23 @@
+/*
+ * This file is part of mpv.
+ *
+ * mpv is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * mpv is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with mpv. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef MP_NATURAL_SORT_H
+#define MP_NATURAL_SORT_H
+
+int mp_natural_sort_cmp(const char *name1, const char *name2);
+
+#endif