2009-11-25 21:55:06 +01:00
|
|
|
/*
|
2010-01-01 14:56:45 +01:00
|
|
|
** Copyright (C) 2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2009-11-25 21:55:06 +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 of the License, 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_UTIL_H__
|
|
|
|
#define __MU_UTIL_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
2009-11-29 23:03:03 +01:00
|
|
|
* get the expanded path; ie. perform shell expansion on the path
|
2009-11-25 21:55:06 +01:00
|
|
|
*
|
|
|
|
* @param path path to expand
|
|
|
|
*
|
|
|
|
* @return the expanded path as a newly allocated string, or NULL in
|
|
|
|
* case of error
|
|
|
|
*/
|
2009-11-29 23:03:03 +01:00
|
|
|
char* mu_util_dir_expand (const char* path);
|
2009-11-25 21:55:06 +01:00
|
|
|
|
|
|
|
|
2009-12-09 18:53:30 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* guess the maildir; first try MAILDIR, then try ~/Maildir
|
|
|
|
* if both fail, return NULL
|
|
|
|
*
|
|
|
|
* @return full path of the guessed Maildir, or NULL; must be freed (gfree)
|
|
|
|
*/
|
|
|
|
char* mu_util_guess_maildir (void);
|
|
|
|
|
2009-11-25 21:55:06 +01:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /*__MU_UTIL_H__*/
|