Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 57 lines (49 sloc) 1.15 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* Dual licensed under the MIT and GPL licenses.
*/

#ifndef INDEX_H
#define INDEX_H

#include <node.h>

#include "../vendor/libgit2/include/git2.h"

using namespace node;

/**
* Class: GitIndex
* Wrapper for libgit2 git_error.
*/
class GitIndex : 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: GitIndex
*/
    GitIndex() {};
    /**
* Deconstructor: GitIndex
*/
    ~GitIndex() {};
    /**
* Function: New
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
    static v8::Handle<v8::Value> New(const v8::Arguments& args);
};
#endif
Something went wrong with that request. Please try again.