From 588900de127f5b5024250d24e660dd5574870d50 Mon Sep 17 00:00:00 2001 From: "Robert G. Jakabosky" Date: Fri, 7 Jan 2011 14:06:46 -0800 Subject: Added support for git_odb_backends. Improved RawObject code. Added Error codes for use by database backends. --- git2.nobj.lua | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'git2.nobj.lua') diff --git a/git2.nobj.lua b/git2.nobj.lua index 643636d..47e703a 100644 --- a/git2.nobj.lua +++ b/git2.nobj.lua @@ -6,13 +6,33 @@ hide_meta_info = false, --true, include "git2.h", +package "GIT" { +const "SUCCESS" { 0 }, +const "ERROR" { -1 }, +const "ENOTOID" { -2 }, +const "ENOTFOUND" { -3 }, +const "ENOMEM" { -4 }, +const "EOSERR" { -5 }, +const "EOBJTYPE" { -6 }, +const "EOBJCORRUPTED" { -7 }, +const "ENOTAREPO" { -8 }, +const "EINVALIDTYPE" { -9 }, +const "EMISSINGOBJDATA"{ -10 }, +const "EPACKCORRUPTED" { -11 }, +const "EFLOCKFAIL" { -12 }, +const "EZLIB" { -13 }, +const "EBUSY" { -14 }, +const "EBAREINDEX" { -15 }, +}, + subfiles { "repository.nobj.lua", -"database.nobj.lua", "rawobject.nobj.lua", +"oid.nobj.lua", +"database.nobj.lua", +"database_backend.nobj.lua", "index.nobj.lua", "index_entry.nobj.lua", -"oid.nobj.lua", "error.nobj.lua", "object.nobj.lua", "blob.nobj.lua", -- cgit v1.2.1