/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITTREEENTRY_H
#define GITTREEENTRY_H
#include
#include
#include
#include "git2.h"
using namespace node;
using namespace v8;
class GitTreeEntry : public ObjectWrap {
public:
static Persistent constructor_template;
static void Initialize (Handle target);
git_tree_entry *GetValue();
static Handle New(void *raw);
private:
GitTreeEntry(git_tree_entry *raw);
~GitTreeEntry();
static Handle New(const Arguments& args);
static Handle Name(const Arguments& args);
static Handle Oid(const Arguments& args);
static Handle Type(const Arguments& args);
static Handle filemode(const Arguments& args);
static Handle GetObject(const Arguments& args);
static void GetObjectWork(uv_work_t* req);
static void GetObjectAfterWork(uv_work_t* req);
struct GetObjectBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_object * object_out;
Persistent repoReference;
git_repository * repo;
Persistent entryReference;
const git_tree_entry * entry;
Persistent callback;
};
git_tree_entry *raw;
};
#endif