src/: Use intended license header
[libquvi.git] / src / _quvi_s.h
blob09671c34e6080c84d2043c140449e2ca594d1ffb
1 /* libquvi
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
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.
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, Boston, MA
17 * 02110-1301 USA
20 #ifndef _quvi_s_h
21 #define _quvi_s_h
23 typedef gint (*quvi_callback_fetch)(gpointer);
24 typedef gint (*quvi_callback_resolve)(gpointer);
25 typedef gint (*quvi_callback_verify)(gpointer);
27 struct _quvi_s
29 struct
31 quvi_callback_resolve resolve;
32 quvi_callback_status status;
33 quvi_callback_verify verify;
34 quvi_callback_fetch fetch;
35 } cb;
36 struct
38 gboolean autoproxy;
39 struct
41 gboolean verbose; /* LIBQUVI_VERBOSE_SCRIPTS */
42 glong category;
43 } scripts;
44 } opt;
45 struct
47 GString *errmsg;
48 glong resp_code;
49 QuviError rc;
50 } status;
51 struct
53 gpointer proxy;
54 gpointer curl;
55 gpointer lua;
56 } handle;
57 struct
59 struct
61 GSList *playlist;
62 GSList *media;
63 GSList *scan;
64 } curr;
65 GSList *playlist;
66 GSList *media;
67 GSList *scan;
68 GSList *util;
69 } scripts;
72 typedef struct _quvi_s *_quvi_t;
74 #endif /* _quvi_s_h */
76 /* vim: set ts=2 sw=2 tw=72 expandtab: */