X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=shm_utils%2Fmon-umurmurd%2Fmon-umurmurd.c;h=7c02759df65a01b766e3b078f21917ac24810482;hb=39e9f7ff9fff1437907b4ce5874218ba1fa11fc3;hp=7cd5697f68abcbab3d98fdb0c4eec86516ed86c5;hpb=0f96d841842a2f4adaaf9b271dc3f3e24fa5b009;p=umurmur.git diff --git a/shm_utils/mon-umurmurd/mon-umurmurd.c b/shm_utils/mon-umurmurd/mon-umurmurd.c index 7cd5697..7c02759 100644 --- a/shm_utils/mon-umurmurd/mon-umurmurd.c +++ b/shm_utils/mon-umurmurd/mon-umurmurd.c @@ -7,11 +7,15 @@ #include #include #include -#include "../../src/sharedmemory.h" -#include "../../src/sharedmemory_global.h" + +#include "sharedmemory_struct.h" enum{ NOP_SHM, WAIT_ATTACH_SHM, TRY_ATTACH_SHM, MAT_SHM, CLEAN_UP_SHM, RUN_SHM }; +int shm_fd; +shm_t *shmptr = NULL; +char shm_file_name[128]; + int wait = 0, opt; uint8_t last, shm_statem = TRY_ATTACH_SHM; @@ -161,4 +165,4 @@ int cc; { exit(EXIT_FAILURE); //You dont have to exit you could just report the fact that the data is not valid } -} \ No newline at end of file +}