Haka
ctl_comm.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 
5 #ifndef CTL_COMM_H
6 #define CTL_COMM_H
7 
8 #include <haka/types.h>
9 #include <wchar.h>
10 
11 bool ctl_send_chars(int fd, const char *str, size_t len);
12 bool ctl_send_wchars(int fd, const wchar_t *str, size_t len);
13 bool ctl_send_int(int fd, int32 i);
14 bool ctl_send_status(int fd, int ret, const char *err);
15 
16 char *ctl_recv_chars(int fd, size_t *len);
17 wchar_t *ctl_recv_wchars(int fd, size_t *len);
18 int32 ctl_recv_int(int fd);
19 int ctl_recv_status(int fd);
20 
21 void ctl_output_redirect_chars(int fd);
22 
23 bool ctl_expect_chars(int fd, const char *str);
24 
25 #endif /* CTL_COMM_H */
HAKA_32BIT_TYPE int32
Definition: types.h:24