]> sigrok.org Git - libsigrok.git/commit
sr: Mark API functions with SR_API/SR_PRIV.
authorUwe Hermann <redacted>
Wed, 1 Feb 2012 22:40:35 +0000 (23:40 +0100)
committerUwe Hermann <redacted>
Wed, 1 Feb 2012 23:03:17 +0000 (00:03 +0100)
commit1a081ca67d63a0bd933a3d715792d85afd437296
treead9460ade53407a81b8099465221f05d3fc4212f
parent0146970797e809555b2feea9fdbc3933f9e24e8b
sr: Mark API functions with SR_API/SR_PRIV.

Use SR_API to mark public API symbols, and SR_PRIV for private symbols.

Variables and functions marked 'static' are private already and don't
need SR_PRIV. However, functions which are not static (because they need
to be used in other libsigrok-internal files) but are also not meant to
be part of the public libsigrok API, must use SR_PRIV.

This uses the 'visibility' feature of gcc (requires gcc >= 4.0).

Details: http://gcc.gnu.org/wiki/Visibility
31 files changed:
README
backend.c
configure.ac
datastore.c
device.c
filter.c
hardware/alsa/alsa.c
hardware/asix-sigma/asix-sigma.c
hardware/common/ezusb.c
hardware/common/serial.c
hardware/demo/demo.c
hardware/link-mso19/link-mso19.c
hardware/saleae-logic/saleae-logic.c
hardware/zeroplus-logic-cube/gl_usb.c
hwplugin.c
input/input.c
log.c
output/analog.c
output/binary.c
output/csv.c
output/gnuplot.c
output/ols.c
output/output.c
output/text/text.c
output/vcd.c
session.c
session_file.c
sigrok-internal.h
sigrok-proto.h
sigrok.h.in
strutil.c