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

183 lines
4.1 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
PROTOTYPES: DISABLE
INCLUDE: const-xs.inc
# Config Rule
# ----------------------------------------------------------------------------------------------------------------------------------
I32
cfgCommandId(szCommandName)
const char *szCommandName
I32
cfgOptionId(szOptionName)
const char *szOptionName
bool
cfgRuleOptionAllowList(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
const char *
cfgRuleOptionAllowListValue(uiCommandId, uiOptionId, uiValueId)
U32 uiCommandId
U32 uiOptionId
U32 uiValueId
I32
cfgRuleOptionAllowListValueTotal(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
bool
cfgRuleOptionAllowListValueValid(uiCommandId, uiOptionId, szValue);
U32 uiCommandId
U32 uiOptionId
const char *szValue
bool
cfgRuleOptionAllowRange(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
double
cfgRuleOptionAllowRangeMax(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
double
cfgRuleOptionAllowRangeMin(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
const char *
cfgRuleOptionDefault(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
bool
cfgRuleOptionDepend(uiCommandId, uiOptionId);
U32 uiCommandId
U32 uiOptionId
I32
cfgRuleOptionDependOption(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
const char *
cfgRuleOptionDependValue(uiCommandId, uiOptionId, uiValueId)
U32 uiCommandId
U32 uiOptionId
U32 uiValueId
I32
cfgRuleOptionDependValueTotal(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
bool
cfgRuleOptionDependValueValid(uiCommandId, uiOptionId, szValue)
U32 uiCommandId
U32 uiOptionId
const char *szValue
const char *
cfgRuleOptionHint(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
const char *
cfgRuleOptionNameAlt(uiOptionId)
U32 uiOptionId
bool cfgRuleOptionNegate(uiOptionId)
U32 uiOptionId
const char *
cfgRuleOptionPrefix(uiOptionId)
U32 uiOptionId
bool
cfgRuleOptionRequired(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
const char *
cfgRuleOptionSection(uiOptionId)
U32 uiOptionId
bool
cfgRuleOptionSecure(uiOptionId)
U32 uiOptionId
I32
cfgRuleOptionType(uiOptionId);
U32 uiOptionId
bool
cfgRuleOptionValid(uiCommandId, uiOptionId)
U32 uiCommandId
U32 uiOptionId
U32
cfgOptionTotal()
bool
cfgRuleOptionValueHash(uiOptionId)
U32 uiOptionId
# Config
# ----------------------------------------------------------------------------------------------------------------------------------
const char *
cfgCommandName(uiCommandId)
U32 uiCommandId
I32
cfgOptionIndexTotal(uiOptionId)
U32 uiOptionId
const char *
cfgOptionName(uiOptionId)
U32 uiOptionId
# Page Checksum
# ----------------------------------------------------------------------------------------------------------------------------------
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