Commit 0c9a5565 by Sascha Cunz Committed by Vicent Martí

Add missing GIT_EXTERN declarations

parent 546ca939
...@@ -183,7 +183,7 @@ typedef struct git_oid_shorten git_oid_shorten; ...@@ -183,7 +183,7 @@ typedef struct git_oid_shorten git_oid_shorten;
* be unique. * be unique.
* @return a `git_oid_shorten` instance, NULL if OOM * @return a `git_oid_shorten` instance, NULL if OOM
*/ */
git_oid_shorten *git_oid_shorten_new(size_t min_length); GIT_EXTERN(git_oid_shorten *) git_oid_shorten_new(size_t min_length);
/** /**
* Add a new OID to set of shortened OIDs and calculate * Add a new OID to set of shortened OIDs and calculate
...@@ -209,14 +209,14 @@ git_oid_shorten *git_oid_shorten_new(size_t min_length); ...@@ -209,14 +209,14 @@ git_oid_shorten *git_oid_shorten_new(size_t min_length);
* added so far to the set; or an error code (<0) if an * added so far to the set; or an error code (<0) if an
* error occurs. * error occurs.
*/ */
int git_oid_shorten_add(git_oid_shorten *os, const char *text_oid); GIT_EXTERN(int) git_oid_shorten_add(git_oid_shorten *os, const char *text_oid);
/** /**
* Free an OID shortener instance * Free an OID shortener instance
* *
* @param os a `git_oid_shorten` instance * @param os a `git_oid_shorten` instance
*/ */
void git_oid_shorten_free(git_oid_shorten *os); GIT_EXTERN(void) git_oid_shorten_free(git_oid_shorten *os);
/** @} */ /** @} */
GIT_END_DECL GIT_END_DECL
......
...@@ -25,7 +25,7 @@ GIT_BEGIN_DECL ...@@ -25,7 +25,7 @@ GIT_BEGIN_DECL
* @param refspec the refspec * @param refspec the refspec
* @return the refspec's source specifier * @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 * Get the destination specifier
...@@ -33,7 +33,7 @@ const char *git_refspec_src(const git_refspec *refspec); ...@@ -33,7 +33,7 @@ const char *git_refspec_src(const git_refspec *refspec);
* @param refspec the refspec * @param refspec the refspec
* @return the refspec's destination specifier * @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 * Check if a refspec's source descriptor matches a reference
...@@ -42,7 +42,7 @@ const char *git_refspec_dst(const git_refspec *refspec); ...@@ -42,7 +42,7 @@ const char *git_refspec_dst(const git_refspec *refspec);
* @param refname the name of the reference to check * @param refname the name of the reference to check
* @return 1 if the refspec matches, 0 otherwise * @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 * 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); ...@@ -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 * @param name the name of the reference to transform
* @return GIT_SUCCESS, GIT_ESHORTBUFFER or another error * @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 GIT_END_DECL
......
...@@ -343,9 +343,9 @@ typedef int (*git_tree_diff_cb)(const git_tree_diff_data *ptr, void *data); ...@@ -343,9 +343,9 @@ typedef int (*git_tree_diff_cb)(const git_tree_diff_data *ptr, void *data);
* @param data data to give to the callback * @param data data to give to the callback
* @return GIT_SUCCESS or an error code * @return GIT_SUCCESS or an error code
*/ */
int git_tree_diff(git_tree *old, git_tree *newer, git_tree_diff_cb cb, void *data); GIT_EXTERN(int) git_tree_diff(git_tree *old, git_tree *newer, git_tree_diff_cb cb, void *data);
int git_tree_diff_index_recursive(git_tree *tree, git_index *index, git_tree_diff_cb cb, void *data); GIT_EXTERN(int) git_tree_diff_index_recursive(git_tree *tree, git_index *index, git_tree_diff_cb cb, void *data);
/** @} */ /** @} */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment