annotate parser-mecmd.h @ 17419:433e35de3b10

avoid Solaris 10 compile error with gcc 3.4.5
author reimar
date Tue, 17 Jan 2006 20:25:42 +0000
parents 487cfc28525d
children 1a14fde7680d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8164
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
1
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
2 /// A simple parser with per-entry settings.
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
3
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
4 typedef struct m_entry_st {
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
5 char* name; // Filename, url or whatever
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
6 char** opts; // NULL terminated list of name,val pairs
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
7 } m_entry_t;
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
8
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
9 // Free a list returned by m_config_parse_command_line
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
10 void
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
11 m_entry_list_free(m_entry_t* lst);
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
12 // Use this when you switch to another entry
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
13 int
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
14 m_entry_set_options(m_config_t *config, m_entry_t* entry);
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
15
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
16 m_entry_t*
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
17 m_config_parse_me_command_line(m_config_t *config, int argc, char **argv);
487cfc28525d New config system + cleanup of header inter dependency
albeu
parents:
diff changeset
18