1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Introduce SP_API/SP_PRIV to mark visibility of functions.

This commit is contained in:
Aurelien Jacobs
2014-06-16 00:40:37 +02:00
committed by Uwe Hermann
parent e4ce975a54
commit 970f279ae4
8 changed files with 112 additions and 82 deletions

View File

@@ -20,7 +20,7 @@
#include "libserialport.h"
#include "libserialport_internal.h"
enum sp_return get_port_details(struct sp_port *port)
SP_PRIV enum sp_return get_port_details(struct sp_port *port)
{
/* Description limited to 127 char,
anything longer would not be user friendly anyway */
@@ -156,7 +156,7 @@ enum sp_return get_port_details(struct sp_port *port)
RETURN_OK();
}
enum sp_return list_ports(struct sp_port ***list)
SP_PRIV enum sp_return list_ports(struct sp_port ***list)
{
char name[PATH_MAX], target[PATH_MAX];
struct dirent entry, *result;