[client] client is now opens shared memory from ivshmem passed fd

This commit is contained in:
Geoffrey McRae
2017-10-19 17:06:42 +11:00
parent 48facb3746
commit 3dd061b895
4 changed files with 162 additions and 47 deletions

View File

@@ -1,13 +1,9 @@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
struct IVSHMEMInit
{
int64_t version;
int64_t clientID;
int64_t unused;
int64_t sharedFD;
};
bool ivshmem_connect(const char * unix_socket);
void ivshmem_close();
void ivshmem_close();
void * ivshmem_get_map();
size_t ivshmem_get_map_size();