projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add compile-time check for POLARSSL_VERSION_FEATURES before using version_get_string().
[umurmur.git]
/
src
/
sharedmemory.h
diff --git
a/src/sharedmemory.h
b/src/sharedmemory.h
index 26001f75f94635623a05b8b3476e45a18a7c4032..b668c325a603498a96e218e0821769bc1bc5bc50 100644
(file)
--- a/
src/sharedmemory.h
+++ b/
src/sharedmemory.h
@@
-1,17
+1,23
@@
+#ifndef SHAREDMEMORY_H_777736932196
\r
+#define SHAREDMEMORY_H_777736932196
\r
+
\r
#include <stdlib.h>
\r
#include <string.h>
\r
\r
#include <stdlib.h>
\r
#include <string.h>
\r
\r
-#include <sys/shm.h>
\r
+#include <fcntl.h> /* For O_* constants */
\r
+#include <unistd.h>
\r
+#include <sys/mman.h>
\r
\r
\r
+#include <netinet/in.h>
\r
#include "util.h"
\r
#include "conf.h"
\r
#include "client.h"
\r
#include "channel.h"
\r
#include "util.h"
\r
#include "conf.h"
\r
#include "client.h"
\r
#include "channel.h"
\r
-#include "sharedmemory_struct.h"
\r
-
\r
-int shmid;
\r
-shm_t *shmptr;
\r
+#include "sharedmemory_struct.h"
\r
\r
\r
-void Sharedmemory_init(
void
);
\r
+void Sharedmemory_init(
int bindport, int bindport6
);
\r
void Sharedmemory_update(void);
\r
void Sharedmemory_update(void);
\r
+void Sharedmemory_alivetick(void);
\r
void Sharedmemory_deinit(void);
\r
void Sharedmemory_deinit(void);
\r
+
\r
+#endif // SHAREDMEMORY_H_777736932196
\ No newline at end of file