vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / equalizer / EqualizerAddOn.h
blobfc4945b232e97dfcad1d442cb3e35d65fe6ed402
1 /*
2 * Copyright 2012, Gerasim Troeglazov (3dEyes**), 3dEyes@gmail.com.
3 * All rights reserved.
4 * Distributed under the terms of the MIT License.
5 */
7 #ifndef __EQUALIZER_ADDON_H__
8 #define __EQUALIZER_ADDON_H__
10 #include <MediaAddOn.h>
12 class EqualizerAddOn : public BMediaAddOn {
13 public:
14 virtual ~EqualizerAddOn();
15 explicit EqualizerAddOn(image_id image);
16 virtual status_t InitCheck(const char** text);
17 virtual int32 CountFlavors();
18 virtual status_t GetFlavorAt(int32 idx, const flavor_info** info);
19 virtual BMediaNode* InstantiateNodeFor(const flavor_info* info, BMessage* config,
20 status_t *err);
21 virtual status_t GetConfigurationFor(BMediaNode* node, BMessage* message);
22 virtual bool WantsAutoStart();
23 virtual status_t AutoStart(int count, BMediaNode** node, int32* id, bool* more);
26 #endif //__EQUALIZER_ADDON_H__