libj1939.h 351 B

12345678910111213141516171819
  1. #include <sys/socket.h>
  2. #include <linux/can.h>
  3. #include <linux/can/j1939.h>
  4. #ifndef J1939_LIB_H
  5. #define J1939_LIB_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. extern int libj1939_str2addr(const char *str, char **endp, struct sockaddr_can *can);
  10. extern const char *libj1939_addr2str(const struct sockaddr_can *can);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif