]> sigrok.org Git - libsigrok.git/commitdiff
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)
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


No differences found