]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - include/unix/canfestival.h
Removed compilation warnings with some GCC.
[CanFestival-3.git] / include / unix / canfestival.h
1 #ifndef UNIX_H_
2 #define UNIX_H_
3
4 #include "timerscfg.h"
5 #include "can_driver.h"
6 #include "data.h"
7 #include "timers_driver.h"
8 #ifdef WIN32
9 #include <windows.h>
10 typedef HINSTANCE LIB_HANDLE;
11 #else
12 #include <dlfcn.h>
13 typedef void* LIB_HANDLE;
14 #endif
15
16 UNS8 UnLoadCanDriver(LIB_HANDLE handle);
17 LIB_HANDLE LoadCanDriver(char* driver_name);
18 UNS8 canSend(CAN_PORT port, Message *m);
19 CAN_PORT canOpen(s_BOARD *board, CO_Data * d);
20 int canClose(CO_Data * d);
21
22 #endif /*UNIX_H_*/