Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 58 lines (50 sloc) 1.217 kb
/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* Dual licensed under the MIT and GPL licenses.
*/
#ifndef ODB_BACKEND_H
#define ODB_BACKEND_H
#include <node.h>
#include <node_events.h>
#include "../vendor/libgit2/include/git2.h"
using namespace node;
/**
* Class: GitOdbBackend
* Wrapper for libgit2 git_error.
*/
class GitOdbBackend : public ObjectWrap {
public:
/**
* Variable: constructor_template
* Used to create Node.js constructor.
*/
static v8::Persistent<v8::FunctionTemplate> constructor_template;
/**
* Function: Initialize
* Used to intialize the EventEmitter from Node.js
*
* Parameters:
* target - v8::Object the Node.js global module object
*/
static void Initialize(v8::Handle<v8::Object> target);
protected:
/**
* Constructor: GitOdbBackend
*/
GitOdbBackend() {};
/**
* Deconstructor: GitOdbBackend
*/
~GitOdbBackend() {};
/**
* Function: New
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
static v8::Handle<v8::Value> New(const v8::Arguments& args);
};
#endif
Jump to Line
Something went wrong with that request. Please try again.