X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=libserialport_internal.h;h=3553b124d715c819f6f956f62699f1d30dfeb86d;hb=48a4076f692ffe34026c37815580a32b2f70592b;hp=ca1add18b5b4ae0d4820bb89da4dab405c6f7693;hpb=235269990bd62a906af871c34839ebb922eecb45;p=libserialport.git diff --git a/libserialport_internal.h b/libserialport_internal.h index ca1add1..3553b12 100644 --- a/libserialport_internal.h +++ b/libserialport_internal.h @@ -187,5 +187,8 @@ extern void (*sp_debug_handler)(const char *format, ...); #define TRY(x) do { int ret = x; if (ret != SP_OK) RETURN_CODEVAL(ret); } while (0) +struct sp_port **list_append(struct sp_port **list, const char *portname); + /* OS-specific Helper functions. */ enum sp_return get_port_details(struct sp_port *port); +enum sp_return list_ports(struct sp_port ***list);