HowtoContributeCode: Cleanup
[quvi.git] / lib / lua_wrap.h
blob9cb1328148cf14a29b2399a945ba20629fbb9309
1 /*
2 * Copyright (C) 2010 Toni Gundogdu.
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program 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
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef lua_wrap_h
19 #define lua_wrap_h
21 int init_lua(_quvi_t);
23 void free_lua(_quvi_t *);
25 struct lua_ident_s {
26 _quvi_t quvi;
27 char *url;
28 char *domain;
29 char *formats;
32 typedef struct lua_ident_s *lua_ident_t;
34 QUVIcode run_lua_suffix_func(_quvi_t, _quvi_video_link_t);
36 QUVIcode run_lua_charset_func(_quvi_video_t, const char *);
38 QUVIcode run_ident_func(lua_ident_t, llst_node_t);
40 QUVIcode find_host_script_and_parse(_quvi_video_t);
42 QUVIcode find_host_script(_quvi_video_t);
44 #endif