mu/src/mu-cmd.h

98 lines
2.3 KiB
C
Raw Normal View History

/*
** Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
** Free Software Foundation; either version 3, or (at your option) any
** later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software Foundation,
** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**
*/
#ifndef __MU_CMD_H__
#define __MU_CMD_H__
#include <glib.h>
2011-01-04 22:19:03 +01:00
#include <mu-config.h>
G_BEGIN_DECLS
2010-08-20 20:07:36 +02:00
/**
* execute the 'mkdir' command
*
* @param opts configuration options
*
2011-01-04 22:19:03 +01:00
* @return MU_EXITCODE_OK (0) if the command succeeded,
* MU_EXITCODE_ERROR otherwise
2010-08-20 20:07:36 +02:00
*/
2011-01-04 22:19:03 +01:00
MuExitCode mu_cmd_mkdir (MuConfig *opts);
2010-08-20 20:07:36 +02:00
/**
* execute the 'view' command
*
* @param opts configuration options
*
2011-01-04 22:19:03 +01:00
* @return MU_EXITCODE_OK (0) if the command succeeded,
* MU_EXITCODE_ERROR otherwise
2010-08-20 20:07:36 +02:00
*/
2011-01-04 22:19:03 +01:00
MuExitCode mu_cmd_view (MuConfig *opts);
2010-08-20 20:07:36 +02:00
/**
* execute the 'index' command
*
* @param opts configuration options
*
2011-01-04 22:19:03 +01:00
* @return MU_EXITCODE_OK (0) if the command succeeded,
* MU_EXITCODE_ERROR otherwise
2010-08-20 20:07:36 +02:00
*/
2011-01-04 22:19:03 +01:00
MuExitCode mu_cmd_index (MuConfig *opts);
2010-08-20 20:07:36 +02:00
/**
* execute the 'cleanup' command
*
* @param opts configuration options
*
2011-01-04 22:19:03 +01:00
* @return MU_EXITCODE_OK (0) if the command succeeds,
* MU_EXITCODE_ERROR otherwise
2010-08-20 20:07:36 +02:00
*/
2011-01-04 22:19:03 +01:00
MuExitCode mu_cmd_cleanup (MuConfig *opts);
2010-08-20 20:07:36 +02:00
/**
* execute the 'find' command
*
* @param opts configuration options
*
2011-01-04 22:19:03 +01:00
* @return MU_EXITCODE_OK (0) if the command succeeds and
* >MU_EXITCODE_OK (0) results, MU_EXITCODE_NO_MATCHES if the command
* succeeds but there no matches, MU_EXITCODE_ERROR for all other errors
2010-08-20 20:07:36 +02:00
*/
2011-01-04 22:19:03 +01:00
MuExitCode mu_cmd_find (MuConfig *opts);
2010-08-20 20:07:36 +02:00
/**
* execute the 'extract' command
*
* @param opts configuration options
*
2011-01-04 22:19:03 +01:00
* @return MU_EXITCODE_OK (0) if the command succeeds,
* MU_EXITCODE_ERROR otherwise
*/
2011-01-04 22:19:03 +01:00
MuExitCode mu_cmd_extract (MuConfig *opts);
G_END_DECLS
#endif /*__MU_CMD_H__*/