Merge branch 'tg/next__scripts_version_as_ini' into next
[libquvi.git] / src / _quvi_s.h
blob745c9d353fecc3b32fbe230f08e1bfde642a24ca
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 GString *user_agent;
44 gboolean autoproxy;
45 } opt;
46 struct
48 GString *errmsg;
49 glong resp_code;
50 QuviError rc;
51 } status;
52 struct
54 gpointer proxy;
55 gpointer curl;
56 gpointer lua;
57 } handle;
58 struct
60 struct curl_slist *headers;
61 } http;
62 struct
64 struct
66 GSList *subtitle_export;
67 GSList *subtitle;
68 GSList *playlist;
69 GSList *media;
70 GSList *scan;
71 } curr;
72 GSList *subtitle_export;
73 GSList *subtitle;
74 GSList *playlist;
75 GSList *media;
76 GSList *scan;
77 GSList *util;
78 } scripts;
81 typedef struct _quvi_s *_quvi_t;
83 #endif /* _quvi_s_h */
85 /* vim: set ts=2 sw=2 tw=72 expandtab: */