source: trunk/third/libgnome/libgnome/gnome-url.h @ 20807

Revision 20807, 1.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20806, which included commits to RCS files with non-trunk default branches.
Line 
1/* gnome-url.h
2 * Copyright (C) 1998 James Henstridge <james@daa.com.au>
3 * Copyright (C) 1999, 2000 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc.,  59 Temple Place - Suite 330, Cambridge, MA 02139, USA.
19 */
20/*
21  @NOTATION@
22 */
23
24#ifndef GNOME_URL_H
25#define GNOME_URL_H
26
27#include <glib/gmacros.h>
28#include <glib/gerror.h>
29
30G_BEGIN_DECLS
31
32/**
33 * GnomeURLError:
34 * @GNOME_URL_ERROR_PARSE: The parsing of the handler failed.
35 *
36 * The errors that can be returned due to bad parameters being pass to
37 * gnome_url_show().
38 */
39typedef enum {
40  GNOME_URL_ERROR_PARSE,
41  GNOME_URL_ERROR_LAUNCH,
42  GNOME_URL_ERROR_URL,
43  GNOME_URL_ERROR_NO_DEFAULT,
44  GNOME_URL_ERROR_NOT_SUPPORTED,
45  GNOME_URL_ERROR_VFS
46} GnomeURLError;
47
48#define GNOME_URL_ERROR (gnome_url_error_quark ())
49GQuark   gnome_url_error_quark (void) G_GNUC_CONST;
50
51
52gboolean gnome_url_show           (const char  *url,
53                                   GError     **error);
54
55gboolean gnome_url_show_with_env  (const char  *url,
56                                   char       **envp,
57                                   GError     **error);
58
59G_END_DECLS
60#endif
Note: See TracBrowser for help on using the repository browser.