forked from ultmaster/runexe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInteraction.h
30 lines (22 loc) · 889 Bytes
/
Interaction.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef RUNEXE_INTERACTION_H
#define RUNEXE_INTERACTION_H
#include <string>
#include <vector>
#include <pthread.h>
#include "InvocationParams.h"
#include "InvocationResult.h"
namespace interaction {
struct StreamProxyConfiguration {
std::string firstProcessName;
std::string secondProcessName;
std::string recordFileName;
int inputStreamFd;
int outputStreamFd;
StreamProxyConfiguration(const std::string &firstProcessName, const std::string &secondProcessName,
const std::string &recordFileName, int inputStreamFd, int outputStreamFd);
};
void *streamProxyRun(void *arg);
std::vector<runexe::InvocationResult> interact(runexe::InvocationParams paramProgram,
runexe::InvocationParams paramInteractor);
}
#endif //RUNEXE_INTERACTION_H