FreeNOS
|
#include <DatastoreClient.h>
Public Member Functions | |
DatastoreClient (const ProcessID pid=DATASTORE_PID) | |
Class constructor function. More... | |
Datastore::Result | registerBuffer (const char *key, void *buffer, const Size size) const |
Add a new buffer. More... | |
Private Attributes | |
const ProcessID | m_pid |
Process identifier of the datastore server. More... | |
Datastore client.
Provides a simple interface to the datastore server
Definition at line 39 of file DatastoreClient.h.
DatastoreClient::DatastoreClient | ( | const ProcessID | pid = DATASTORE_PID | ) |
Class constructor function.
pid | (Optional) Process identifier of the datastore server |
Definition at line 23 of file DatastoreClient.cpp.
Datastore::Result DatastoreClient::registerBuffer | ( | const char * | key, |
void * | buffer, | ||
const Size | size | ||
) | const |
Add a new buffer.
If the buffer already exists, it is re-used.
Definition at line 28 of file DatastoreClient.cpp.
References DatastoreMessage::action, DatastoreMessage::address, MemoryBlock::copy(), StrictSingleton< ChannelClient >::instance(), Datastore::IpcError, DatastoreMessage::key, m_pid, Datastore::RegisterBuffer, ChannelMessage::Request, DatastoreMessage::result, DatastoreMessage::size, ChannelClient::Success, and ChannelMessage::type.
Referenced by FileSystemServer::mount().
|
private |
Process identifier of the datastore server.
Definition at line 62 of file DatastoreClient.h.
Referenced by registerBuffer().