/*
* Copyright 2011, Tim Branyen @tbranyen
* @author Michael Robinson @codeofinterest
*
* Dual licensed under the MIT and GPL licenses.
*/
#include
#include
#include "../vendor/libgit2/include/git2.h"
using namespace node;
using namespace v8;
/**
* Class wrapper for libgit2 git_threads_*
*/
class GitThreads : public ObjectWrap {
public:
/**
* v8::FunctionTemplate used to create Node.js constructor
*/
static Persistent constructor_template;
static void Initialize (Handle target);
/**
* Calls git_threads_init synchronously. This is called one time
* on initialization, and is required for libgit2 to run correctly.
*/
static Handle Init(const Arguments& args);
protected:
GitThreads() {}
~GitThreads() {}
static Handle New(const Arguments& args);
};