From 9bcfbe4d4ff8c40fff45798ae7f907118218c17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 26 Feb 2011 20:47:49 +0100 Subject: find_subfiles: move sub_filenames() here Move sub_filenames() and related code from subreader.c to new file find_subfiles.c. This function is used to find subtitle files that should be loaded for the current video; this functionality is not specific to the particular kind of text subtitle handling implemented in subreader.c. Also reindent and prettify the moved code a bit. --- sub/find_subfiles.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sub/find_subfiles.h (limited to 'sub/find_subfiles.h') diff --git a/sub/find_subfiles.h b/sub/find_subfiles.h new file mode 100644 index 0000000000..06105747dc --- /dev/null +++ b/sub/find_subfiles.h @@ -0,0 +1,26 @@ +/* + * This file is part of MPlayer. + * + * MPlayer is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * MPlayer 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with MPlayer; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MPLAYER_FIND_SUBFILES_H +#define MPLAYER_FIND_SUBFILES_H + +#define MAX_SUBTITLE_FILES 128 + +char **sub_filenames(const char *path, char *fname); + +#endif /* MPLAYER_FINDFILES_H */ -- cgit v1.2.3