00001 /* 00002 * hdhomerun_channelscan.h 00003 * 00004 * Copyright © 2007-2008 Silicondust USA Inc. <www.silicondust.com>. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 3 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 00018 * 00019 * As a special exception to the GNU Lesser General Public License, 00020 * you may link, statically or dynamically, an application with a 00021 * publicly distributed version of the Library to produce an 00022 * executable file containing portions of the Library, and 00023 * distribute that executable file under terms of your choice, 00024 * without any of the additional requirements listed in clause 4 of 00025 * the GNU Lesser General Public License. 00026 * 00027 * By "a publicly distributed version of the Library", we mean 00028 * either the unmodified Library as distributed by Silicondust, or a 00029 * modified version of the Library that is distributed under the 00030 * conditions defined in the GNU Lesser General Public License. 00031 */ 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 #define HDHOMERUN_CHANNELSCAN_PROGRAM_NORMAL 0 00038 #define HDHOMERUN_CHANNELSCAN_PROGRAM_NODATA 1 00039 #define HDHOMERUN_CHANNELSCAN_PROGRAM_CONTROL 2 00040 #define HDHOMERUN_CHANNELSCAN_PROGRAM_ENCRYPTED 3 00041 00042 struct hdhomerun_channelscan_t; 00043 00044 extern LIBTYPE struct hdhomerun_channelscan_t *channelscan_create(struct hdhomerun_device_t *hd, const char *channelmap); 00045 extern LIBTYPE void channelscan_destroy(struct hdhomerun_channelscan_t *scan); 00046 00047 extern LIBTYPE int channelscan_advance(struct hdhomerun_channelscan_t *scan, struct hdhomerun_channelscan_result_t *result); 00048 extern LIBTYPE int channelscan_detect(struct hdhomerun_channelscan_t *scan, struct hdhomerun_channelscan_result_t *result); 00049 extern LIBTYPE uint8_t channelscan_get_progress(struct hdhomerun_channelscan_t *scan); 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif
1.6.3