libquvi
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
26typedef int (*quvi_callback_status)(long,void*,void*);
29typedef void *quvi_subtitle_type_t;
30typedef void *quvi_subtitle_lang_t;
31typedef void *quvi_http_metainfo_t;
32typedef void *quvi_file_ext_t;
33typedef void *quvi_playlist_t;
34typedef void *quvi_subtitle_t;
35typedef void *quvi_resolve_t;
36typedef void *quvi_media_t;
37typedef void *quvi_scan_t;
38typedef void *quvi_t;
40typedef uint32_t quvi_word;
41typedef 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: */
void * quvi_media_t
Definition qdef.h:36
uint8_t quvi_byte
Definition qdef.h:41
void * quvi_http_metainfo_t
Definition qdef.h:31
void * quvi_subtitle_export_t
Definition qdef.h:28
void * quvi_file_ext_t
Definition qdef.h:32
void * quvi_subtitle_t
Definition qdef.h:34
void * quvi_subtitle_type_t
Definition qdef.h:29
void * quvi_resolve_t
Definition qdef.h:35
int(* quvi_callback_status)(long, void *, void *)
Definition qdef.h:26
void * quvi_scan_t
Definition qdef.h:37
void * quvi_t
Definition qdef.h:38
uint32_t quvi_word
Definition qdef.h:40
void * quvi_subtitle_lang_t
Definition qdef.h:30
void * quvi_playlist_t
Definition qdef.h:33