2016-05-24 07:27:26 +00:00
|
|
|
/* Copyright 2016 secXsQuared
|
|
|
|
* Distributed under GPL license
|
|
|
|
* See COPYING under root for details
|
|
|
|
*/
|
|
|
|
|
2018-01-26 08:43:22 +00:00
|
|
|
#ifndef _TYPE_H_
|
|
|
|
#define _TYPE_H_
|
|
|
|
|
|
|
|
#define KABI __attribute__((sysv_abi))
|
|
|
|
#define UAPI __attribute__((sysv_abi))
|
2016-08-28 00:20:38 +00:00
|
|
|
|
2016-05-22 01:54:29 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2016-08-28 00:20:38 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
typedef int32_t (*callback_func_t)(void *kernel_args, void *user_args);
|
2016-08-28 00:20:38 +00:00
|
|
|
|
2016-08-28 09:14:22 +00:00
|
|
|
#define STRUCT_PACKED __attribute__((packed))
|
|
|
|
|
2017-02-01 03:26:08 +00:00
|
|
|
#define UNREFERENCED(x) {(x) = (x);}
|
|
|
|
|
2016-05-22 01:54:29 +00:00
|
|
|
#endif
|