]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - git_acl.h
repo_shell honors git ACLs
[repo_shell.git] / git_acl.h
index 80440ccfe7dbe96d4689a22baef228b940c263da..47c6aa88af7752b38bc7432e062f7501dde9da01 100644 (file)
--- a/git_acl.h
+++ b/git_acl.h
@@ -18,7 +18,6 @@
 #ifndef GIT_ACL_H
 #define GIT_ACL_H
 
-#include <stdbool.h>
 #include <stdio.h>
 #include <errno.h>
 #include <stdlib.h>
@@ -32,8 +31,6 @@
 #include "mystrtok.h"
 #include "stra.h"
 
-#define GIT_ACL_FILE "git_acl.cfg"
-
 typedef enum {
   PERMS_NOTFOUND = 0,
   PERMS_NONE,
@@ -42,7 +39,7 @@ typedef enum {
   PERMS_COUNT
 } perms_t;
 
-int git_acl(char *user, char *repo, char *file);
+int git_acl(const char *user, const char *repo, const char *file);
 char *git_acl_last_repoid();
 char *git_acl_last_userid();
 int git_acl_last_perms();