052c896aca17ad6561e4d84910e617d04ca8ae07
9 struct ustcomm_connection
{
10 struct list_head list
;
14 /* ustcomm_server must be shallow-copyable */
15 struct ustcomm_server
{
16 /* the "server" socket for serving the external requests */
20 struct list_head connections
;
24 struct ustcomm_server server
;
28 struct ustcomm_server server
;
31 /* ustcomm_source must be shallow-copyable */
32 struct ustcomm_source
{
37 char *strdup_malloc(const char *s
);
39 //int send_message_pid(pid_t pid, const char *msg, char **reply);
41 int ustcomm_ustd_recv_message(struct ustcomm_ustd
*ustd
, char **msg
, struct ustcomm_source
*src
, int timeout
);
42 int ustcomm_app_recv_message(struct ustcomm_app
*app
, char **msg
, struct ustcomm_source
*src
, int timeout
);
44 int ustcomm_init_app(pid_t pid
, struct ustcomm_app
*handle
);
46 int ustcomm_init_ustd(struct ustcomm_ustd
*handle
);
48 int ustcomm_connect_app(pid_t pid
, struct ustcomm_connection
*conn
);
49 int ustcomm_send_request(struct ustcomm_connection
*conn
, char *req
, char **reply
);
51 int nth_token_is(char *str
, char *token
, int tok_no
);
53 char *nth_token(char *str
, int tok_no
);
55 #endif /* USTCOMM_H */
This page took 0.029589 seconds and 3 git commands to generate.