2010-01-30 23:24:23 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_PARSER_MECMD_H
|
|
|
|
#define MPLAYER_PARSER_MECMD_H
|
2002-11-12 01:56:42 +00:00
|
|
|
|
2008-03-04 23:35:24 +00:00
|
|
|
#include "m_config.h"
|
|
|
|
|
2006-04-25 01:26:10 +00:00
|
|
|
/// \file
|
|
|
|
/// \ingroup ConfigParsers MEntry
|
|
|
|
/// \brief A simple parser with per-entry settings.
|
2002-11-12 01:56:42 +00:00
|
|
|
|
2006-04-25 01:26:10 +00:00
|
|
|
/// \defgroup MEntry MEncoder's playlist
|
|
|
|
///@{
|
|
|
|
|
|
|
|
/// Playlist entry
|
2002-11-12 01:56:42 +00:00
|
|
|
typedef struct m_entry_st {
|
2006-04-25 01:26:10 +00:00
|
|
|
/// Filename, url or whatever.
|
|
|
|
char* name;
|
|
|
|
/// NULL terminated list of name,val pairs.
|
|
|
|
char** opts;
|
2002-11-12 01:56:42 +00:00
|
|
|
} m_entry_t;
|
|
|
|
|
2006-04-25 01:26:10 +00:00
|
|
|
/// Free a list returned by \ref m_config_parse_me_command_line.
|
2002-11-12 01:56:42 +00:00
|
|
|
void
|
|
|
|
m_entry_list_free(m_entry_t* lst);
|
2006-04-25 01:26:10 +00:00
|
|
|
|
|
|
|
/// Helper to set all config options from an entry.
|
2002-11-12 01:56:42 +00:00
|
|
|
int
|
|
|
|
m_entry_set_options(m_config_t *config, m_entry_t* entry);
|
|
|
|
|
2006-04-25 01:26:10 +00:00
|
|
|
/// Setup the \ref Config from command line arguments and build a playlist.
|
|
|
|
/** \ingroup ConfigParsers
|
|
|
|
*/
|
2002-11-12 01:56:42 +00:00
|
|
|
m_entry_t*
|
|
|
|
m_config_parse_me_command_line(m_config_t *config, int argc, char **argv);
|
|
|
|
|
2006-04-25 01:26:10 +00:00
|
|
|
///@}
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_PARSER_MECMD_H */
|