summaryrefslogtreecommitdiffstats
path: root/src/server/ipc.h
diff options
context:
space:
mode:
authorsr2012-08-30 00:36:54 +0200
committersr2012-08-30 00:36:54 +0200
commit5b9b2174512d97399c68172bffe91cf928b1400a (patch)
treebf2cb9a7ae67cfe922fc7d2a6dcb432eaad4a2d9 /src/server/ipc.h
parentFix linebreak, add comment (diff)
downloaddnbd3-5b9b2174512d97399c68172bffe91cf928b1400a.tar.gz
dnbd3-5b9b2174512d97399c68172bffe91cf928b1400a.tar.xz
dnbd3-5b9b2174512d97399c68172bffe91cf928b1400a.zip
[SERVER] Set _FILE_OFFSET_BITS=64 so that images >4GiB will be handled properly on 32bit
[SERVER] Change IPC interface to be able to handle more than 1 request per connection [SERVER] Change IPC interface to use select() so it can handle multiple connections at the same time [SERVER] Re-Implement dnbd3_add_image() to work with image list [SERVER] Add lots of sanity/safety checks and error messages when loading/adding an image
Diffstat (limited to 'src/server/ipc.h')
-rw-r--r--src/server/ipc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/ipc.h b/src/server/ipc.h
index 4a405ee..d4ec7db 100644
--- a/src/server/ipc.h
+++ b/src/server/ipc.h
@@ -27,7 +27,9 @@
#define IPC_ADDIMG 3
#define IPC_DELIMG 4
-void* dnbd3_ipc_receive();
+void* dnbd3_ipc_mainloop();
+
+void dnbd3_ipc_shutdown();
void dnbd3_ipc_send(int cmd);
@@ -35,6 +37,7 @@ void dnbd3_ipc_send(int cmd);
#pragma pack(1)
typedef struct
{
+ uint32_t handle;// 4byte
uint32_t cmd; // 4byte
uint32_t size; // 4byte
uint32_t error; // 4byte