/[tivodecode]/tivodecode/trunk/tivodecoder.h
ViewVC logotype

Contents of /tivodecode/trunk/tivodecoder.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 66 - (show annotations) (download)
Wed Dec 13 00:43:25 2006 UTC (15 years, 5 months ago) by jeremyd2019
File MIME type: text/plain
File size: 716 byte(s)
make process_frame use a write function.  add target to make libtivodecode.a

1 /*
2 * tivodecode, (c) 2006, Jeremy Drake
3 * See COPYING file for license terms
4 */
5 #include <stddef.h>
6 #include "tivo-parse.h"
7
8 #ifndef TIVO_DECODER_H_
9 #define TIVO_DECODER_H_
10
11 #if _FILE_OFFSET_BITS==64 || defined(__NetBSD__) || defined(__APPLE__)
12 # define OFF_T_FORMAT "llu"
13 # define ATOL(arg) atoll(arg)
14 #else
15 # warning "Not compiling for large file (>2G) support!"
16 # define OFF_T_FORMAT "lu"
17 # define ATOL(arg) atol(arg)
18 #endif
19
20 typedef int (*write_func_t) (void * mem, int size, void * fh);
21
22 /*
23 * called for each frame
24 */
25 int process_frame(unsigned char code, turing_state * turing, off_t packet_start, void * packet_stream, read_func_t read_handler, void * ofh, write_func_t write_handler);
26
27 #endif

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13