forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignature.h
More file actions
executable file
·45 lines (32 loc) · 987 Bytes
/
Copy pathsignature.h
File metadata and controls
executable file
·45 lines (32 loc) · 987 Bytes
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
/*
* Copyright 2013, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* @author Michael Robinson @codeofinterest <mike@pagesofinterest.net>
*
* Dual licensed under the MIT and GPL licenses.
*/
#ifndef GitSignature_H
#define GitSignature_H
#include <v8.h>
#include <node.h>
#include "git2.h"
#include "repo.h"
using namespace v8;
using namespace node;
class GitSignature : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize(Handle<v8::Object> target);
git_signature* GetValue();
void SetValue(git_signature* signature);
protected:
GitSignature() {};
~GitSignature() {};
static Handle<Value> New(const Arguments& args);
static Handle<Value> Duplicate(const Arguments& args);
static Handle<Value> Free(const Arguments& args);
static Handle<Value> Name(const Arguments& args);
static Handle<Value> Email(const Arguments& args);
private:
git_signature* signature;
};
#endif