forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
odb.h
executable file
·57 lines (50 loc) · 1.14 KB
/
odb.h
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
57
/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* Dual licensed under the MIT and GPL licenses.
*/
#ifndef ODB_H
#define ODB_H
#include <node.h>
#include <node_object_wrap.h>
#include "../vendor/libgit2/include/git2.h"
using namespace node;
/**
* Class: GitOdb
* Wrapper for libgit2 git_error.
*/
class GitOdb : 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: GitOdb
*/
GitOdb() {};
/**
* Deconstructor: GitOdb
*/
~GitOdb() {};
/**
* Function: New
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
static v8::Handle<v8::Value> New(const v8::Arguments& args);
};
#endif