update go bindings for type changes

This commit is contained in:
Ryan Hileman
2015-09-04 17:23:41 -07:00
parent f9d8387175
commit 70c42731c2
4 changed files with 32 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ func errReturn(err C.uc_err) error {
}
type Uc struct {
Handle C.uch
Handle *C.uc_engine
Arch, Mode int
}
@@ -38,7 +38,7 @@ func NewUc(arch, mode int) (*Uc, error) {
if major != C.UC_API_MAJOR || minor != C.UC_API_MINOR {
return nil, UcError(UC_ERR_VERSION)
}
var handle C.uch
var handle *C.uc_engine
if ucerr := C.uc_open(C.uc_arch(arch), C.uc_mode(mode), &handle); ucerr != UC_ERR_OK {
return nil, UcError(ucerr)
}