FreeNOS
DatastoreClient.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Niek Linnenbank
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __LIB_LIBRUNTIME_DATASTORECLIENT_H
19 #define __LIB_LIBRUNTIME_DATASTORECLIENT_H
20 
21 #include <FreeNOS/API/ProcessID.h>
22 #include <Types.h>
23 #include <Memory.h>
24 #include <Datastore.h>
25 
40 {
41  public:
42 
49 
55  Datastore::Result registerBuffer(const char *key,
56  void *buffer,
57  const Size size) const;
58 
59  private:
60 
63 };
64 
70 #endif /* __LIB_LIBRUNTIME_DATASTORECLIENT_H */
Datastore.h
DatastoreClient
Datastore client.
Definition: DatastoreClient.h:39
Types.h
DATASTORE_PID
#define DATASTORE_PID
Definition: ProcessID.h:39
ProcessID
u32 ProcessID
Process Identification Number.
Definition: Types.h:140
DatastoreClient::registerBuffer
Datastore::Result registerBuffer(const char *key, void *buffer, const Size size) const
Add a new buffer.
Definition: DatastoreClient.cpp:28
Size
unsigned int Size
Any sane size indicator cannot go negative.
Definition: Types.h:128
Datastore::Result
Result
Result codes.
Definition: Datastore.h:42
Memory.h
DatastoreClient::DatastoreClient
DatastoreClient(const ProcessID pid=DATASTORE_PID)
Class constructor function.
Definition: DatastoreClient.cpp:23
DatastoreClient::m_pid
const ProcessID m_pid
Process identifier of the datastore server.
Definition: DatastoreClient.h:62