Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:36

0001 /*
0002  * Copyright (C) the libgit2 contributors. All rights reserved.
0003  *
0004  * This file is part of libgit2, distributed under the GNU GPL v2 with
0005  * a Linking Exception. For full terms see the included COPYING file.
0006  */
0007 
0008 #ifndef INCLUDE_sys_git_remote_h
0009 #define INCLUDE_sys_git_remote_h
0010 
0011 #include "git2/remote.h"
0012 
0013 /**
0014  * @file git2/sys/remote.h
0015  * @brief Low-level remote functionality for custom transports
0016  * @defgroup git_remote Low-level remote functionality
0017  * @ingroup Git
0018  * @{
0019 */
0020 
0021 GIT_BEGIN_DECL
0022 
0023 typedef enum {
0024     /** Remote supports fetching an advertised object by ID. */
0025     GIT_REMOTE_CAPABILITY_TIP_OID = (1 << 0),
0026 
0027     /** Remote supports fetching an individual reachable object. */
0028     GIT_REMOTE_CAPABILITY_REACHABLE_OID = (1 << 1),
0029 
0030     /** Remote supports push options. */
0031     GIT_REMOTE_CAPABILITY_PUSH_OPTIONS = (1 << 2),
0032 } git_remote_capability_t;
0033 
0034 /**
0035  * Disposes libgit2-initialized fields from a git_remote_connect_options.
0036  * This should only be used for git_remote_connect_options returned by
0037  * git_transport_remote_connect_options.
0038  *
0039  * Note that this does not free the `git_remote_connect_options` itself, just
0040  * the memory pointed to by it.
0041  *
0042  * @param opts The `git_remote_connect_options` struct to dispose.
0043  */
0044 GIT_EXTERN(void) git_remote_connect_options_dispose(
0045         git_remote_connect_options *opts);
0046 
0047 /** @} */
0048 GIT_END_DECL
0049 #endif