-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathengine.h
36 lines (24 loc) · 865 Bytes
/
engine.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
31
32
33
34
35
36
// engine.h
#ifndef ENGINE_H
#define ENGINE_H
// includes
#include "util.h"
#include "pipex.h"
// types
typedef struct {
pipex_t pipex[1];
} engine_t;
// variables
extern engine_t Engine[1];
// functions
extern bool engine_is_ok (const engine_t * engine);
extern void engine_open (engine_t * engine);
extern void engine_close (engine_t * engine);
extern bool engine_active (engine_t * engine);
extern bool engine_eof (engine_t * engine);
extern void engine_send (engine_t * engine, const char format[], ...);
extern void engine_send_queue (engine_t * engine, const char format[], ...);
extern bool engine_get_non_blocking(engine_t * engine, char string[]);
extern void engine_get (engine_t * engine, char string[]);
extern void engine_set_nice_value(engine_t * engine, int value);
#endif // !defined ENGINE_H