{"size": 770, "ext": "scrbl", "max_stars_repo_path": "libgit2/scribblings/global.scrbl", "max_stars_repo_name": "guygastineau/libgit2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libgit2/scribblings/global.scrbl", "max_issues_repo_name": "guygastineau/libgit2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libgit2/scribblings/global.scrbl", "max_forks_repo_name": "guygastineau/libgit2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.6153846154, "max_line_length": 216, "alphanum_fraction": 0.7727272727}
#lang scribble/manual

@(require (for-label racket))

@title{Global}

@defmodule[libgit2/include/global]


@defproc[(git_libgit2_init)
         integer?]{
Init the global state

This function must the 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.

}

@defproc[(git_libgit2_shutdown)
         integer?]{
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).
}
