vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / usb_webcam / CamStreamingDeframer.h
blobce8a2ed25f127ea6f348f06b14476438c4578bec
1 /*
2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _CAM_STREAMING_DEFRAMER_H
6 #define _CAM_STREAMING_DEFRAMER_H
8 #include "CamDeframer.h"
10 class CamStreamingDeframer : public CamDeframer {
11 public:
12 CamStreamingDeframer(CamDevice *device);
13 virtual ~CamStreamingDeframer();
14 // BPositionIO interface
15 // write from usb transfers
16 virtual ssize_t Write(const void *buffer, size_t size);
18 private:
20 BMallocIO fInputBuff;
26 #endif /* _CAM_STREAMING_DEFRAMER_H */