summaryrefslogtreecommitdiff
path: root/src/tag.nobj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.nobj.lua')
-rw-r--r--src/tag.nobj.lua31
1 files changed, 12 insertions, 19 deletions
diff --git a/src/tag.nobj.lua b/src/tag.nobj.lua
index 76d0100..ce7dfc6 100644
--- a/src/tag.nobj.lua
+++ b/src/tag.nobj.lua
@@ -24,43 +24,36 @@ typedef git_tag Tag;
]],
extends "Object",
constructor "new" {
- var_in{"Repository *", "repo"},
- var_out{"GitError", "err"},
- c_source [[
- ${err} = git_tag_new(&(${this}), ${repo});
-]],
+ c_call { "GitError", "err" } "git_tag_new"
+ { "Tag *", "&this>1", "Repository *", "repo" },
},
constructor "lookup" {
- var_in{"Repository *", "repo"},
- var_in{"OID", "id"},
- var_out{"GitError", "err"},
- c_source [[
- ${err} = git_tag_lookup(&(${this}), ${repo}, &(${id}));
-]],
+ c_call { "GitError", "err" } "git_tag_lookup"
+ { "Tag *", "&this>1", "Repository *", "repo", "OID", "&id" },
},
method "target" {
- c_call "const Object *" "git_tag_target" {}
+ c_method_call "const Object *" "git_tag_target" {}
},
method "set_target" {
- c_call "void" "git_tag_set_target" { "Object *", "target" }
+ c_method_call "void" "git_tag_set_target" { "Object *", "target" }
},
method "name" {
- c_call "const char *" "git_tag_name" {}
+ c_method_call "const char *" "git_tag_name" {}
},
method "set_name" {
- c_call "void" "git_tag_set_name" { "const char *", "name" }
+ c_method_call "void" "git_tag_set_name" { "const char *", "name" }
},
method "tagger" {
- c_call "const Signature *" "git_tag_tagger" {}
+ c_method_call "const Signature *" "git_tag_tagger" {}
},
method "set_tagger" {
- c_call "void" "git_tag_set_tagger" { "const Signature *", "tagger" }
+ c_method_call "void" "git_tag_set_tagger" { "const Signature *", "tagger" }
},
method "message" {
- c_call "const char *" "git_tag_message" {}
+ c_method_call "const char *" "git_tag_message" {}
},
method "set_message" {
- c_call "void" "git_tag_set_message" { "const char *", "message" }
+ c_method_call "void" "git_tag_set_message" { "const char *", "message" }
},
}