From 0a17fd726ca50d04d99395addbbc89e6dfa5be31 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 26 Apr 2004 15:06:49 +0000 Subject: 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 --- src/include/utils/acl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include/utils/acl.h') 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 -- cgit v1.2.3