btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / index_server / TextDataBase.h
blob6b594e801ec4de002943f75b39f5dfeaac772fb5
1 /*
2 * Copyright 2010, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Clemens Zeidler <haiku@clemens-zeidler.de>
7 */
8 #ifndef TEXT_DATA_BASE_H
9 #define TEXT_DATA_BASE_H
12 #include <Entry.h>
15 class TextWriteDataBase {
16 public:
17 virtual ~TextWriteDataBase() {}
19 virtual status_t InitCheck() = 0;
21 virtual status_t AddDocument(const entry_ref& ref) = 0;
22 virtual status_t RemoveDocument(const entry_ref& ref) = 0;
23 virtual status_t Commit() = 0;
27 #endif // TEXT_DATA_BASE_H