/* * SPDX-License-Identifier: MIT * * Copyright (C) 2019 Philippe Gerum */ #ifndef _EVL_PROXY_H #define _EVL_PROXY_H #include #include #include #include #include #include #define evl_new_proxy(__targetfd, __bufsz, __fmt, __args...) \ evl_create_proxy(__targetfd, __bufsz, 0, EVL_CLONE_PRIVATE, \ __fmt, ##__args) #ifdef __cplusplus extern "C" { #endif int evl_create_proxy(int targetfd, size_t bufsz, size_t granularity, int flags, const char *fmt, ...); ssize_t evl_send_proxy(int proxyfd, const void *buf, size_t count); ssize_t evl_vprint_proxy(int proxyfd, const char *fmt, va_list ap); ssize_t evl_print_proxy(int proxyfd, const char *fmt, ...); ssize_t evl_printf(const char *fmt, ...); extern int proxy_outfd, proxy_errfd; #ifdef __cplusplus } #endif #endif /* _EVL_PROXY_H */