diff options
| author | Jason Toffaletti <[email protected]> | 2014-01-06 16:55:29 +0000 |
|---|---|---|
| committer | Jason Toffaletti <[email protected]> | 2014-01-06 16:55:29 +0000 |
| commit | d1245446685ccdc632b6a9cee65391cbe4eac4df (patch) | |
| tree | 7520ad8269913e0560eb7f370d5766c73b8d17ba /remote.go | |
| parent | 5d8a14d108ac963a4865cd03e20e56b28ee9626e (diff) | |
minor
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -4,12 +4,8 @@ package git #include <git2.h> #include <git2/errors.h> -static git_remote_callbacks git_remote_callbacks_init() { - git_remote_callbacks ret = GIT_REMOTE_CALLBACKS_INIT; - return ret; -} - -extern void _setup_callbacks(git_remote_callbacks *callbacks); +extern void _go_git_setup_callbacks(git_remote_callbacks *callbacks); +extern git_remote_callbacks _go_git_remote_callbacks_init(); */ import "C" @@ -41,11 +37,11 @@ type RemoteCallbacks struct { } func populateRemoteCallbacks(ptr *C.git_remote_callbacks, callbacks *RemoteCallbacks) { - *ptr = C.git_remote_callbacks_init() + *ptr = C._go_git_remote_callbacks_init() if callbacks == nil { return } - C._setup_callbacks(ptr) + C._go_git_setup_callbacks(ptr) ptr.payload = unsafe.Pointer(callbacks) } |
