factorize 2 tests
[mplayer/greg.git] / parser-mecmd.h
blob7323b16ee5e9a09f03c150b1c683c583160216cb
1 #ifndef PARSER_MECMD_H
2 #define PARSER_MECMD_H
4 /// \file
5 /// \ingroup ConfigParsers MEntry
6 /// \brief A simple parser with per-entry settings.
8 /// \defgroup MEntry MEncoder's playlist
9 ///@{
11 /// Playlist entry
12 typedef struct m_entry_st {
13 /// Filename, url or whatever.
14 char* name;
15 /// NULL terminated list of name,val pairs.
16 char** opts;
17 } m_entry_t;
19 /// Free a list returned by \ref m_config_parse_me_command_line.
20 void
21 m_entry_list_free(m_entry_t* lst);
23 /// Helper to set all config options from an entry.
24 int
25 m_entry_set_options(m_config_t *config, m_entry_t* entry);
27 /// Setup the \ref Config from command line arguments and build a playlist.
28 /** \ingroup ConfigParsers
30 m_entry_t*
31 m_config_parse_me_command_line(m_config_t *config, int argc, char **argv);
33 ///@}
35 #endif /* PARSER_MECMD_H */