mirror of https://github.com/Gnucash/gnucash
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
/*
|
|
* go-file.h :
|
|
*
|
|
* Copyright (C) 2004 Morten Welinder (terra@gnome.org)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of version 2 of the GNU General Public
|
|
* License as published by the Free Software Foundation.
|
|
*
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
* USA
|
|
*/
|
|
#ifndef GO_FILE_H
|
|
#define GO_FILE_H
|
|
|
|
#include <glib.h>
|
|
#include <gsf/gsf.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
char *go_filename_from_uri (const char *uri);
|
|
char *go_filename_to_uri (const char *filename);
|
|
char *go_shell_arg_to_uri (const char *arg);
|
|
char *go_basename_from_uri (const char *uri);
|
|
char *go_dirname_from_uri (const char *uri, gboolean brief);
|
|
|
|
GsfInput *go_file_open (char const *uri, GError **err);
|
|
GsfOutput *go_file_create (char const *uri, GError **err);
|
|
|
|
GSList *go_file_split_uris (const char *data);
|
|
|
|
gchar *go_url_decode (gchar const *text);
|
|
gchar *go_url_encode (gchar const *text);
|
|
GError *go_url_show (gchar const *url);
|
|
GError *go_url_mailto (gchar const *url);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GO_FILE_H */
|