| 1 | #ifndef USTCOMM_H |
| 2 | #define USTCOMM_H |
| 3 | |
| 4 | #include <sys/types.h> |
| 5 | |
| 6 | struct ustcomm_app { |
| 7 | /* the socket for serving the external requests */ |
| 8 | int fd; |
| 9 | char *socketpath; |
| 10 | }; |
| 11 | |
| 12 | struct ustcomm_ustd { |
| 13 | /* the socket for serving the external requests */ |
| 14 | int fd; |
| 15 | char *socketpath; |
| 16 | }; |
| 17 | |
| 18 | int send_message(pid_t pid, const char *msg, char **reply); |
| 19 | |
| 20 | int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle); |
| 21 | |
| 22 | int ustcomm_init_ustd(struct ustcomm_ustd *handle); |
| 23 | |
| 24 | #endif /* USTCOMM_H */ |