diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-10 20:20:10 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-10 20:20:10 +0100 |
commit | e32591388a18c8226e61b8f88b031ed7c88ca153 (patch) | |
tree | 999f6653d0cfac3153679a8352c28f4e92805306 /synth/communication.h | |
parent | b34cab5dd6d4ac16a6a58589397a3d82df38b826 (diff) |
Improved in-synth-cli, still TODO
The CLI can now prepare loading a note without actually loading it
Diffstat (limited to 'synth/communication.h')
-rw-r--r-- | synth/communication.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/synth/communication.h b/synth/communication.h new file mode 100644 index 0000000..27f7186 --- /dev/null +++ b/synth/communication.h @@ -0,0 +1,22 @@ +#ifndef __COMMUNICATION_H__ +#define __COMMUNICATION_H__ + +#include <pthread.h> + +struct suspend_request_t +{ + int prog; //if negative, all programs are affected + bool suspend; //true->suspend, false->use them again + bool done; //must be set to false by the requester, + //must be set to true after processing by the requestee +}; + + +extern pthread_mutex_t suspend_request_mutex; +extern suspend_request_t suspend_request; + + + +void init_communication(); +void uninit_communication(); +#endif |