forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmodule.h
More file actions
146 lines (125 loc) · 4.1 KB
/
Copy pathsubmodule.h
File metadata and controls
146 lines (125 loc) · 4.1 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITSUBMODULE_H
#define GITSUBMODULE_H
#include <v8.h>
#include <node.h>
#include <string>
#include "git2.h"
using namespace node;
using namespace v8;
class GitSubmodule : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_submodule *GetValue();
static Handle<Value> New(void *raw);
private:
GitSubmodule(git_submodule *raw);
~GitSubmodule();
static Handle<Value> New(const Arguments& args);
static Handle<Value> AddFinalize(const Arguments& args);
static void AddFinalizeWork(uv_work_t* req);
static void AddFinalizeAfterWork(uv_work_t* req);
struct AddFinalizeBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Function> callback;
};
static Handle<Value> AddToIndex(const Arguments& args);
static void AddToIndexWork(uv_work_t* req);
static void AddToIndexAfterWork(uv_work_t* req);
struct AddToIndexBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Value> write_indexReference;
int write_index;
Persistent<Function> callback;
};
static Handle<Value> Save(const Arguments& args);
static void SaveWork(uv_work_t* req);
static void SaveAfterWork(uv_work_t* req);
struct SaveBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Function> callback;
};
static Handle<Value> Name(const Arguments& args);
static Handle<Value> Path(const Arguments& args);
static Handle<Value> Url(const Arguments& args);
static Handle<Value> SetUrl(const Arguments& args);
static Handle<Value> IndexId(const Arguments& args);
static Handle<Value> HeadId(const Arguments& args);
static Handle<Value> Init(const Arguments& args);
static void InitWork(uv_work_t* req);
static void InitAfterWork(uv_work_t* req);
struct InitBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Value> overwriteReference;
int overwrite;
Persistent<Function> callback;
};
static Handle<Value> Sync(const Arguments& args);
static void SyncWork(uv_work_t* req);
static void SyncAfterWork(uv_work_t* req);
struct SyncBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Function> callback;
};
static Handle<Value> Open(const Arguments& args);
static void OpenWork(uv_work_t* req);
static void OpenAfterWork(uv_work_t* req);
struct OpenBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_repository * repo;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Function> callback;
};
static Handle<Value> Reload(const Arguments& args);
static void ReloadWork(uv_work_t* req);
static void ReloadAfterWork(uv_work_t* req);
struct ReloadBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Function> callback;
};
static Handle<Value> Status(const Arguments& args);
static void StatusWork(uv_work_t* req);
static void StatusAfterWork(uv_work_t* req);
struct StatusBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> statusReference;
unsigned int * status;
Persistent<Value> submoduleReference;
git_submodule * submodule;
Persistent<Function> callback;
};
git_submodule *raw;
};
#endif