30 lines
606 B
V
30 lines
606 B
V
module git2
|
|
|
|
//#flag -I @VMODROOT/c
|
|
//#flag @VMODROOT/c/wrappers.o
|
|
|
|
#flag -lgit2
|
|
#include "git2.h"
|
|
|
|
pub struct C.git_repository {}
|
|
|
|
pub struct C.git_remote {}
|
|
|
|
pub struct C.git_clone_options {}
|
|
|
|
pub struct C.git_strarray {}
|
|
|
|
pub struct C.git_fetch_options {}
|
|
|
|
fn C.git_libgit2_init()
|
|
|
|
fn C.git_libgit2_shutdown()
|
|
|
|
fn C.git_clone(&&C.git_repository, &char, &char, &C.git_clone_options) int
|
|
|
|
fn C.git_remote_create(&&C.git_remote, &C.git_repository, &char, &char) int
|
|
|
|
fn C.git_remote_fetch(&C.git_remote, &C.git_strarray, &C.git_fetch_options, &char) int
|
|
|
|
// fn C.vgit_clone(&char, &char) &C.git_repository
|