X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=libserialport_internal.h;h=bb1af1a4e37f280b86410a3c86a48f9e289eb39c;hb=970f279ae4767819a816573ae354813d37d5091d;hp=ca1add18b5b4ae0d4820bb89da4dab405c6f7693;hpb=e33dcf90a0b0e510eb990c657eab88243d0ac5fd;p=libserialport.git diff --git a/libserialport_internal.h b/libserialport_internal.h index ca1add1..bb1af1a 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) +SP_PRIV 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); +SP_PRIV enum sp_return get_port_details(struct sp_port *port); +SP_PRIV enum sp_return list_ports(struct sp_port ***list);