allow linking from c++
libsocketcan with c++ fails linking. Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/106/head^2
parent
6db5d772b4
commit
3a2cec63a4
|
|
@ -28,6 +28,10 @@
|
||||||
|
|
||||||
#include <can_netlink.h>
|
#include <can_netlink.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
int can_do_restart(const char *name);
|
int can_do_restart(const char *name);
|
||||||
int can_do_stop(const char *name);
|
int can_do_stop(const char *name);
|
||||||
int can_do_start(const char *name);
|
int can_do_start(const char *name);
|
||||||
|
|
@ -47,4 +51,8 @@ int can_get_bittiming_const(const char *name, struct can_bittiming_const *btc);
|
||||||
int can_get_berr_counter(const char *name, struct can_berr_counter *bc);
|
int can_get_berr_counter(const char *name, struct can_berr_counter *bc);
|
||||||
int can_get_device_stats(const char *name, struct can_device_stats *cds);
|
int can_get_device_stats(const char *name, struct can_device_stats *cds);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue