From: Álvaro Herrera Date: Sat, 4 Apr 2026 22:21:53 +0000 (+0200) Subject: Modernize struct declarations in snapbuild.h X-Git-Tag: REL_19_BETA1~500 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69c11f0545a027fdcb32254b546a0cd431823e4f;p=thirdparty%2Fpostgresql.git Modernize struct declarations in snapbuild.h Just a cosmetic cleanup. --- diff --git a/src/include/replication/snapbuild.h b/src/include/replication/snapbuild.h index ccded021433..a22a83a2f23 100644 --- a/src/include/replication/snapbuild.h +++ b/src/include/replication/snapbuild.h @@ -15,6 +15,14 @@ #include "access/xlogdefs.h" #include "utils/snapmgr.h" +/* + * forward declarations in this file + */ +typedef struct ReorderBuffer ReorderBuffer; +typedef struct SnapBuild SnapBuild; +typedef struct xl_heap_new_cid xl_heap_new_cid; +typedef struct xl_running_xacts xl_running_xacts; + /* * Please keep get_snapbuild_state_desc() (located in the pg_logicalinspect * module) updated if a change needs to be made to SnapBuildState. @@ -50,20 +58,11 @@ typedef enum SNAPBUILD_CONSISTENT = 2, } SnapBuildState; -/* forward declare so we don't have to include snapbuild_internal.h */ -struct SnapBuild; -typedef struct SnapBuild SnapBuild; - -/* forward declare so we don't have to include reorderbuffer.h */ -struct ReorderBuffer; -/* forward declare so we don't have to include heapam_xlog.h */ -struct xl_heap_new_cid; -struct xl_running_xacts; extern void CheckPointSnapBuild(void); -extern SnapBuild *AllocateSnapshotBuilder(struct ReorderBuffer *reorder, +extern SnapBuild *AllocateSnapshotBuilder(ReorderBuffer *reorder, TransactionId xmin_horizon, XLogRecPtr start_lsn, bool need_full_snapshot, bool in_slot_creation, @@ -91,9 +90,9 @@ extern bool SnapBuildProcessChange(SnapBuild *builder, TransactionId xid, XLogRecPtr lsn); extern void SnapBuildProcessNewCid(SnapBuild *builder, TransactionId xid, XLogRecPtr lsn, - struct xl_heap_new_cid *xlrec); + xl_heap_new_cid *xlrec); extern void SnapBuildProcessRunningXacts(SnapBuild *builder, XLogRecPtr lsn, - struct xl_running_xacts *running); + xl_running_xacts *running); extern void SnapBuildSerializationPoint(SnapBuild *builder, XLogRecPtr lsn); extern bool SnapBuildSnapshotExists(XLogRecPtr lsn);