|
1 | | -//LICENSE Portions Copyright 2019-2021 ZomboDB, LLC. |
2 | | -//LICENSE |
3 | | -//LICENSE Portions Copyright 2021-2023 Technology Concepts & Design, Inc. |
4 | | -//LICENSE |
5 | | -//LICENSE Portions Copyright 2023-2023 PgCentral Foundation, Inc. < [email protected]> |
6 | | -//LICENSE |
7 | | -//LICENSE All rights reserved. |
8 | | -//LICENSE |
9 | | -//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file. |
10 | 1 | use crate as pg_sys; |
11 | 2 | #[cfg(any( |
12 | 3 | feature = "pg12", |
@@ -336,7 +327,6 @@ pub const SIZEOF_OFF_T: u32 = 8; |
336 | 327 | pub const SIZEOF_SIZE_T: u32 = 8; |
337 | 328 | pub const SIZEOF_VOID_P: u32 = 8; |
338 | 329 | pub const STDC_HEADERS: u32 = 1; |
339 | | -pub const USE_ASSERT_CHECKING: u32 = 1; |
340 | 330 | pub const USE_DEV_URANDOM: u32 = 1; |
341 | 331 | pub const USE_FLOAT4_BYVAL: u32 = 1; |
342 | 332 | pub const USE_FLOAT8_BYVAL: u32 = 1; |
@@ -20563,7 +20553,6 @@ pub struct MemoryContextMethods { |
20563 | 20553 | totals: *mut MemoryContextCounters, |
20564 | 20554 | ), |
20565 | 20555 | >, |
20566 | | - pub check: ::std::option::Option<unsafe extern "C" fn(context: MemoryContext)>, |
20567 | 20556 | } |
20568 | 20557 | #[repr(C)] |
20569 | 20558 | #[derive(Debug, Copy, Clone)] |
@@ -20670,10 +20659,6 @@ extern "C" { |
20670 | 20659 | pub fn MemoryContextAllowInCriticalSection(context: MemoryContext, allow: bool); |
20671 | 20660 | } |
20672 | 20661 | #[pgrx_macros::pg_guard] |
20673 | | -extern "C" { |
20674 | | - pub fn MemoryContextCheck(context: MemoryContext); |
20675 | | -} |
20676 | | -#[pgrx_macros::pg_guard] |
20677 | 20662 | extern "C" { |
20678 | 20663 | pub fn MemoryContextContains( |
20679 | 20664 | context: MemoryContext, |
@@ -33083,6 +33068,43 @@ extern "C" { |
33083 | 33068 | extern "C" { |
33084 | 33069 | pub fn get_language_oid(langname: *const ::std::os::raw::c_char, missing_ok: bool) -> Oid; |
33085 | 33070 | } |
| 33071 | +#[pgrx_macros::pg_guard] |
| 33072 | +extern "C" { |
| 33073 | + pub fn GetSecurityLabel( |
| 33074 | + object: *const ObjectAddress, |
| 33075 | + provider: *const ::std::os::raw::c_char, |
| 33076 | + ) -> *mut ::std::os::raw::c_char; |
| 33077 | +} |
| 33078 | +#[pgrx_macros::pg_guard] |
| 33079 | +extern "C" { |
| 33080 | + pub fn SetSecurityLabel( |
| 33081 | + object: *const ObjectAddress, |
| 33082 | + provider: *const ::std::os::raw::c_char, |
| 33083 | + label: *const ::std::os::raw::c_char, |
| 33084 | + ); |
| 33085 | +} |
| 33086 | +#[pgrx_macros::pg_guard] |
| 33087 | +extern "C" { |
| 33088 | + pub fn DeleteSecurityLabel(object: *const ObjectAddress); |
| 33089 | +} |
| 33090 | +#[pgrx_macros::pg_guard] |
| 33091 | +extern "C" { |
| 33092 | + pub fn DeleteSharedSecurityLabel(objectId: Oid, classId: Oid); |
| 33093 | +} |
| 33094 | +#[pgrx_macros::pg_guard] |
| 33095 | +extern "C" { |
| 33096 | + pub fn ExecSecLabelStmt(stmt: *mut SecLabelStmt) -> ObjectAddress; |
| 33097 | +} |
| 33098 | +pub type check_object_relabel_type = ::std::option::Option< |
| 33099 | + unsafe extern "C" fn(object: *const ObjectAddress, seclabel: *const ::std::os::raw::c_char), |
| 33100 | +>; |
| 33101 | +#[pgrx_macros::pg_guard] |
| 33102 | +extern "C" { |
| 33103 | + pub fn register_label_provider( |
| 33104 | + provider: *const ::std::os::raw::c_char, |
| 33105 | + hook: check_object_relabel_type, |
| 33106 | + ); |
| 33107 | +} |
33086 | 33108 | extern "C" { |
33087 | 33109 | pub static mut allow_in_place_tablespaces: bool; |
33088 | 33110 | } |
|
0 commit comments