Debian Codegraph @

tools/kread.h

raw
1 /* Copyright (C) 2008 Vincent Penquerc'h.
2 This file is part of the Kate codec library.
3 Written by Vincent Penquerc'h.
4
5 Use, distribution and reproduction of this library is governed
6 by a BSD style source license included with this source in the
7 file 'COPYING'. Please read these terms before distributing. */
8
9
10 #ifndef KATE_kread_h_GUARD
11 #define KATE_kread_h_GUARD
12
13 #include <stdio.h>
14
15 typedef struct {
16 int (*on_page)(kate_uintptr_t data,long offset,ogg_page*);
17 int (*on_hole)(kate_uintptr_t data,long offset,long size);
18 } ogg_parser_funcs;
19
20 extern int read_raw_size_and_packet(FILE *f,char **buffer,ogg_int64_t *bytes);
21 extern FILE *open_and_probe_stream(const char *filename);
22 extern int parse_ogg_stream(FILE *f,const char *pre_buffer,size_t pre_bytes,ogg_parser_funcs funcs,kate_uintptr_t data);
23
24 #endif
25