]>
git.proxmox.com Git - libgit2.git/blob - include/git2/global.h
4f90c4c2040c92cf9824d68be70ee15ca65344b2
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_git_global_h__
8 #define INCLUDE_git_global_h__
15 * Init the global state
17 * This function must the called before any other libgit2 function in
18 * order to set up global state and threading.
20 * This function may be called multiple times.
22 * @return 0 or an error code
24 GIT_EXTERN(int) git_libgit2_init(void);
27 * Shutdown the global state
29 * Clean up the global state and threading context after calling it as
30 * many times as `git_libgit2_init()` was called.
33 GIT_EXTERN(void) git_libgit2_shutdown(void);