2016-12-13 01:54:07 +02:00
|
|
|
#define PERL_NO_GET_CONTEXT
|
|
|
|
|
|
|
|
#include "LibC.h"
|
|
|
|
#include "XSUB.h"
|
|
|
|
#include "const-c.inc"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The following C types are mapped by the current typemap:
|
|
|
|
* 'AV *', 'Boolean', 'CV *', 'FILE *', 'FileHandle', 'HV *', 'I16', 'I32', 'I8', 'IV', 'InOutStream', 'InputStream', 'NV',
|
|
|
|
* 'OutputStream', 'PerlIO *', 'Result', 'STRLEN', 'SV *', 'SVREF', 'SysRet', 'SysRetLong', 'Time_t *', 'U16', 'U32', 'U8', 'UV',
|
|
|
|
* 'bool', 'bool_t', 'caddr_t', 'char', 'char *', 'char **', 'const char *', 'double', 'float', 'int', 'long', 'short', 'size_t',
|
|
|
|
* 'ssize_t', 'time_t', 'unsigned', 'unsigned char', 'unsigned char *', 'unsigned int', 'unsigned long', 'unsigned long *',
|
|
|
|
* 'unsigned short', 'void *', 'wchar_t', 'wchar_t *'
|
|
|
|
*/
|
|
|
|
|
|
|
|
MODULE = pgBackRest::LibC PACKAGE = pgBackRest::LibC
|
|
|
|
|
|
|
|
INCLUDE: const-xs.inc
|
|
|
|
|
|
|
|
U16
|
|
|
|
pageChecksum(page, blkno, pageSize)
|
|
|
|
const char * page
|
|
|
|
U32 blkno
|
|
|
|
U32 pageSize
|
|
|
|
|
|
|
|
bool
|
2017-03-13 21:50:13 +02:00
|
|
|
pageChecksumTest(szPage, uiBlockNo, uiPageSize, uiIgnoreWalId, uiIgnoreWalOffset)
|
|
|
|
const char *szPage
|
|
|
|
U32 uiBlockNo
|
|
|
|
U32 uiPageSize
|
|
|
|
U32 uiIgnoreWalId
|
|
|
|
U32 uiIgnoreWalOffset
|
2016-12-13 01:54:07 +02:00
|
|
|
|
|
|
|
bool
|
2017-03-13 21:50:13 +02:00
|
|
|
pageChecksumBufferTest(szPageBuffer, uiBufferSize, uiBlockNoStart, uiPageSize, uiIgnoreWalId, uiIgnoreWalOffset)
|
|
|
|
const char *szPageBuffer
|
|
|
|
U32 uiBufferSize
|
|
|
|
U32 uiBlockNoStart
|
|
|
|
U32 uiPageSize
|
|
|
|
U32 uiIgnoreWalId
|
|
|
|
U32 uiIgnoreWalOffset
|