Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef INCLUDE_git_transport_h__
0008 #define INCLUDE_git_transport_h__
0009 
0010 #include "indexer.h"
0011 #include "net.h"
0012 #include "types.h"
0013 #include "cert.h"
0014 #include "credential.h"
0015 
0016 /**
0017  * @file git2/transport.h
0018  * @brief Git transport interfaces and functions
0019  * @defgroup git_transport interfaces and functions
0020  * @ingroup Git
0021  * @{
0022  */
0023 GIT_BEGIN_DECL
0024 
0025 /**
0026  * Callback for messages received by the transport.
0027  *
0028  * Return a negative value to cancel the network operation.
0029  *
0030  * @param str The message from the transport
0031  * @param len The length of the message
0032  * @param payload Payload provided by the caller
0033  */
0034 typedef int GIT_CALLBACK(git_transport_message_cb)(const char *str, int len, void *payload);
0035 
0036 /** Signature of a function which creates a transport */
0037 typedef int GIT_CALLBACK(git_transport_cb)(git_transport **out, git_remote *owner, void *param);
0038 
0039 /** @} */
0040 GIT_END_DECL
0041 
0042 #endif