|
Packit Service |
20376f |
/*
|
|
Packit Service |
20376f |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit Service |
20376f |
*
|
|
Packit Service |
20376f |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit Service |
20376f |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit Service |
20376f |
*/
|
|
Packit Service |
20376f |
#ifndef INCLUDE_global_h__
|
|
Packit Service |
20376f |
#define INCLUDE_global_h__
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#include "common.h"
|
|
Packit Service |
20376f |
#include "mwindow.h"
|
|
Packit Service |
20376f |
#include "hash.h"
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
typedef struct {
|
|
Packit Service |
20376f |
git_error *last_error;
|
|
Packit Service |
20376f |
git_error error_t;
|
|
Packit Service |
20376f |
git_buf error_buf;
|
|
Packit Service |
20376f |
char oid_fmt[GIT_OID_HEXSZ+1];
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
/* On Windows, this is the current child thread that was started by
|
|
Packit Service |
20376f |
* `git_thread_create`. This is used to set the thread's exit code
|
|
Packit Service |
20376f |
* when terminated by `git_thread_exit`. It is unused on POSIX.
|
|
Packit Service |
20376f |
*/
|
|
Packit Service |
20376f |
git_thread *current_thread;
|
|
Packit Service |
20376f |
} git_global_st;
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#ifdef GIT_OPENSSL
|
|
Packit Service |
20376f |
# include <openssl/ssl.h>
|
|
Packit Service |
20376f |
extern SSL_CTX *git__ssl_ctx;
|
|
Packit Service |
20376f |
#endif
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
git_global_st *git__global_state(void);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
extern git_mutex git__mwindow_mutex;
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#define GIT_GLOBAL (git__global_state())
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
typedef void (*git_global_shutdown_fn)(void);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
extern void git__on_shutdown(git_global_shutdown_fn callback);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
extern void git__free_tls_data(void);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
extern const char *git_libgit2__user_agent(void);
|
|
Packit Service |
20376f |
extern const char *git_libgit2__ssl_ciphers(void);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#endif
|