]> sigrok.org Git - libserialport.git/blobdiff - libserialport_internal.h
Move list_ports() implementations to OS-specific files.
[libserialport.git] / libserialport_internal.h
index ca1add18b5b4ae0d4820bb89da4dab405c6f7693..3553b124d715c819f6f956f62699f1d30dfeb86d 100644 (file)
@@ -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);