projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #51 from fmorgner/master
[umurmur.git]
/
src
/
sharedmemory.h
diff --git
a/src/sharedmemory.h
b/src/sharedmemory.h
index e4d44949fd3907a9aa3aced9b30fde2e9309c523..b668c325a603498a96e218e0821769bc1bc5bc50 100644
(file)
--- a/
src/sharedmemory.h
+++ b/
src/sharedmemory.h
@@
-4,19
+4,20
@@
#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
+#include "sharedmemory_struct.h"
\r
\r
\r
-int shmid;
\r
-shm_t *shmptr;
\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
\r
void Sharedmemory_deinit(void);
\r
\r
-#endif
// SHAREDMEMORY_H_777736932196
\ No newline at end of file
+#endif // SHAREDMEMORY_H_777736932196
\ No newline at end of file