BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
external
capi
CExternalDataFileSinkAPI.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_C_EXTERNAL_DATA_FILE_SINK_API_H__
18
#define __BUSBOY_C_EXTERNAL_DATA_FILE_SINK_API_H__
19
20
#include <stddef.h>
21
22
typedef
struct
CExternalDataFileSinkStruct
*
CExternalDataFileSinkPtr
;
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
35
typedef
bool (*
BusboyDataSinkWritePtr
)(
36
char
* buf,
37
size_t
num
38
);
39
43
typedef
void (*
BusboyCloseDataSinkPtr
)();
44
45
46
struct
CExternalDataSinkCallbacksStruct
{
47
BusboyDataSinkWritePtr
writeCallback
;
48
BusboyCloseDataSinkPtr
closeCallback
;
49
};
50
51
typedef
struct
CExternalDataSinkCallbacksStruct
CExternalDataSinkCallbacks
;
52
53
CExternalDataFileSinkPtr
CExternalDataFileSink_newDataFileSink
(
54
const
CExternalDataSinkCallbacks
& dataSinkCallbacks
55
);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
62
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.