mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 19:46:59 +00:00

Remove the unused repo and private pointers and make the direction a flag, as it can only have two states. Change the connect signature to use an int instead of git_net_direction and remove that enum. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
34 lines
533 B
C
34 lines
533 B
C
#ifndef INCLUDE_net_h__
|
|
#define INCLUDE_net_h__
|
|
|
|
#include "common.h"
|
|
#include "oid.h"
|
|
#include "types.h"
|
|
|
|
#define GIT_DEFAULT_PORT "9418"
|
|
|
|
/*
|
|
* We need this because we need to know whether we should call
|
|
* git-upload-pack or git-receive-pack on the remote end when get_refs
|
|
* gets called.
|
|
*/
|
|
|
|
#define GIT_DIR_FETCH 0
|
|
#define GIT_DIR_PUSH 1
|
|
|
|
/*
|
|
* This is what we give out on ->ls()
|
|
*/
|
|
|
|
struct git_remote_head {
|
|
git_oid oid;
|
|
char *name;
|
|
};
|
|
|
|
struct git_headarray {
|
|
unsigned int len;
|
|
struct git_remote_head **heads;
|
|
};
|
|
|
|
#endif
|