ust: change communication socket for STREAM
[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
7#include "kcompat.h"
8
9struct ustcomm_connection {
10 struct list_head list;
11 int fd;
12};
13
14struct ustcomm_app {
15 /* the "server" socket for serving the external requests */
16 int listen_fd;
17 char *socketpath;
18
19 struct list_head connections;
20};
21
22struct ustcomm_ustd {
23 /* the "server" socket for serving the external requests */
24 int listen_fd;
25 char *socketpath;
26
27 struct list_head connections;
28};
29
30struct ustcomm_source {
31 struct sockaddr_un addr;
32};
33
34int send_message(pid_t pid, const char *msg, char **reply);
35
36int ustcomm_ustd_recv_message(struct ustcomm_ustd *ustd, char **msg, struct ustcomm_source *src);
37int ustcomm_app_recv_message(struct ustcomm_app *app, char **msg, struct ustcomm_source *src);
38
39int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle);
40
41int ustcomm_init_ustd(struct ustcomm_ustd *handle);
42
43int nth_token_is(char *str, char *token, int tok_no);
44
45char *nth_token(char *str, int tok_no);
46
47#endif /* USTCOMM_H */
This page took 0.022556 seconds and 4 git commands to generate.