]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - git_acl.h
gitcreate: add option to set description
[repo_shell.git] / git_acl.h
index 80440ccfe7dbe96d4689a22baef228b940c263da..b1be1653a1c5f3bb2baf1cc1f37051b05c74f0c4 100644 (file)
--- a/git_acl.h
+++ b/git_acl.h
 #ifndef GIT_ACL_H
 #define GIT_ACL_H
 
-#include <stdbool.h>
-#include <stdio.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <pwd.h>
-#include <string.h>
-#include "ini.h"
-#include "utility.h"
-#include "mystrtok.h"
-#include "stra.h"
-
-#define GIT_ACL_FILE "git_acl.cfg"
-
 typedef enum {
   PERMS_NOTFOUND = 0,
   PERMS_NONE,
@@ -42,7 +26,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();