diff options
Diffstat (limited to 'src/odb_object.nobj.lua')
-rw-r--r-- | src/odb_object.nobj.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/odb_object.nobj.lua b/src/odb_object.nobj.lua index ac00b0c..5ca2753 100644 --- a/src/odb_object.nobj.lua +++ b/src/odb_object.nobj.lua @@ -22,8 +22,11 @@ object "OdbObject" { c_source [[ typedef git_odb_object OdbObject; ]], - destructor "close" { - c_method_call "void" "git_odb_object_close" {}, + destructor "free" { + c_method_call "void" "git_odb_object_free" {}, + }, + method "id" { + c_method_call { "OID", "*id" } "git_odb_object_id" {}, }, method "data" { c_method_call { "const char *", "data" } "git_odb_object_data" {}, @@ -36,8 +39,5 @@ typedef git_odb_object OdbObject; c_method_call { "git_otype", "(otype)" } "git_odb_object_type" {}, c_call { "const char *", "type" } "git_object_type2string" { "git_otype", "otype" }, }, - method "id" { - c_method_call { "OID", "*id" } "git_odb_object_id" {}, - }, } |