mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-13 15:47:38 +00:00
Libgit2 is now officially include as #include "<git2.h>" or indidividual files may be included as #include <git2/index.h> Signed-off-by: Vicent Marti <tanoku@gmail.com>
32 lines
592 B
C
32 lines
592 B
C
#ifndef INCLUDE_git_errors_h__
|
|
#define INCLUDE_git_errors_h__
|
|
|
|
/**
|
|
* @file git/errors.h
|
|
* @brief Git error handling routines and variables
|
|
* @ingroup Git
|
|
* @{
|
|
*/
|
|
GIT_BEGIN_DECL
|
|
|
|
/** The git errno. */
|
|
#if defined(GIT_TLS)
|
|
GIT_EXTERN_TLS(int) git_errno;
|
|
|
|
#elif defined(GIT_HAS_PTHREAD)
|
|
# define git_errno (*git__errno_storage())
|
|
GIT_EXTERN(int *) git__errno_storage(void);
|
|
|
|
#endif
|
|
|
|
/**
|
|
* strerror() for the Git library
|
|
* @param num The error code to explain
|
|
* @return a string explaining the error code
|
|
*/
|
|
GIT_EXTERN(const char *) git_strerror(int num);
|
|
|
|
/** @} */
|
|
GIT_END_DECL
|
|
#endif
|