Commit | Line | Data |
---|---|---|
f9e5ce61 PMF |
1 | #ifndef USTCOMM_H |
2 | #define USTCOMM_H | |
3 | ||
4 | #include <sys/types.h> | |
5 | ||
d0b5f2b9 | 6 | struct ustcomm_app { |
b0540e11 | 7 | /* the "server" socket for serving the external requests */ |
d0b5f2b9 PMF |
8 | int fd; |
9 | char *socketpath; | |
10 | }; | |
11 | ||
12 | struct ustcomm_ustd { | |
b0540e11 | 13 | /* the "server" socket for serving the external requests */ |
d0b5f2b9 PMF |
14 | int fd; |
15 | char *socketpath; | |
16 | }; | |
17 | ||
18 | int send_message(pid_t pid, const char *msg, char **reply); | |
19 | ||
3847c3ba PMF |
20 | int ustcomm_ustd_recv_message(struct ustcomm_ustd *ustd, char **msg); |
21 | int ustcomm_app_recv_message(struct ustcomm_app *app, char **msg); | |
22 | ||
d0b5f2b9 PMF |
23 | int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle); |
24 | ||
25 | int ustcomm_init_ustd(struct ustcomm_ustd *handle); | |
f9e5ce61 PMF |
26 | |
27 | #endif /* USTCOMM_H */ |