libgit2/include/git2/net.h
Carlos Martín Nieto 8f866daee5 Lay down the fundations for the network code
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-06-26 18:18:11 +02:00

34 lines
507 B
C

#ifndef INCLUDE_net_h__
#define INCLUDE_net_h__
#include "common.h"
#include "oid.h"
#include "types.h"
/*
* 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.
*/
enum git_net_direction {
INTENT_PUSH,
INTENT_PULL
};
/*
* 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