2018-12-10 01:28:32 +08:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 Philippe Gerum <rpm@xenomai.org>
|
|
|
|
*/
|
|
|
|
|
2019-03-10 23:25:02 +08:00
|
|
|
#ifndef _EVL_EVL_H
|
|
|
|
#define _EVL_EVL_H
|
2018-12-10 01:28:32 +08:00
|
|
|
|
|
|
|
#include <signal.h>
|
2019-03-10 23:25:02 +08:00
|
|
|
#include <evl/clock.h>
|
|
|
|
#include <evl/mutex.h>
|
2019-06-13 02:59:49 +08:00
|
|
|
#include <evl/event.h>
|
2019-03-10 23:25:02 +08:00
|
|
|
#include <evl/sem.h>
|
2019-06-27 00:24:38 +08:00
|
|
|
#include <evl/flags.h>
|
2019-03-10 23:25:02 +08:00
|
|
|
#include <evl/syscall.h>
|
|
|
|
#include <evl/thread.h>
|
2019-06-30 17:55:37 +08:00
|
|
|
#include <evl/sched.h>
|
2019-03-10 23:25:02 +08:00
|
|
|
#include <evl/xbuf.h>
|
|
|
|
#include <evl/poll.h>
|
|
|
|
#include <evl/proxy.h>
|
2018-12-10 01:28:32 +08:00
|
|
|
|
2020-04-28 18:17:57 +08:00
|
|
|
#define __EVL__ 17 /* API version */
|
2019-11-13 16:25:53 +08:00
|
|
|
|
2020-06-01 00:35:53 +08:00
|
|
|
#define EVL_ABI_PREREQ 25
|
2020-02-28 00:22:13 +08:00
|
|
|
|
2019-11-13 16:25:53 +08:00
|
|
|
struct evl_version {
|
|
|
|
int api_level; /* libevl.so: __EVL__ */
|
2020-03-07 00:20:01 +08:00
|
|
|
int abi_level; /* core: EVL_ABI_PREREQ, -1 for ESHI */
|
2019-11-13 17:00:39 +08:00
|
|
|
const char *version_string;
|
2019-11-13 16:25:53 +08:00
|
|
|
};
|
2018-12-10 01:28:32 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int evl_init(void);
|
|
|
|
|
|
|
|
void evl_sigdebug_handler(int sig, siginfo_t *si, void *ctxt);
|
|
|
|
|
|
|
|
unsigned int evl_detect_fpu(void);
|
|
|
|
|
2019-11-13 16:25:53 +08:00
|
|
|
struct evl_version evl_get_version(void);
|
|
|
|
|
2018-12-10 01:28:32 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-03-10 23:25:02 +08:00
|
|
|
#endif /* _EVL_EVL_H */
|