1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/libc/LibC.xs
2017-03-13 15:50:13 -04:00

42 lines
1.3 KiB
Plaintext

#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
pageChecksumTest(szPage, uiBlockNo, uiPageSize, uiIgnoreWalId, uiIgnoreWalOffset)
const char *szPage
U32 uiBlockNo
U32 uiPageSize
U32 uiIgnoreWalId
U32 uiIgnoreWalOffset
bool
pageChecksumBufferTest(szPageBuffer, uiBufferSize, uiBlockNoStart, uiPageSize, uiIgnoreWalId, uiIgnoreWalOffset)
const char *szPageBuffer
U32 uiBufferSize
U32 uiBlockNoStart
U32 uiPageSize
U32 uiIgnoreWalId
U32 uiIgnoreWalOffset