#ifndef GITPACKBUILDER_H
#define GITPACKBUILDER_H
// generated from class_header.h
#include <nan.h>
#include <string>

extern "C" {
#include <git2.h>
}

#include "../include/packbuilder.h"
#include "../include/oid.h"
// Forward declaration.
struct git_packbuilder {
};

using namespace node;
using namespace v8;

class GitPackbuilder : public ObjectWrap {
  public:

    static Persistent<Function> constructor_template;
    static void InitializeComponent (Handle<v8::Object> target);

    git_packbuilder *GetValue();
    git_packbuilder **GetRefValue();

    static Handle<Value> New(void *raw, bool selfFreeing);
    bool selfFreeing;

  private:
    GitPackbuilder(git_packbuilder *raw, bool selfFreeing);
    ~GitPackbuilder();

    static NAN_METHOD(JSNewFunction);


    static NAN_METHOD(Hash);

    static NAN_METHOD(Insert);

    static NAN_METHOD(InsertCommit);

    static NAN_METHOD(InsertTree);

    static NAN_METHOD(ObjectCount);

    static NAN_METHOD(SetThreads);

    static NAN_METHOD(Written);
    git_packbuilder *raw;
};

#endif
