2017-09-17 21:52:19 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
# Page Checksum Perl Exports
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
MODULE = pgBackRest::LibC PACKAGE = pgBackRest::LibC
|
|
|
|
|
|
|
|
U16
|
2017-09-30 16:44:03 +02:00
|
|
|
pageChecksum(page, blockNo, pageSize)
|
2017-09-17 21:52:19 +02:00
|
|
|
const char *page
|
2017-09-30 16:44:03 +02:00
|
|
|
U32 blockNo
|
2017-09-17 21:52:19 +02:00
|
|
|
U32 pageSize
|
2017-09-30 16:44:03 +02:00
|
|
|
CODE:
|
2017-10-16 17:03:06 +02:00
|
|
|
RETVAL = 0;
|
|
|
|
|
|
|
|
ERROR_XS_BEGIN()
|
|
|
|
{
|
|
|
|
RETVAL = pageChecksum(
|
|
|
|
(const unsigned char *)page, blockNo, pageSize);
|
|
|
|
}
|
|
|
|
ERROR_XS_END();
|
2017-09-30 16:44:03 +02:00
|
|
|
OUTPUT:
|
|
|
|
RETVAL
|