libevl/include/evl/evl.h

50 lines
886 B
C
Raw Normal View History

/*
* 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
#include <signal.h>
2019-03-10 23:25:02 +08:00
#include <evl/clock.h>
#include <evl/mutex.h>
#include <evl/event.h>
2019-03-10 23:25:02 +08:00
#include <evl/sem.h>
#include <evl/flags.h>
2019-03-10 23:25:02 +08:00
#include <evl/syscall.h>
#include <evl/thread.h>
#include <evl/sched.h>
2019-03-10 23:25:02 +08:00
#include <evl/xbuf.h>
#include <evl/poll.h>
#include <evl/proxy.h>
#define __EVL__ 17 /* API version */
#define EVL_ABI_PREREQ 23
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 */
const char *version_string;
};
#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);
struct evl_version evl_get_version(void);
#ifdef __cplusplus
}
#endif
2019-03-10 23:25:02 +08:00
#endif /* _EVL_EVL_H */