libquvi
 All Files Functions Typedefs Enumerations Enumerator Macros Groups Pages
qdef.h
Go to the documentation of this file.
1 /* libquvi
2  * Copyright (C) 2012,2013 Toni Gundogdu <legatvs@gmail.com>
3  *
4  * This file is part of libquvi <http://quvi.sourceforge.net/>.
5  *
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.
10  *
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.
15  *
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/>.
19  */
20 
21 #ifndef qdef_h
22 #define qdef_h
23 
26 typedef int (*quvi_callback_status)(long,void*,void*);
28 typedef void *quvi_subtitle_export_t;
29 typedef void *quvi_subtitle_type_t;
30 typedef void *quvi_subtitle_lang_t;
31 typedef void *quvi_http_metainfo_t;
32 typedef void *quvi_file_ext_t;
33 typedef void *quvi_playlist_t;
34 typedef void *quvi_subtitle_t;
35 typedef void *quvi_resolve_t;
36 typedef void *quvi_media_t;
37 typedef void *quvi_scan_t;
38 typedef void *quvi_t;
40 typedef uint32_t quvi_word;
41 typedef uint8_t quvi_byte;
43 #define quvi_lobyte(w) ((quvi_byte)((uint64_t)(w) & 0xff))
44 #define quvi_hibyte(w) ((quvi_byte)((uint64_t)(w) >> 8))
45 #define quvi_loword(l) ((quvi_word)((uint64_t)(l) & 0xffff))
46 #define quvi_hiword(l) ((quvi_word)((uint64_t)(l) >> 16))
48 #endif /* qdef_h */
49 
50 /* vim: set ts=2 sw=2 tw=72 expandtab: */