// This is a generated file, modify: generate/templates/class_content.cc.
#include <nan.h>
#include <string.h>

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


#include "../include/functions/copy.h"
#include "../include/macros.h"
#include "../include/threads.h"

 
#include <iostream>

using namespace std;
using namespace v8;
using namespace node;

 
  void GitThreads::InitializeComponent(Handle<v8::Object> target) {
    NanScope();

    Local<Object> object = NanNew<Object>();

        NODE_SET_METHOD(object, "init", Init);
         NODE_SET_METHOD(object, "shutdown", Shutdown);
  
    target->Set(NanNew<String>("Threads"), object);
  }

  
/*
   * @return Number  result    */
NAN_METHOD(GitThreads::Init) {
  NanEscapableScope();

  int result = git_threads_init(
  );

  Handle<Value> to;
// start convert_to_v8 block
     to = NanNew<Number>(result);
  // end convert_to_v8 block
  NodeGitPsueodoNanReturnEscapingValue(to);
}
   
/*
   */
NAN_METHOD(GitThreads::Shutdown) {
  NanEscapableScope();

git_threads_shutdown(
  );
  NanReturnUndefined();
}
      Persistent<Function> GitThreads::constructor_template;
 