vfs: check userland buffers before reading them.
[haiku.git] / src / servers / registrar / mime / CreateAppMetaMimeThread.h
blob90af2a088e1445fdcdbd36901ef1e8f669257b68
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //---------------------------------------------------------------------
5 /*!
6 \file CreateAppMetaMimeThread.h
7 CreateAppMetaMimeThread interface declaration
8 */
10 #ifndef _CREATE_APP_META_MIME_THREAD_H
11 #define _CREATE_APP_META_MIME_THREAD_H
14 #include <mime/AppMetaMimeCreator.h>
16 #include "MimeUpdateThread.h"
19 namespace BPrivate {
20 namespace Storage {
21 namespace Mime {
24 class CreateAppMetaMimeThread : public MimeUpdateThread {
25 public:
26 CreateAppMetaMimeThread(const char* name,
27 int32 priority, Database* database,
28 MimeEntryProcessor::DatabaseLocker*
29 databaseLocker,
30 BMessenger managerMessenger,
31 const entry_ref* root, bool recursive,
32 int32 force, BMessage* replyee);
34 virtual status_t DoMimeUpdate(const entry_ref* entry,
35 bool* _entryIsDir);
37 private:
38 AppMetaMimeCreator fCreator;
42 } // namespace Mime
43 } // namespace Storage
44 } // namespace BPrivate
46 #endif // _CREATE_APP_META_MIME_THREAD_H