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

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

// Forward declaration.
struct git_merge_result {
};

using namespace node;
using namespace v8;

class GitMergeResult : public ObjectWrap {
public:

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

  git_merge_result *GetValue();
  git_merge_result **GetRefValue();

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

private:
  GitMergeResult(git_merge_result *raw, bool selfFreeing);
  ~GitMergeResult();

  static NAN_METHOD(JSNewFunction);

  git_merge_result *raw;
};

#endif
