diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2015-01-30 18:26:50 +0100 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2015-01-30 18:26:50 +0100 |
commit | 8f60d5536ef04f53969bb0a6e6ba5bea46f734de (patch) | |
tree | ae15468bd5346b4402d84cbaf0cb6657c0d17bd5 /src/kiro-server.h | |
parent | fb72ad6a4685274d37a73b048d50a7761c19f3c6 (diff) | |
parent | 5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5 (diff) | |
download | kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.tar.gz kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.tar.bz2 kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.tar.xz kiro-8f60d5536ef04f53969bb0a6e6ba5bea46f734de.zip |
Merge pull request #17 from ufo-kit/serverRealloc
Added server-side reallocation request
Diffstat (limited to 'src/kiro-server.h')
-rw-r--r-- | src/kiro-server.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kiro-server.h b/src/kiro-server.h index 7e42159..655140a 100644 --- a/src/kiro-server.h +++ b/src/kiro-server.h @@ -129,6 +129,19 @@ void kiro_server_free (KiroServer *server); */ int kiro_server_start (KiroServer *server, const char *bind_addr, const char *bind_port, void *mem, size_t mem_size); + +/** + * kiro_server_realloc - Change the memory that is provided by the server + * @server: #KiroServer to perform the operation on + * @mem: (transfer none): Pointer to the memory that is to be provided + * @mem_size: Size in bytes of the given memory + * Description: + * Changes the memory that is provided by the server. All connected clients + * will automatically be informed about this change. + */ +void kiro_server_realloc (KiroServer *self, void* mem, size_t mem_size); + + /** * kiro_server_stop - Stops the server * @server: #KiroServer to perform the operation on |