c_reset: Use either default or QUVI_OPTION_USER_AGENT value
[libquvi.git] / src / _quvi_s.h
blob44d106d93c95307adc65b6f6ef9c9bf2990c2b50
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 } cb;
37 struct
39 GString *user_agent;
40 gboolean autoproxy;
41 } opt;
42 struct
44 GString *errmsg;
45 glong resp_code;
46 QuviError rc;
47 } status;
48 struct
50 gpointer proxy;
51 gpointer curl;
52 gpointer lua;
53 } handle;
54 struct
56 struct curl_slist *headers;
57 } http;
58 struct
60 struct
62 GSList *subtitle_export;
63 GSList *subtitle;
64 GSList *playlist;
65 GSList *media;
66 GSList *scan;
67 } curr;
68 GSList *subtitle_export;
69 GSList *subtitle;
70 GSList *playlist;
71 GSList *media;
72 GSList *scan;
73 GSList *util;
74 } scripts;
77 typedef struct _quvi_s *_quvi_t;
79 #endif /* _quvi_s_h */
81 /* vim: set ts=2 sw=2 tw=72 expandtab: */