* add some extra error checking for the right command

This commit is contained in:
Dirk-Jan C. Binnema
2010-08-29 16:39:27 +03:00
parent d5329d3696
commit a7a08dde7f
6 changed files with 34 additions and 8 deletions

View File

@ -38,6 +38,17 @@ enum _MuCmd {
};
typedef enum _MuCmd MuCmd;
/**
* check whether the MuConfigOptions are for command X
*
* @param config the config options
* @param cmd the command to check (ie., "mkdir" or "find")
*
* @return TRUE if the options are for cmd, FALSE otherwise
*/
gboolean mu_cmd_equals (MuConfigOptions *config, const gchar *cmd);
/**
* try to execute whatever is specified on the command line
*
@ -47,8 +58,6 @@ typedef enum _MuCmd MuCmd;
*/
gboolean mu_cmd_execute (MuConfigOptions *config);
/**
* execute the 'mkdir' command
*
@ -108,7 +117,6 @@ gboolean mu_cmd_find (MuConfigOptions *opts);
*/
gboolean mu_cmd_extract (MuConfigOptions *opts);
G_END_DECLS
#endif /*__MU_CMD_H__*/