From a7158ceec00f14e680a885722cfe23761b4662d3 Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Thu, 26 Jul 2018 23:01:35 -0400 Subject: demux: sort filenames naturally when playing a directory / archive --- misc/natural_sort.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 misc/natural_sort.h (limited to 'misc/natural_sort.h') 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 . + */ + +#ifndef MP_NATURAL_SORT_H +#define MP_NATURAL_SORT_H + +int mp_natural_sort_cmp(const char *name1, const char *name2); + +#endif -- cgit v1.2.3