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