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

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

#include "../include/transport.h"

using namespace node;
using namespace v8;

class GitTransport : public ObjectWrap {
  public:

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

    git_transport *GetValue();
    git_transport **GetRefValue();

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

  private:
    GitTransport(git_transport *raw, bool selfFreeing);
    ~GitTransport();

    static NAN_METHOD(JSNewFunction);


    static NAN_METHOD(Init);

    static NAN_METHOD(Unregister);
    git_transport *raw;
};

#endif
