ust: improve message parsing
[ust.git] / libustcomm / ustcomm.h
... / ...
CommitLineData
1#ifndef USTCOMM_H
2#define USTCOMM_H
3
4#include <sys/types.h>
5#include <sys/un.h>
6
7struct ustcomm_app {
8 /* the "server" socket for serving the external requests */
9 int fd;
10 char *socketpath;
11};
12
13struct ustcomm_ustd {
14 /* the "server" socket for serving the external requests */
15 int fd;
16 char *socketpath;
17};
18
19struct ustcomm_source {
20 struct sockaddr_un addr;
21};
22
23int send_message(pid_t pid, const char *msg, char **reply);
24
25int ustcomm_ustd_recv_message(struct ustcomm_ustd *ustd, char **msg, struct ustcomm_source *src);
26int ustcomm_app_recv_message(struct ustcomm_app *app, char **msg, struct ustcomm_source *src);
27
28int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle);
29
30int ustcomm_init_ustd(struct ustcomm_ustd *handle);
31
32int nth_token_is(char *str, char *token, int tok_no);
33
34char *nth_token(char *str, int tok_no);
35
36#endif /* USTCOMM_H */
This page took 0.022958 seconds and 4 git commands to generate.