* add some extra error checking for the right command
This commit is contained in:
14
src/mu-cmd.h
14
src/mu-cmd.h
@ -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__*/
|
||||
|
||||
Reference in New Issue
Block a user