Add misc/url.* with m_url_(un)escaped_form
[libquvi.git] / src / _quvi_s.h
blob8a1fdd748e1228b4ad1902617bc8b1a42407ff61
1 /* libquvi
2 * Copyright (C) 2012,2013 Toni Gundogdu <legatvs@gmail.com>
4 * This file is part of libquvi <http://quvi.sourceforge.net/>.
6 * This library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Affero General Public
8 * License as published by the Free Software Foundation, either
9 * version 3 of the License, or (at your option) any later version.
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
14 * GNU Affero General Public License for more details.
16 * You should have received a copy of the GNU Affero General
17 * Public License along with this library. If not, see
18 * <http://www.gnu.org/licenses/>.
21 #ifndef _quvi_s_h
22 #define _quvi_s_h
24 typedef gint (*quvi_callback_http_metainfo)(gpointer);
25 typedef gint (*quvi_callback_resolve)(gpointer);
26 typedef gint (*quvi_callback_fetch)(gpointer);
28 struct _quvi_s
30 struct
32 quvi_callback_http_metainfo http_metainfo;
33 quvi_callback_resolve resolve;
34 quvi_callback_status status;
35 quvi_callback_fetch fetch;
36 struct
38 gpointer status;
39 } userdata;
40 } cb;
41 struct
43 gboolean allow_cookies;
44 GString *user_agent;
45 gboolean autoproxy;
46 } opt;
47 struct
49 GString *errmsg;
50 glong resp_code;
51 QuviError rc;
52 } status;
53 struct
55 gpointer proxy;
56 gpointer curl;
57 gpointer lua;
58 } handle;
59 struct
61 struct curl_slist *headers;
62 } http;
63 struct
65 struct
67 GSList *subtitle_export;
68 GSList *subtitle;
69 GSList *playlist;
70 GSList *media;
71 GSList *scan;
72 } curr;
73 GSList *subtitle_export;
74 GSList *subtitle;
75 GSList *playlist;
76 GSList *media;
77 GSList *scan;
78 GSList *util;
79 } scripts;
82 typedef struct _quvi_s *_quvi_t;
84 #endif /* _quvi_s_h */
86 /* vim: set ts=2 sw=2 tw=72 expandtab: */