-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathutil.h
31 lines (26 loc) · 921 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* -------------------------------------------------------------------------
*
* util.h
*
* Copyright (c) 2015-2023 Vladislav Arkhipov <[email protected]>
*
* -------------------------------------------------------------------------
*/
#ifndef __UTIL_H__
#define __UTIL_H__
#include "postgres.h"
#include "fmgr.h"
#include "utils/array.h"
bool check_access_extract_args(FunctionCallInfo fcinfo, ArrayType **acl,
uint32 *mask, ArrayType **who,
bool *implicit_allow, bool extract_who,
bool has_who_argument);
bool check_access_text_mask_extract_args(FunctionCallInfo fcinfo,
ArrayType **acl, text **mask,
ArrayType **who, bool *implicit_allow,
bool extract_who,
bool has_who_argument);
void merge_acls_extract_args(FunctionCallInfo fcinfo, ArrayType **parent,
ArrayType **child, bool *container,
bool *deny_first);
#endif