1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/libc/xs/postgres/pageChecksum.xs

23 lines
633 B
Plaintext
Raw Normal View History

# ----------------------------------------------------------------------------------------------------------------------------------
# Page Checksum Perl Exports
# ----------------------------------------------------------------------------------------------------------------------------------
MODULE = pgBackRest::LibC PACKAGE = pgBackRest::LibC
U16
pageChecksum(page, blockNo, pageSize)
const char *page
U32 blockNo
U32 pageSize
CODE:
RETVAL = 0;
ERROR_XS_BEGIN()
{
RETVAL = pageChecksum(
(const unsigned char *)page, blockNo, pageSize);
}
ERROR_XS_END();
OUTPUT:
RETVAL