summaryrefslogtreecommitdiff
path: root/src/include/utils/acl.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-04-26 15:06:49 +0000
committerBruce Momjian <bruce@momjian.us>2004-04-26 15:06:49 +0000
commit0a17fd726ca50d04d99395addbbc89e6dfa5be31 (patch)
tree0d5617708f5b180622cbd279e92d6d0f2e1122da /src/include/utils/acl.h
parent9cb7b76ec7a3e6bb661550848a5dac6c9c0accbd (diff)
Please find a attached a small patch that adds accessor functions
for "aclitem" so that it is not an opaque datatype. I needed these functions to browse aclitems from user land. I can load them when necessary, but it seems to me that these accessors for a backend type belong to the backend, so I submit them. Fabien Coelho
Diffstat (limited to 'src/include/utils/acl.h')
-rw-r--r--src/include/utils/acl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h
index efe7af30b20..6cd1d7fb7ef 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.66 2004/01/14 23:01:55 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.67 2004/04/26 15:06:49 momjian Exp $
*
* NOTES
* An ACL array is simply an array of AclItems, representing the union
@@ -220,6 +220,11 @@ extern Datum aclcontains(PG_FUNCTION_ARGS);
extern Datum makeaclitem(PG_FUNCTION_ARGS);
extern Datum aclitem_eq(PG_FUNCTION_ARGS);
extern Datum hash_aclitem(PG_FUNCTION_ARGS);
+extern Datum aclitem_grantee(PG_FUNCTION_ARGS);
+extern Datum aclitem_grantor(PG_FUNCTION_ARGS);
+extern Datum aclitem_idtype(PG_FUNCTION_ARGS);
+extern Datum aclitem_privs(PG_FUNCTION_ARGS);
+extern Datum aclitem_goptions(PG_FUNCTION_ARGS);
/*
* prototypes for functions in aclchk.c