Sha256: 88e49fa7593012aa9575df08755b907b5b613f43278f477e9ca8e4feedbe6786

Contents?: true

Size: 1.19 KB

Versions: 43

Compression:

Stored size: 1.19 KB

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_git_global_h__
#define INCLUDE_git_global_h__

#include "common.h"

GIT_BEGIN_DECL

/**
 * Init the global state
 *
 * This function must be called before any other libgit2 function in
 * order to set up global state and threading.
 *
 * This function may be called multiple times - it will return the number
 * of times the initialization has been called (including this one) that have
 * not subsequently been shutdown.
 *
 * @return the number of initializations of the library, or an error code.
 */
GIT_EXTERN(int) git_libgit2_init(void);

/**
 * Shutdown the global state
 *
 * Clean up the global state and threading context after calling it as
 * many times as `git_libgit2_init()` was called - it will return the
 * number of remainining initializations that have not been shutdown
 * (after this one).
 * 
 * @return the number of remaining initializations of the library, or an
 * error code.
 */
GIT_EXTERN(int) git_libgit2_shutdown(void);

/** @} */
GIT_END_DECL
#endif

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rugged-1.0.1 vendor/libgit2/include/git2/global.h
rugged-0.28.5 vendor/libgit2/include/git2/global.h
rugged-1.0.0 vendor/libgit2/include/git2/global.h
rugged-0.99.0 vendor/libgit2/include/git2/global.h
rugged-0.27.10.1 vendor/libgit2/include/git2/global.h
rugged-0.28.4.1 vendor/libgit2/include/git2/global.h
rugged-0.28.4 vendor/libgit2/include/git2/global.h
rugged-0.27.10 vendor/libgit2/include/git2/global.h
rugged-0.28.3.1 vendor/libgit2/include/git2/global.h
rugged-0.27.9 vendor/libgit2/include/git2/global.h
rugged-0.28.2 vendor/libgit2/include/git2/global.h
rugged-0.28.1 vendor/libgit2/include/git2/global.h
rugged-0.28.0 vendor/libgit2/include/git2/global.h
rugged-0.27.7 vendor/libgit2/include/git2/global.h
rugged-0.27.5 vendor/libgit2/include/git2/global.h
rugged-0.26.7 vendor/libgit2/include/git2/global.h
rugged-0.26.6 vendor/libgit2/include/git2/global.h
rugged-0.27.4 vendor/libgit2/include/git2/global.h
rugged-0.27.2 vendor/libgit2/include/git2/global.h
rugged-0.27.1 vendor/libgit2/include/git2/global.h