From: Michael Gernoth Date: Fri, 11 Apr 2008 12:12:36 +0000 (+0200) Subject: don't export internal symbols X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/396647368be03bb5398301e67a676b8634827ac3 don't export internal symbols --- diff --git a/config.h b/config.h index e3e42ea..f800587 100644 --- a/config.h +++ b/config.h @@ -9,7 +9,7 @@ struct parport_config { int (*transfer) (WD_TRANSFER *tr, int fd, unsigned int request, int ppbase, int ecpbase, int num); }; -struct parport_config *config_get(int num); -unsigned char config_is_real_pport(int num); -unsigned short config_usb_vid(int num); -unsigned short config_usb_pid(int num); +struct parport_config __attribute__ ((visibility ("hidden"))) *config_get(int num); +unsigned char __attribute__ ((visibility ("hidden"))) config_is_real_pport(int num); +unsigned short __attribute__ ((visibility ("hidden"))) config_usb_vid(int num); +unsigned short __attribute__ ((visibility ("hidden"))) config_usb_pid(int num); diff --git a/jtagkey.h b/jtagkey.h index 2c13260..d54ddf4 100644 --- a/jtagkey.h +++ b/jtagkey.h @@ -5,6 +5,6 @@ #define JTAGKEY_VREF 0x20 #define JTAGKEY_OEn 0x10 -int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase, int ecpbase, int num); -int jtagkey_open(int num); -void jtagkey_close(int handle); +int __attribute__ ((visibility ("hidden"))) jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase, int ecpbase, int num); +int __attribute__ ((visibility ("hidden"))) jtagkey_open(int num); +void __attribute__ ((visibility ("hidden"))) jtagkey_close(int handle); diff --git a/jtagmon.h b/jtagmon.h index 030db23..60964ca 100644 --- a/jtagmon.h +++ b/jtagmon.h @@ -1 +1 @@ -void jtagmon(unsigned char tck, unsigned char tms, unsigned char tdi); +void __attribute__ ((visibility ("hidden"))) jtagmon(unsigned char tck, unsigned char tms, unsigned char tdi); diff --git a/parport.h b/parport.h index ee46098..668ba80 100644 --- a/parport.h +++ b/parport.h @@ -1,3 +1,3 @@ -int parport_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase, int ecpbase, int num); -int parport_open(int num); -void parport_close(int handle); +int __attribute__ ((visibility ("hidden"))) parport_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase, int ecpbase, int num); +int __attribute__ ((visibility ("hidden"))) parport_open(int num); +void __attribute__ ((visibility ("hidden"))) parport_close(int handle); diff --git a/usb-driver.h b/usb-driver.h index baddf4a..534f68f 100644 --- a/usb-driver.h +++ b/usb-driver.h @@ -44,7 +44,7 @@ #define DPRINTF(format, args...) #endif -void hexdump(unsigned char *buf, int len); +void __attribute__ ((visibility ("hidden"))) hexdump(unsigned char *buf, int len); #define WDU_GET_MAX_PACKET_SIZE(x) ((unsigned short) (((x) & 0x7ff) * (1 + (((x) & 0x1800) >> 11))))