]> git.proxmox.com Git - libgit2.git/blob - include/git2/net.h
Update Copyright header
[libgit2.git] / include / git2 / net.h
1 /*
2 * Copyright (C) 2009-2012 the libgit2 contributors
3 *
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.
6 */
7 #ifndef INCLUDE_net_h__
8 #define INCLUDE_net_h__
9
10 #include "common.h"
11 #include "oid.h"
12 #include "types.h"
13
14 /**
15 * @file git2/net.h
16 * @brief Git networking declarations
17 * @ingroup Git
18 * @{
19 */
20 GIT_BEGIN_DECL
21
22 #define GIT_DEFAULT_PORT "9418"
23
24 /*
25 * We need this because we need to know whether we should call
26 * git-upload-pack or git-receive-pack on the remote end when get_refs
27 * gets called.
28 */
29
30 #define GIT_DIR_FETCH 0
31 #define GIT_DIR_PUSH 1
32
33
34 /**
35 * Remote head description, given out on `ls` calls.
36 */
37 struct git_remote_head {
38 int local:1; /* available locally */
39 git_oid oid;
40 git_oid loid;
41 char *name;
42 };
43
44 /**
45 * Callback for listing the remote heads
46 */
47 typedef int (*git_headlist_cb)(git_remote_head *, void *);
48
49 /** @} */
50 GIT_END_DECL
51 #endif