summaryrefslogtreecommitdiff
path: root/include/git2/refspec.h
diff options
context:
space:
mode:
authorSascha Cunz <sascha@babbelbox.org>2012-05-11 04:12:18 +0200
committerVicent Martí <tanoku@gmail.com>2012-05-14 19:56:35 +0200
commit0c9a5565f7f4fdf70c72c5a92a1deeef7aaac6e3 (patch)
treec63d60480e8df6a1fcff66da0763e6346944e858 /include/git2/refspec.h
parent546ca93993ac224d1e66f20412a2f23bcc3d48ed (diff)
downloadlibgit2-0c9a5565f7f4fdf70c72c5a92a1deeef7aaac6e3.tar.gz
Add missing GIT_EXTERN declarations
Diffstat (limited to 'include/git2/refspec.h')
-rw-r--r--include/git2/refspec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/refspec.h b/include/git2/refspec.h
index 28afe652..50aa596f 100644
--- a/include/git2/refspec.h
+++ b/include/git2/refspec.h
@@ -25,7 +25,7 @@ GIT_BEGIN_DECL
* @param refspec the refspec
* @return the refspec's source specifier
*/
-const char *git_refspec_src(const git_refspec *refspec);
+GIT_EXTERN(const char *) git_refspec_src(const git_refspec *refspec);
/**
* Get the destination specifier
@@ -33,7 +33,7 @@ const char *git_refspec_src(const git_refspec *refspec);
* @param refspec the refspec
* @return the refspec's destination specifier
*/
-const char *git_refspec_dst(const git_refspec *refspec);
+GIT_EXTERN(const char *) git_refspec_dst(const git_refspec *refspec);
/**
* Check if a refspec's source descriptor matches a reference
@@ -42,7 +42,7 @@ const char *git_refspec_dst(const git_refspec *refspec);
* @param refname the name of the reference to check
* @return 1 if the refspec matches, 0 otherwise
*/
-int git_refspec_src_matches(const git_refspec *refspec, const char *refname);
+GIT_EXTERN(int) git_refspec_src_matches(const git_refspec *refspec, const char *refname);
/**
* Transform a reference to its target following the refspec's rules
@@ -53,7 +53,7 @@ int git_refspec_src_matches(const git_refspec *refspec, const char *refname);
* @param name the name of the reference to transform
* @return GIT_SUCCESS, GIT_ESHORTBUFFER or another error
*/
-int git_refspec_transform(char *out, size_t outlen, const git_refspec *spec, const char *name);
+GIT_EXTERN(int) git_refspec_transform(char *out, size_t outlen, const git_refspec *spec, const char *name);
GIT_END_DECL