`ifname` as the argument of `ec_init` and related functions is not
changed, and therefore can be safely retyped to `const char *`. This
allows using string literals. For example:
ec_init(argc > 1 ? argv[1] : "eth0");
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
This way, applications don't need to know the details of every header
file that exists in the API. With a simple:
#include <ethercat.h>
they would get everything. This is specially important because the
order of including the header files is important!
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
This allows the header files to be installed, say in /usr/include/soem
and then included with:
#include <soem/ethercattype.h>
without having to add -I/usr/include/soem.
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
This commit allows sane installation of SOEM on the host system, while
minimally affecting the current usage of cross-compilation.
The changes are:
- CMAKE_INSTALL_PREFIX is not overriden when installing on host,
- header files are installed in include/soem/ when installing on host,
- libsoem.a is installed in lib/ instead of bin/,
- simple_test is not installed on host.
Usage is:
cmake -DHOST_INSTALL=1 .
Closes#21Closes#22
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>