2 * hdhomerun_channelscan.h
4 * Copyright © 2007-2008 Silicondust Engineering Ltd. <www.silicondust.com>.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser 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.
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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 * As a special exception to the GNU Lesser General Public License,
20 * you may link, statically or dynamically, an application with a
21 * publicly distributed version of the Library to produce an
22 * executable file containing portions of the Library, and
23 * distribute that executable file under terms of your choice,
24 * without any of the additional requirements listed in clause 4 of
25 * the GNU Lesser General Public License.
27 * By "a publicly distributed version of the Library", we mean
28 * either the unmodified Library as distributed by Silicondust, or a
29 * modified version of the Library that is distributed under the
30 * conditions defined in the GNU Lesser General Public License.
37 #define HDHOMERUN_CHANNELSCAN_PROGRAM_NORMAL 0
38 #define HDHOMERUN_CHANNELSCAN_PROGRAM_NODATA 1
39 #define HDHOMERUN_CHANNELSCAN_PROGRAM_CONTROL 2
40 #define HDHOMERUN_CHANNELSCAN_PROGRAM_ENCRYPTED 3
42 struct hdhomerun_channelscan_t;
44 extern LIBTYPE struct hdhomerun_channelscan_t *channelscan_create(struct hdhomerun_device_t *hd, const char *channelmap);
45 extern LIBTYPE void channelscan_destroy(struct hdhomerun_channelscan_t *scan);
47 extern LIBTYPE int channelscan_advance(struct hdhomerun_channelscan_t *scan, struct hdhomerun_channelscan_result_t *result);
48 extern LIBTYPE int channelscan_detect(struct hdhomerun_channelscan_t *scan, struct hdhomerun_channelscan_result_t *result);
49 extern LIBTYPE uint8_t channelscan_get_progress(struct hdhomerun_channelscan_t *scan);