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
Kurt Van Dijck 2011-10-12 14:57:17 +02:00 committed by Marc Kleine-Budde
parent 6db5d772b4
commit 3a2cec63a4
1 changed files with 8 additions and 0 deletions

View File

@ -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