summaryrefslogtreecommitdiff
path: root/src/index_entry.nobj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/index_entry.nobj.lua')
-rw-r--r--src/index_entry.nobj.lua100
1 files changed, 20 insertions, 80 deletions
diff --git a/src/index_entry.nobj.lua b/src/index_entry.nobj.lua
index fd39556..e47d79f 100644
--- a/src/index_entry.nobj.lua
+++ b/src/index_entry.nobj.lua
@@ -42,110 +42,50 @@ typedef git_index_entry IndexEntry;
free(${this});
]]
},
+ method "stage" {
+ c_method_call "int" "git_index_entry_stage" {},
+ },
method "ctime" {
- var_out{"time_t", "secs"},
- var_out{"time_t", "nanosecs"},
+ var_out{"git_time_t", "secs"},
+ var_out{"unsigned int", "nanosecs"},
c_source [[
${secs} = ${this}->ctime.seconds;
${nanosecs} = ${this}->ctime.nanoseconds;
]]
},
method "set_ctime" {
- var_in{"time_t", "secs"},
- var_in{"time_t", "nanosecs"},
+ var_in{"git_time_t", "secs"},
+ var_in{"unsigned int", "nanosecs"},
c_source [[
${this}->ctime.seconds = ${secs};
${this}->ctime.nanoseconds = ${nanosecs};
]]
},
method "mtime" {
- var_out{"time_t", "secs"},
- var_out{"time_t", "nanosecs"},
+ var_out{"git_time_t", "secs"},
+ var_out{"unsigned int", "nanosecs"},
c_source [[
${secs} = ${this}->mtime.seconds;
${nanosecs} = ${this}->mtime.nanoseconds;
]]
},
method "set_mtime" {
- var_in{"time_t", "secs"},
- var_in{"time_t", "nanosecs"},
+ var_in{"git_time_t", "secs"},
+ var_in{"unsigned int", "nanosecs"},
c_source [[
${this}->mtime.seconds = ${secs};
${this}->mtime.nanoseconds = ${nanosecs};
]]
},
- method "dev" {
- var_out{"unsigned int", "ret"},
- c_source "${ret} = ${this}->dev;"
- },
- method "set_dev" {
- var_in{"unsigned int", "val"},
- c_source "${this}->dev = ${val};"
- },
- method "ino" {
- var_out{"unsigned int", "ret"},
- c_source "${ret} = ${this}->ino;"
- },
- method "set_ino" {
- var_in{"unsigned int", "val"},
- c_source "${this}->ino = ${val};"
- },
- method "mode" {
- var_out{"unsigned int", "ret"},
- c_source "${ret} = ${this}->mode;"
- },
- method "set_mode" {
- var_in{"unsigned int", "val"},
- c_source "${this}->mode = ${val};"
- },
- method "uid" {
- var_out{"unsigned int", "ret"},
- c_source "${ret} = ${this}->uid;"
- },
- method "set_uid" {
- var_in{"unsigned int", "val"},
- c_source "${this}->uid = ${val};"
- },
- method "gid" {
- var_out{"unsigned int", "ret"},
- c_source "${ret} = ${this}->gid;"
- },
- method "set_gid" {
- var_in{"unsigned int", "val"},
- c_source "${this}->gid = ${val};"
- },
- method "file_size" {
- var_out{"off_t", "ret"},
- c_source "${ret} = ${this}->file_size;"
- },
- method "set_file_size" {
- var_in{"off_t", "val"},
- c_source "${this}->file_size = ${val};"
- },
- method "id" {
- var_out{"OID", "ret"},
- c_source "${ret} = ${this}->oid;"
- },
- method "set_id" {
- var_in{"OID", "val"},
- c_source "${this}->oid = ${val};"
- },
- method "flags" {
- var_out{"unsigned short", "ret"},
- c_source "${ret} = ${this}->flags;"
- },
- method "set_flags" {
- var_in{"unsigned short", "val"},
- c_source "${this}->flags = ${val};"
- },
- method "flags_extended" {
- var_out{"unsigned short", "ret"},
- c_source "${ret} = ${this}->flags_extended;"
- },
- method "set_flags_extended" {
- var_in{"unsigned short", "val"},
- c_source "${this}->flags_extended = ${val};"
- },
+ field "unsigned int" "dev",
+ field "unsigned int" "ino",
+ field "unsigned int" "mode",
+ field "unsigned int" "uid",
+ field "unsigned int" "gid",
+ field "off_t" "file_size",
+ field "OID" "oid",
+ field "unsigned int" "flags",
+ field "unsigned int" "flags_extended",
method "path" {
var_out{"const char *", "ret"},
c_source "${ret} = ${this}->path;"