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 24 /** @file qdef.h */ 25 26 typedef int (*quvi_callback_status)(long,void*,void*); /**< Status callback type */ 27 28 typedef void *quvi_subtitle_export_t; /**< Subtitle export handle type */ 29 typedef void *quvi_subtitle_type_t; /**< Subtitle type handle type */ 30 typedef void *quvi_subtitle_lang_t; /**< Subtitle language handle type */ 31 typedef void *quvi_http_metainfo_t; /**< HTTP meta-info type */ 32 typedef void *quvi_file_ext_t; /**< File extension type */ 33 typedef void *quvi_playlist_t; /**< Playlist script type */ 34 typedef void *quvi_subtitle_t; /**< Subtitle handle type */ 35 typedef void *quvi_resolve_t; /**< Resolve type */ 36 typedef void *quvi_media_t; /**< Media type */ 37 typedef void *quvi_scan_t; /**< Scan type */ 38 typedef void *quvi_t; /**< Library handle type */ 39 40 typedef uint32_t quvi_word; /**< Word type */ 41 typedef uint8_t quvi_byte; /**< Byte type */ 42 43 #define quvi_lobyte(w) ((quvi_byte)((uint64_t)(w) & 0xff)) /**< Return low byte */ 44 #define quvi_hibyte(w) ((quvi_byte)((uint64_t)(w) >> 8)) /**< Return high byte */ 45 #define quvi_loword(l) ((quvi_word)((uint64_t)(l) & 0xffff)) /**< Return low word */ 46 #define quvi_hiword(l) ((quvi_word)((uint64_t)(l) >> 16)) /**< Return high word */ 47 48 #endif /* qdef_h */ 49 50 /* vim: set ts=2 sw=2 tw=72 expandtab: */ 51