21 lines
420 B
C
21 lines
420 B
C
#include <sys/socket.h>
|
|
#include <linux/can.h>
|
|
#include <linux/can/j1939.h>
|
|
|
|
#ifndef J1939_LIB_H
|
|
#define J1939_LIB_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void libj1939_parse_canaddr(char *spec, struct sockaddr_can *paddr);
|
|
extern int libj1939_str2addr(const char *str, char **endp, struct sockaddr_can *can);
|
|
extern const char *libj1939_addr2str(const struct sockaddr_can *can);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|