* update: some refactoring of commands

This commit is contained in:
djcb
2010-08-20 21:07:36 +03:00
parent 7ea074431c
commit a4515de466
8 changed files with 202 additions and 185 deletions

View File

@ -38,7 +38,7 @@ enum _MuCmd {
};
typedef enum _MuCmd MuCmd;
/**
/**
* try to execute whatever is specified on the command line
*
* @param config a config structure with the command line params
@ -47,6 +47,58 @@ typedef enum _MuCmd MuCmd;
*/
gboolean mu_cmd_execute (MuConfigOptions *config);
/**
* execute the 'mkdir' command
*
* @param opts configuration options
*
* @return TRUE if the command succeeded, FALSE otherwise
*/
gboolean mu_cmd_mkdir (MuConfigOptions *opts);
/**
* execute the 'view' command
*
* @param opts configuration options
*
* @return TRUE if the command succeeded, FALSE otherwise
*/
gboolean mu_cmd_view (MuConfigOptions *opts);
/**
* execute the 'index' command
*
* @param opts configuration options
*
* @return TRUE if the command succeede, FALSE otherwise
*/
gboolean mu_cmd_index (MuConfigOptions *opts);
/**
* execute the 'cleanup' command
*
* @param opts configuration options
*
* @return TRUE if the command succeede, FALSE otherwise
*/
gboolean mu_cmd_cleanup (MuConfigOptions *opts);
/**
* execute the 'find' command
*
* @param opts configuration options
*
* @return TRUE if the command succeede, FALSE otherwise
*/
gboolean mu_cmd_find (MuConfigOptions *opts);
G_END_DECLS
#endif /*__MU_CMD_H__*/