]> git.proxmox.com Git - libgit2.git/commit - src/attr_file.h
attr: Do not export variables externally
authorVicent Marti <tanoku@gmail.com>
Wed, 1 Aug 2012 23:15:24 +0000 (01:15 +0200)
committerVicent Marti <tanoku@gmail.com>
Wed, 1 Aug 2012 23:15:24 +0000 (01:15 +0200)
commit0c9eacf3d2c83256736a5bb2a240e73afd13d55f
tree8e8518ab95a63bba4fb8388c9b05496e614f537e
parentcf81ded61caa66267be5f27539decae2292ace9a
attr: Do not export variables externally

Fixes #824

Exporting variables in a dynamic library is a PITA. Let's keep
these values internally and wrap them through a helper method.

This doesn't break the external API. @arrbee, aren't you glad I turned
the `GIT_ATTR_` macros into function macros? :sparkles:
include/git2/attr.h
src/attr.c
src/attr_file.c
src/attr_file.h