From 6a931a1185aa8170636b8f55c38ad91af6f897f6 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Thu, 18 Dec 2014 12:31:18 +0100 Subject: KIRO Server can now issue a client reallocation command --- src/kiro-server.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/kiro-server.h') 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 -- cgit v1.2.3