@@ -31,35 +31,43 @@ class GitRemote : public ObjectWrap {
3131 static Handle<Value> New (const Arguments& args);
3232
3333
34- static Handle<Value> Save (const Arguments& args);
3534 static Handle<Value> Name (const Arguments& args);
3635 static Handle<Value> Url (const Arguments& args);
37- static Handle<Value> Pushurl (const Arguments& args);
36+ static Handle<Value> PushUrl (const Arguments& args);
3837 static Handle<Value> SetUrl (const Arguments& args);
39- static Handle<Value> SetPushurl (const Arguments& args);
40- static Handle<Value> SetFetchspec (const Arguments& args);
41- static Handle<Value> Fetchspec (const Arguments& args);
42- static Handle<Value> SetPushspec (const Arguments& args);
43- static Handle<Value> Pushspec (const Arguments& args);
38+ static Handle<Value> SetPushUrl (const Arguments& args);
4439 static Handle<Value> Connect (const Arguments& args);
45- static Handle<Value> Ls (const Arguments& args);
46- static Handle<Value> Download (const Arguments& args);
40+ static void ConnectWork (uv_work_t * req);
41+ static void ConnectAfterWork (uv_work_t * req);
42+
43+ struct ConnectBaton {
44+ uv_work_t request;
45+ int error_code;
46+ const git_error* error;
47+ Persistent<Value> remoteReference;
48+ git_remote * remote;
49+ Persistent<Value> directionReference;
50+ git_direction direction;
51+ Persistent<Function> callback;
52+ };
4753 static Handle<Value> Connected (const Arguments& args);
4854 static Handle<Value> Stop (const Arguments& args);
4955 static Handle<Value> Disconnect (const Arguments& args);
50- static Handle<Value> Free (const Arguments& args);
56+ static void DisconnectWork (uv_work_t * req);
57+ static void DisconnectAfterWork (uv_work_t * req);
58+
59+ struct DisconnectBaton {
60+ uv_work_t request;
61+ int error_code;
62+ const git_error* error;
63+ Persistent<Value> remoteReference;
64+ git_remote * remote;
65+ Persistent<Function> callback;
66+ };
5167 static Handle<Value> UpdateTips (const Arguments& args);
5268 static Handle<Value> ValidUrl (const Arguments& args);
5369 static Handle<Value> SupportedUrl (const Arguments& args);
54- static Handle<Value> List (const Arguments& args);
5570 static Handle<Value> CheckCert (const Arguments& args);
56- static Handle<Value> SetCredAcquireCb (const Arguments& args);
57- static Handle<Value> SetTransport (const Arguments& args);
58- static Handle<Value> SetCallbacks (const Arguments& args);
59- static Handle<Value> Stats (const Arguments& args);
60- static Handle<Value> Autotag (const Arguments& args);
61- static Handle<Value> SetAutotag (const Arguments& args);
62- static Handle<Value> Rename (const Arguments& args);
6371 static Handle<Value> UpdateFetchhead (const Arguments& args);
6472 static Handle<Value> SetUpdateFetchhead (const Arguments& args);
6573 static Handle<Value> IsValidName (const Arguments& args);
0 commit comments