|
| 1 | +/** |
| 2 | + * This code is auto-generated; unless you know what you're doing, do not modify! |
| 3 | + **/ |
| 4 | + |
| 5 | +#ifndef REMOTE_H |
| 6 | +#define REMOTE_H |
| 7 | + |
| 8 | +#include <v8.h> |
| 9 | +#include <node.h> |
| 10 | +#include <string> |
| 11 | + |
| 12 | +#include "git2.h" |
| 13 | + |
| 14 | +using namespace node; |
| 15 | +using namespace v8; |
| 16 | + |
| 17 | +class Remote : public ObjectWrap { |
| 18 | + public: |
| 19 | + |
| 20 | + static Persistent<Function> constructor_template; |
| 21 | + static void Initialize (Handle<v8::Object> target); |
| 22 | + |
| 23 | + git_remote *GetValue(); |
| 24 | + |
| 25 | + static Handle<Value> New(void *raw); |
| 26 | + |
| 27 | + private: |
| 28 | + Remote(git_remote *raw); |
| 29 | + ~Remote(); |
| 30 | + |
| 31 | + static Handle<Value> New(const Arguments& args); |
| 32 | + |
| 33 | + |
| 34 | + static Handle<Value> Create(const Arguments& args); |
| 35 | + static void CreateWork(uv_work_t* req); |
| 36 | + static void CreateAfterWork(uv_work_t* req); |
| 37 | + |
| 38 | + struct CreateBaton { |
| 39 | + uv_work_t request; |
| 40 | + int error_code; |
| 41 | + const git_error* error; |
| 42 | + git_remote * out; |
| 43 | + Persistent<Value> repoReference; |
| 44 | + git_repository * repo; |
| 45 | + Persistent<Value> nameReference; |
| 46 | + const char * name; |
| 47 | + Persistent<Value> urlReference; |
| 48 | + const char * url; |
| 49 | + Persistent<Function> callback; |
| 50 | + }; |
| 51 | + static Handle<Value> CreateInmemory(const Arguments& args); |
| 52 | + static Handle<Value> Load(const Arguments& args); |
| 53 | + static Handle<Value> Save(const Arguments& args); |
| 54 | + static Handle<Value> Name(const Arguments& args); |
| 55 | + static Handle<Value> Url(const Arguments& args); |
| 56 | + static Handle<Value> Pushurl(const Arguments& args); |
| 57 | + static Handle<Value> SetUrl(const Arguments& args); |
| 58 | + static Handle<Value> SetPushurl(const Arguments& args); |
| 59 | + static Handle<Value> SetFetchspec(const Arguments& args); |
| 60 | + static Handle<Value> Fetchspec(const Arguments& args); |
| 61 | + static Handle<Value> SetPushspec(const Arguments& args); |
| 62 | + static Handle<Value> Pushspec(const Arguments& args); |
| 63 | + static Handle<Value> Connect(const Arguments& args); |
| 64 | + static Handle<Value> Ls(const Arguments& args); |
| 65 | + static Handle<Value> Download(const Arguments& args); |
| 66 | + static Handle<Value> Connected(const Arguments& args); |
| 67 | + static Handle<Value> Stop(const Arguments& args); |
| 68 | + static Handle<Value> Disconnect(const Arguments& args); |
| 69 | + static Handle<Value> Free(const Arguments& args); |
| 70 | + static Handle<Value> UpdateTips(const Arguments& args); |
| 71 | + static Handle<Value> ValidUrl(const Arguments& args); |
| 72 | + static Handle<Value> SupportedUrl(const Arguments& args); |
| 73 | + static Handle<Value> List(const Arguments& args); |
| 74 | + static Handle<Value> CheckCert(const Arguments& args); |
| 75 | + static Handle<Value> SetCredAcquireCb(const Arguments& args); |
| 76 | + static Handle<Value> SetTransport(const Arguments& args); |
| 77 | + static Handle<Value> SetCallbacks(const Arguments& args); |
| 78 | + static Handle<Value> Stats(const Arguments& args); |
| 79 | + static Handle<Value> Autotag(const Arguments& args); |
| 80 | + static Handle<Value> SetAutotag(const Arguments& args); |
| 81 | + static Handle<Value> Rename(const Arguments& args); |
| 82 | + static Handle<Value> UpdateFetchhead(const Arguments& args); |
| 83 | + static Handle<Value> SetUpdateFetchhead(const Arguments& args); |
| 84 | + static Handle<Value> IsValidName(const Arguments& args); |
| 85 | + git_remote *raw; |
| 86 | +}; |
| 87 | + |
| 88 | +#endif |
0 commit comments