summaryrefslogtreecommitdiff
path: root/src/object.nobj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.nobj.lua')
-rw-r--r--src/object.nobj.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object.nobj.lua b/src/object.nobj.lua
index 30658bf..b8e5cb9 100644
--- a/src/object.nobj.lua
+++ b/src/object.nobj.lua
@@ -46,5 +46,11 @@ typedef git_object Object;
method "owner" {
c_method_call "Repository *" "git_object_owner" {}
},
+ c_function "type2string" {
+ c_call "const char *" "git_object_type2string" { "git_otype", "otype" },
+ },
+ c_function "string2type" {
+ c_call "git_otype" "git_object_string2type" { "const char *", "str" },
+ },
}