1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>include/FLAC/callback.h Source File</title>
3
<title>FLAC: include/FLAC/callback.h Source File</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.2.14 -->
8
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
9
<hr><h1>include/FLAC/callback.h</h1><a href="callback_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/* libFLAC - Free Lossless Audio Codec library</font>
10
00002 <font class="comment"> * Copyright (C) 2004,2005 Josh Coalson</font>
11
00003 <font class="comment"> *</font>
12
00004 <font class="comment"> * Redistribution and use in source and binary forms, with or without</font>
13
00005 <font class="comment"> * modification, are permitted provided that the following conditions</font>
14
00006 <font class="comment"> * are met:</font>
15
00007 <font class="comment"> *</font>
16
00008 <font class="comment"> * - Redistributions of source code must retain the above copyright</font>
17
00009 <font class="comment"> * notice, this list of conditions and the following disclaimer.</font>
18
00010 <font class="comment"> *</font>
19
00011 <font class="comment"> * - Redistributions in binary form must reproduce the above copyright</font>
20
00012 <font class="comment"> * notice, this list of conditions and the following disclaimer in the</font>
21
00013 <font class="comment"> * documentation and/or other materials provided with the distribution.</font>
22
00014 <font class="comment"> *</font>
23
00015 <font class="comment"> * - Neither the name of the Xiph.org Foundation nor the names of its</font>
24
00016 <font class="comment"> * contributors may be used to endorse or promote products derived from</font>
25
00017 <font class="comment"> * this software without specific prior written permission.</font>
26
00018 <font class="comment"> *</font>
27
00019 <font class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</font>
28
00020 <font class="comment"> * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</font>
29
00021 <font class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</font>
30
00022 <font class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR</font>
31
00023 <font class="comment"> * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</font>
32
00024 <font class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</font>
33
00025 <font class="comment"> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</font>
34
00026 <font class="comment"> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</font>
35
00027 <font class="comment"> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</font>
36
00028 <font class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</font>
37
00029 <font class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</font>
38
00030 <font class="comment"> */</font>
6
<!-- Generated by Doxygen 1.4.2 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
9
<a class="el" href="dir_000000.html">include</a> / <a class="el" href="dir_000002.html">FLAC</a></div>
10
<h1>callback.h</h1><a href="callback_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* libFLAC - Free Lossless Audio Codec library</span>
11
00002 <span class="comment"> * Copyright (C) 2004,2005,2006,2007 Josh Coalson</span>
12
00003 <span class="comment"> *</span>
13
00004 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>
14
00005 <span class="comment"> * modification, are permitted provided that the following conditions</span>
15
00006 <span class="comment"> * are met:</span>
16
00007 <span class="comment"> *</span>
17
00008 <span class="comment"> * - Redistributions of source code must retain the above copyright</span>
18
00009 <span class="comment"> * notice, this list of conditions and the following disclaimer.</span>
19
00010 <span class="comment"> *</span>
20
00011 <span class="comment"> * - Redistributions in binary form must reproduce the above copyright</span>
21
00012 <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span>
22
00013 <span class="comment"> * documentation and/or other materials provided with the distribution.</span>
23
00014 <span class="comment"> *</span>
24
00015 <span class="comment"> * - Neither the name of the Xiph.org Foundation nor the names of its</span>
25
00016 <span class="comment"> * contributors may be used to endorse or promote products derived from</span>
26
00017 <span class="comment"> * this software without specific prior written permission.</span>
27
00018 <span class="comment"> *</span>
28
00019 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span>
29
00020 <span class="comment"> * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span>
30
00021 <span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span>
31
00022 <span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR</span>
32
00023 <span class="comment"> * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
33
00024 <span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
34
00025 <span class="comment"> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
35
00026 <span class="comment"> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span>
36
00027 <span class="comment"> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span>
37
00028 <span class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span>
38
00029 <span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
39
00030 <span class="comment"> */</span>
40
00032 <font class="preprocessor">#ifndef FLAC__CALLBACK_H</font>
41
00033 <font class="preprocessor"></font><font class="preprocessor">#define FLAC__CALLBACK_H</font>
42
00034 <font class="preprocessor"></font>
43
00035 <font class="preprocessor">#include "ordinals.h"</font>
44
00036 <font class="preprocessor">#include <stdlib.h></font> <font class="comment">/* for size_t */</font>
41
00032 <span class="preprocessor">#ifndef FLAC__CALLBACK_H</span>
42
00033 <span class="preprocessor"></span><span class="preprocessor">#define FLAC__CALLBACK_H</span>
43
00034 <span class="preprocessor"></span>
44
00035 <span class="preprocessor">#include "ordinals.h"</span>
45
00036 <span class="preprocessor">#include <stdlib.h></span> <span class="comment">/* for size_t */</span>
46
00081 <font class="preprocessor">#ifdef __cplusplus</font>
47
00082 <font class="preprocessor"></font><font class="keyword">extern</font> <font class="stringliteral">"C"</font> {
48
00083 <font class="preprocessor">#endif</font>
49
00084 <font class="preprocessor"></font>
50
00085 <font class="keyword">typedef</font> <font class="keywordtype">void</font>* FLAC__IOHandle;
52
<a name="l00098"></a><a class="code" href="group__flac__callbacks.html#a1">00098</a> <font class="keyword">typedef</font> size_t (*<a class="code" href="callback_8h.html#a1">FLAC__IOCallback_Read</a>) (<font class="keywordtype">void</font> *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle);
54
<a name="l00111"></a><a class="code" href="group__flac__callbacks.html#a2">00111</a> <font class="keyword">typedef</font> size_t (*<a class="code" href="callback_8h.html#a2">FLAC__IOCallback_Write</a>) (<font class="keyword">const</font> <font class="keywordtype">void</font> *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle);
56
<a name="l00124"></a><a class="code" href="group__flac__callbacks.html#a3">00124</a> <font class="keyword">typedef</font> int (*<a class="code" href="callback_8h.html#a3">FLAC__IOCallback_Seek</a>) (FLAC__IOHandle handle, FLAC__int64 offset, <font class="keywordtype">int</font> whence);
58
<a name="l00135"></a><a class="code" href="group__flac__callbacks.html#a4">00135</a> <font class="keyword">typedef</font> FLAC__int64 (*<a class="code" href="callback_8h.html#a4">FLAC__IOCallback_Tell</a>) (FLAC__IOHandle handle);
60
<a name="l00146"></a><a class="code" href="group__flac__callbacks.html#a5">00146</a> <font class="keyword">typedef</font> int (*<a class="code" href="callback_8h.html#a5">FLAC__IOCallback_Eof</a>) (FLAC__IOHandle handle);
62
<a name="l00156"></a><a class="code" href="group__flac__callbacks.html#a6">00156</a> <font class="keyword">typedef</font> int (*<a class="code" href="callback_8h.html#a6">FLAC__IOCallback_Close</a>) (FLAC__IOHandle handle);
64
<a name="l00166"></a><a class="code" href="structFLAC____IOCallbacks.html">00166</a> <font class="keyword">typedef</font> <font class="keyword">struct </font>{
65
00167 <a class="code" href="callback_8h.html#a1">FLAC__IOCallback_Read</a> read;
66
00168 <a class="code" href="callback_8h.html#a2">FLAC__IOCallback_Write</a> write;
67
00169 <a class="code" href="callback_8h.html#a3">FLAC__IOCallback_Seek</a> seek;
68
00170 <a class="code" href="callback_8h.html#a4">FLAC__IOCallback_Tell</a> tell;
69
00171 <a class="code" href="callback_8h.html#a5">FLAC__IOCallback_Eof</a> eof;
70
00172 <a class="code" href="callback_8h.html#a6">FLAC__IOCallback_Close</a> close;
71
00173 } <a class="code" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>;
73
00175 <font class="comment">/* \} */</font>
75
00177 <font class="preprocessor">#ifdef __cplusplus</font>
76
00178 <font class="preprocessor"></font>}
77
00179 <font class="preprocessor">#endif</font>
78
00180 <font class="preprocessor"></font>
79
00181 <font class="preprocessor">#endif</font>
80
</pre></div><hr><address><small>Generated on Fri Feb 4 18:39:10 2005 for FLAC by
81
<a href="http://www.doxygen.org/index.html">
82
<img src="doxygen.gif" alt="doxygen" align="middle" border=0
83
width=110 height=53></a>1.2.14 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
84
© 1997-2002</small></address>
47
00081 <span class="preprocessor">#ifdef __cplusplus</span>
48
00082 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
49
00083 <span class="preprocessor">#endif</span>
50
00084 <span class="preprocessor"></span>
51
<a name="l00088"></a><a class="code" href="group__flac__callbacks.html#ga0">00088</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span>* <a class="code" href="group__flac__callbacks.html#ga0">FLAC__IOHandle</a>;
53
<a name="l00101"></a><a class="code" href="group__flac__callbacks.html#ga1">00101</a> <span class="keyword">typedef</span> size_t (*<a class="code" href="group__flac__callbacks.html#ga1">FLAC__IOCallback_Read</a>) (<span class="keywordtype">void</span> *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle);
55
<a name="l00114"></a><a class="code" href="group__flac__callbacks.html#ga2">00114</a> <span class="keyword">typedef</span> size_t (*<a class="code" href="group__flac__callbacks.html#ga2">FLAC__IOCallback_Write</a>) (<span class="keyword">const</span> <span class="keywordtype">void</span> *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle);
57
<a name="l00127"></a><a class="code" href="group__flac__callbacks.html#ga3">00127</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__flac__callbacks.html#ga3">FLAC__IOCallback_Seek</a>) (FLAC__IOHandle handle, FLAC__int64 offset, <span class="keywordtype">int</span> whence);
59
<a name="l00138"></a><a class="code" href="group__flac__callbacks.html#ga4">00138</a> <span class="keyword">typedef</span> FLAC__int64 (*<a class="code" href="group__flac__callbacks.html#ga4">FLAC__IOCallback_Tell</a>) (FLAC__IOHandle handle);
61
<a name="l00149"></a><a class="code" href="group__flac__callbacks.html#ga5">00149</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__flac__callbacks.html#ga5">FLAC__IOCallback_Eof</a>) (FLAC__IOHandle handle);
63
<a name="l00159"></a><a class="code" href="group__flac__callbacks.html#ga6">00159</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__flac__callbacks.html#ga6">FLAC__IOCallback_Close</a>) (FLAC__IOHandle handle);
65
<a name="l00169"></a><a class="code" href="structFLAC____IOCallbacks.html">00169</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
66
00170 <a class="code" href="group__flac__callbacks.html#ga1">FLAC__IOCallback_Read</a> read;
67
00171 <a class="code" href="group__flac__callbacks.html#ga2">FLAC__IOCallback_Write</a> write;
68
00172 <a class="code" href="group__flac__callbacks.html#ga3">FLAC__IOCallback_Seek</a> seek;
69
00173 <a class="code" href="group__flac__callbacks.html#ga4">FLAC__IOCallback_Tell</a> tell;
70
00174 <a class="code" href="group__flac__callbacks.html#ga5">FLAC__IOCallback_Eof</a> eof;
71
00175 <a class="code" href="group__flac__callbacks.html#ga6">FLAC__IOCallback_Close</a> close;
72
00176 } <a class="code" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>;
74
00178 <span class="comment">/* \} */</span>
76
00180 <span class="preprocessor">#ifdef __cplusplus</span>
77
00181 <span class="preprocessor"></span>}
78
00182 <span class="preprocessor">#endif</span>
79
00183 <span class="preprocessor"></span>
80
00184 <span class="preprocessor">#endif</span>
83
<div class="copyright">
84
<!-- @@@ oh so hacky -->
88
Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
90
<td width="1%" align="right">
91
<a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=13478&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
96
<!-- Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson -->
97
<!-- Permission is granted to copy, distribute and/or modify this document -->
98
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
99
<!-- or any later version published by the Free Software Foundation; -->
100
<!-- with no invariant sections. -->
101
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->