1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
5 * Copyright (C) 2006 Michael Lawrence (lawremi@iastate.edu)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of version 2.1 of the GNU Lesser General Public
9 * License as published by the Free Software Foundation.
11 * This program 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
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 #ifndef __GSF_INPUT_HTTP_H__
23 #define __GSF_INPUT_HTTP_H__
25 #include <gsf/gsf-input.h>
29 #define GSF_INPUT_HTTP_TYPE (gsf_input_http_get_type())
30 #define GSF_INPUT_HTTP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GSF_INPUT_HTTP_TYPE, GsfInputHTTP))
31 #define GSF_IS_INPUT_HTTP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GSF_INPUT_HTTP_TYPE))
33 typedef struct _GsfInputHTTP GsfInputHTTP;
35 GType gsf_input_http_get_type (void) G_GNUC_CONST;
36 /* void gsf_input_http_register_type (GTypeModule *module); glib dynamic types are not thread safe */
38 GsfInput *gsf_input_http_new (gchar const *url, GError **error);
39 gchar *gsf_input_http_get_url (GsfInputHTTP *input);
40 gchar *gsf_input_http_get_content_type (GsfInputHTTP *input);
44 #endif /* __GSF_INPUT_HTTP_H__ */