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
|