BusBoy
2
|
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | CExternalDataSinkCallbacksStruct |
Typedefs | |
typedef struct CExternalDataFileSinkStruct * | CExternalDataFileSinkPtr |
Copyright 2014 Google Inc. More... | |
typedef bool(* | BusboyDataSinkWritePtr )(char *buf, size_t num) |
Function type for callback to write the next chunk of a file. More... | |
typedef void(* | BusboyCloseDataSinkPtr )() |
Function type for callback to close output file. More... | |
typedef struct CExternalDataSinkCallbacksStruct | CExternalDataSinkCallbacks |
Functions | |
CExternalDataFileSinkPtr | CExternalDataFileSink_newDataFileSink (const CExternalDataSinkCallbacks &dataSinkCallbacks) |
Copyright 2014 Google Inc. More... | |
typedef void(* BusboyCloseDataSinkPtr)() |
Function type for callback to close output file.
typedef bool(* BusboyDataSinkWritePtr)(char *buf, size_t num) |
Function type for callback to write the next chunk of a file.
Returns number of bytes actually written. Returns true if success
buf | array to write data from |
number | of bytes to write |
typedef struct CExternalDataFileSinkStruct* CExternalDataFileSinkPtr |
Copyright 2014 Google Inc.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
typedef struct CExternalDataSinkCallbacksStruct CExternalDataSinkCallbacks |
CExternalDataFileSinkPtr CExternalDataFileSink_newDataFileSink | ( | const CExternalDataSinkCallbacks & | callbacks | ) |
Copyright 2014 Google Inc.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2014 Google Inc. All rights reserved.