]>
git.proxmox.com Git - libgit2.git/blob - include/git2/transport.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_git_transport_h__
8 #define INCLUDE_git_transport_h__
14 #include "credential.h"
17 * @file git2/transport.h
18 * @brief Git transport interfaces and functions
19 * @defgroup git_transport interfaces and functions
26 * Callback for messages recieved by the transport.
28 * Return a negative value to cancel the network operation.
30 * @param str The message from the transport
31 * @param len The length of the message
32 * @param payload Payload provided by the caller
34 typedef int GIT_CALLBACK(git_transport_message_cb
)(const char *str
, int len
, void *payload
);
36 /** Signature of a function which creates a transport */
37 typedef int GIT_CALLBACK(git_transport_cb
)(git_transport
**out
, git_remote
*owner
, void *param
);