[go: up one dir, main page]

File: kread.h

package info (click to toggle)
libkate 0.3.7-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,484 kB
  • ctags: 4,083
  • sloc: ansic: 10,002; sh: 8,853; yacc: 2,250; python: 721; lex: 362; makefile: 239
file content (24 lines) | stat: -rw-r--r-- 755 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (C) 2008 Vincent Penquerc'h.
   This file is part of the Kate codec library.
   Written by Vincent Penquerc'h.

   Use, distribution and reproduction of this library is governed
   by a BSD style source license included with this source in the
   file 'COPYING'. Please read these terms before distributing. */


#ifndef KATE_kread_h_GUARD
#define KATE_kread_h_GUARD

#include <stdio.h>

typedef struct {
  int (*on_page)(kate_uintptr_t data,ogg_page*);
} ogg_parser_funcs;

extern int read_raw_size_and_packet(FILE *f,char **buffer,ogg_int64_t *bytes);
extern FILE *open_and_probe_stream(const char *filename);
extern int parse_ogg_stream(FILE *f,const char *pre_buffer,size_t pre_bytes,ogg_parser_funcs funcs,kate_uintptr_t data);

#endif