libj1939: add libj1939_parse_canaddr and reuse it by testj1939

this function will be needed jcat

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
This commit is contained in:
Oleksij Rempel
2019-01-04 13:00:33 +01:00
parent c45a17e96b
commit e649b6ee2a
3 changed files with 24 additions and 23 deletions
+1
View File
@@ -9,6 +9,7 @@
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);