48 lines
928 B
C
48 lines
928 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright (C) 2019 Philippe Gerum <rpm@xenomai.org>
|
|
*/
|
|
|
|
#ifndef _EVL_PROXY_H
|
|
#define _EVL_PROXY_H
|
|
|
|
#include <stdarg.h>
|
|
#include <sys/types.h>
|
|
#include <linux/types.h>
|
|
#include <stdio.h>
|
|
#include <uapi/evl/proxy.h>
|
|
#include <uapi/evl/factory.h>
|
|
|
|
#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 */
|