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
|
|
|
|
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 */
|