vfs: check userland buffers before reading them.
[haiku.git] / src / apps / haikudepot / server / AbstractSingleFileServerProcess.h
blobd069d7bc0da3b00dab176deffa4c2feb89ac4a60
1 /*
2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
6 #ifndef ABSTRACT_SINGLE_FILE_SERVER_PROCESS_H
7 #define ABSTRACT_SINGLE_FILE_SERVER_PROCESS_H
10 #include "AbstractServerProcess.h"
13 class AbstractSingleFileServerProcess : public AbstractServerProcess {
14 public:
15 AbstractSingleFileServerProcess(
16 AbstractServerProcessListener* listener,
17 uint32 options);
18 virtual ~AbstractSingleFileServerProcess();
20 protected:
21 virtual status_t RunInternal();
23 virtual status_t ProcessLocalData() = 0;
25 virtual BString UrlPathComponent() = 0;
27 virtual BPath& LocalPath() = 0;
30 #endif // ABSTRACT_SINGLE_FILE_SERVER_PROCESS_H