2011-05-23 07:16:09 +02:00
|
|
|
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
|
|
|
|
2010-01-01 19:44:19 +01:00
|
|
|
/*
|
2011-05-23 07:16:09 +02:00
|
|
|
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2010-01-01 19:44:19 +01:00
|
|
|
**
|
|
|
|
** 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>
|
2010-01-01 19:44:19 +01:00
|
|
|
|
2010-01-02 13:44:26 +01:00
|
|
|
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-08-11 19:20:22 +02:00
|
|
|
MuError 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-08-11 19:20:22 +02:00
|
|
|
MuError 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-08-11 19:20:22 +02:00
|
|
|
MuError 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-08-11 19:20:22 +02:00
|
|
|
MuError 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-08-11 19:20:22 +02:00
|
|
|
MuError mu_cmd_find (MuConfig *opts);
|
2010-08-20 20:07:36 +02:00
|
|
|
|
|
|
|
|
2010-08-20 20:38:54 +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
|
2010-08-20 20:38:54 +02:00
|
|
|
*/
|
2011-08-11 19:20:22 +02:00
|
|
|
MuError mu_cmd_extract (MuConfig *opts);
|
2011-01-04 22:19:03 +01:00
|
|
|
|
2010-08-20 20:38:54 +02:00
|
|
|
|
2011-08-01 21:42:23 +02:00
|
|
|
/**
|
|
|
|
* execute the 'mv' command
|
|
|
|
*
|
|
|
|
* @param opts configuration options
|
|
|
|
*
|
|
|
|
* @return MU_EXITCODE_OK (0) if the command succeeds,
|
|
|
|
* MU_EXITCODE_ERROR otherwise
|
|
|
|
*/
|
2011-08-11 19:20:22 +02:00
|
|
|
MuError mu_cmd_mv (MuConfig *opts);
|
2011-08-01 21:42:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-02 22:26:54 +01:00
|
|
|
/**
|
|
|
|
* execute the cfind command
|
|
|
|
*
|
|
|
|
* @param opts configuration options
|
|
|
|
*
|
|
|
|
* @return MU_EXITCODE_OK (0) if the command succeeds,
|
|
|
|
* MU_EXITCODE_ERROR otherwise
|
|
|
|
*/
|
2011-08-11 19:20:22 +02:00
|
|
|
MuError mu_cmd_cfind (MuConfig *opts);
|
2011-03-02 22:26:54 +01:00
|
|
|
|
|
|
|
|
2011-08-03 22:00:48 +02:00
|
|
|
/**
|
|
|
|
* execute the add command
|
|
|
|
*
|
|
|
|
* @param opts configuration options
|
|
|
|
*
|
|
|
|
* @return MU_EXITCODE_OK (0) if the command succeeds,
|
|
|
|
* MU_EXITCODE_ERROR otherwise
|
|
|
|
*/
|
2011-08-11 19:20:22 +02:00
|
|
|
MuError mu_cmd_add (MuConfig *opts);
|
2011-08-03 22:00:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* execute the remove command
|
|
|
|
*
|
|
|
|
* @param opts configuration options
|
|
|
|
*
|
|
|
|
* @return MU_EXITCODE_OK (0) if the command succeeds,
|
|
|
|
* MU_EXITCODE_ERROR otherwise
|
|
|
|
*/
|
2011-08-11 19:20:22 +02:00
|
|
|
MuError mu_cmd_remove (MuConfig *opts);
|
2011-08-03 22:00:48 +02:00
|
|
|
|
2010-01-02 13:44:26 +01:00
|
|
|
G_END_DECLS
|
2010-01-01 19:44:19 +01:00
|
|
|
|
|
|
|
#endif /*__MU_CMD_H__*/
|