Merge branch 'tg/next__redo_linput' into next
[quvi-tool.git] / src / get / lget.h
blobe730d5fe728aed98f76b30a0e1aecebe64dd1195
1 /* quvi
2 * Copyright (C) 2012,2013 Toni Gundogdu <legatvs@gmail.com>
4 * This file is part of quvi <http://quvi.sourceforge.net/>.
6 * This program 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 program 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 program. If not, see
18 * <http://www.gnu.org/licenses/>.
21 #ifndef lget_h
22 #define lget_h
24 struct lget_s
26 lutil_build_fpath_t build_fpath;
27 lutil_cb_printerr xperr;
28 gpointer qm;
29 gpointer q;
30 gchar *url;
31 struct
33 gchar *fpath;
34 } result;
35 struct
37 gboolean overwrite_if_exists;
38 gboolean skip_transfer;
39 gdouble resume_from;
40 gchar *stream;
41 struct
43 const gchar **external;
44 gboolean enable_stderr;
45 gboolean enable_stdout;
46 gboolean dump_argv;
47 } exec;
48 } opts;
51 typedef struct lget_s *lget_t;
53 void lget_free(lget_t);
54 gint lget_new(lget_t);
56 gint lget_http_get(lget_t);
58 #endif /* lget_h */
60 /* vim: set ts=2 sw=2 tw=72 expandtab: */