Go to the source code of this file.
UI functions | |
void * | dssi_shm_allocate (size_t bytes, char **key, char **used_flag) |
This function should be used in the UI to allocate a segment of shared memory and generate a key for this segment that can be sent to the plugin. | |
int | dssi_shm_free (const char *key) |
This should always be called by the UI when it wants to deallocate a shared memory segment allocated using dssi_shm_allocate(). | |
Plugin functions | |
void * | dssi_shm_attach (const char *key, void *old_ptr, size_t *size) |
This function should be used by the plugin to attach to a shared memory segment that has been allocated by the UI using dssi_shm_allocate(). | |
int | dssi_shm_detach (void *ptr) |
This should always be called by the plugin when it wants to detach from a memory segment that has been attached using dssi_shm_attach(). |
It is used by the DSSIUIClient class on the UI side, but can also be used on its own since it has no dependencies on DSSIPlugin or DSSIUIClient, and is written to work in both C and C++ programs. There are a few rules on how to use it (you can of course do whatever you want with it, but if you don't follow the rules it might break):
|
This function should be used in the UI to allocate a segment of shared memory and generate a key for this segment that can be sent to the plugin.
|
|
This function should be used by the plugin to attach to a shared memory segment that has been allocated by the UI using dssi_shm_allocate().
|
|
This should always be called by the plugin when it wants to detach from a memory segment that has been attached using dssi_shm_attach().
|
|
This should always be called by the UI when it wants to deallocate a shared memory segment allocated using dssi_shm_allocate().
|