fix jsut committed crasher by rewriting startDrag action
[swfdec.git] / libswfdec / swfdec_loader_internal.h
blob386f910197af758a950190d0dce8cf4bd0232e7b
1 /* Swfdec
2 * Copyright (C) 2006-2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_LOADER_INTERNAL_H_
21 #define _SWFDEC_LOADER_INTERNAL_H_
23 #include "swfdec_loader.h"
24 #include "swfdec_loadertarget.h"
26 G_BEGIN_DECLS
28 typedef enum {
29 SWFDEC_LOADER_STATE_NEW = 0, /* loader is new and has not been opened yet */
30 SWFDEC_LOADER_STATE_OPEN, /* loader is opened and has got the HTTP headers */
31 SWFDEC_LOADER_STATE_READING, /* loader has read some bytes of data and is still reading */
32 SWFDEC_LOADER_STATE_EOF, /* swfdec_loader_eof() has been called */
33 SWFDEC_LOADER_STATE_CLOSED, /* loader has been closed by Swfdec */
34 SWFDEC_LOADER_STATE_ERROR /* loader is in error state */
35 } SwfdecLoaderState;
37 SwfdecLoader * swfdec_loader_load (SwfdecLoader * loader,
38 const char * url,
39 SwfdecLoaderRequest request,
40 const char * data,
41 gsize data_len);
42 void swfdec_loader_close (SwfdecLoader * loader);
43 void swfdec_loader_set_target (SwfdecLoader * loader,
44 SwfdecLoaderTarget * target);
45 void swfdec_loader_set_data_type (SwfdecLoader * loader,
46 SwfdecLoaderDataType type);
48 gboolean swfdec_urldecode_one (const char * string,
49 char ** name,
50 char ** value,
51 const char ** end);
52 void swfdec_string_append_urlencoded (GString * str,
53 const char * name,
54 const char * value);
56 G_END_DECLS
57 #endif