Go to the source code of this file.
|
#define | MAX_ARGS 4 |
|
#define | MAX_STRING_ARGS 2 |
|
#define | DBX_MAX_ARGS 2 |
|
#define | DBX_MAX_STRING_ARGS 3 |
|
#define | ALLOC_MAX_ARGS MAX_ARGS |
|
#define | ALLOC_MAX_STRING_ARGS DBX_MAX_STRING_ARGS |
|
#define | COMMAND_FLAG_NONE 0x00 /* No command flag */ |
|
#define | COMMAND_FLAG_RET_NONE 0x01 /* Don't return any data */ |
|
#define | COMMAND_FLAG_RET_LENGTH 0x02 /* Return only length of string arg */ |
|
#define | COMMAND_WORDSIZE 4 |
|
#define | COMMAND_FIXED_DATA_SIZE ( COMMAND_WORDSIZE * 2 ) |
|
#define | COMMAND_WORD1_OFFSET COMMAND_FIXED_DATA_SIZE |
|
#define | COMMAND_WORD2_OFFSET ( COMMAND_FIXED_DATA_SIZE + COMMAND_WORDSIZE ) |
|
#define | COMMAND_WORD3_OFFSET ( COMMAND_FIXED_DATA_SIZE + ( COMMAND_WORDSIZE * 2 ) ) |
|
#define | COMMAND_WORD4_OFFSET ( COMMAND_FIXED_DATA_SIZE + ( COMMAND_WORDSIZE * 3 ) ) |
|
#define | putMessageType(buffer, type, flags, noInt, noString) |
|
#define | getMessageType(buffer, type, flags, noInt, noString) |
|
#define | putMessageWord(buffer, word) |
|
#define | getMessageWord(buffer) |
|
#define | getMessageLength getMessageWord |
|
#define | putMessageLength putMessageWord |
|
#define | DISPATCH_COMMAND(function, command) function( NULL, &command ) |
|
#define | DISPATCH_COMMAND_DBX(function, command, dbmsInfo) function( ( dbmsInfo )->stateInfo, &command ) |
|
#define | RETURN_VALUE(value) value |
|
#define | checkCommandInfo(cmd, length) |
|
#define | checkCommandConsistency(cmd, length) |
|
#define | dbxCheckCommandInfo(cmd, length) |
|
#define | dbxCheckCommandConsistency(cmd, length) |
|
#define | MAX_FRAGMENT_SIZE 32768 |
|
#define | RPC_IO_BUFSIZE MAX_FRAGMENT_SIZE + 32 |
|
#define | DBX_IO_BUFSIZE 4096 |
|
|
enum | COMMAND_TYPE {
COMMAND_NONE,
COMMAND_RESULT,
COMMAND_SERVERQUERY,
COMMAND_CREATEOBJECT,
COMMAND_CREATEOBJECT_INDIRECT,
COMMAND_EXPORTOBJECT,
COMMAND_DESTROYOBJECT,
COMMAND_QUERYCAPABILITY,
COMMAND_GENKEY,
COMMAND_ENCRYPT,
COMMAND_DECRYPT,
COMMAND_GETATTRIBUTE,
COMMAND_SETATTRIBUTE,
COMMAND_DELETEATTRIBUTE,
COMMAND_GETKEY,
COMMAND_SETKEY,
COMMAND_DELETEKEY,
COMMAND_PUSHDATA,
COMMAND_POPDATA,
COMMAND_FLUSHDATA,
COMMAND_CERTSIGN,
COMMAND_CERTCHECK,
COMMAND_CERTMGMT,
COMMAND_LAST
} |
|
enum | DBX_COMMAND_TYPE {
DBX_COMMAND_NONE,
DBX_COMMAND_RESULT,
DBX_COMMAND_OPEN,
DBX_COMMAND_CLOSE,
DBX_COMMAND_QUERY,
DBX_COMMAND_UPDATE,
DBX_COMMAND_GETERRORINFO,
DBX_COMMAND_LAST
} |
|
#define checkCommandConsistency |
( |
|
cmd, |
|
|
|
length |
|
) |
| |
Value:( ( ( cmd )->strArgLen[ 0 ] + ( cmd )->strArgLen[ 1 ] ) == \
Definition at line 289 of file rpc.h.
#define checkCommandInfo |
( |
|
cmd, |
|
|
|
length |
|
) |
| |
Value:
( cmd )->noArgs >= 1 && ( cmd )->noArgs <=
MAX_ARGS && \
( cmd )->strArgLen[ 0 ] >= 0 && \
( cmd )->strArgLen[ 1 ] >= 0 && \
Definition at line 277 of file rpc.h.
#define COMMAND_FLAG_NONE 0x00 /* No command flag */ |
#define COMMAND_FLAG_RET_LENGTH 0x02 /* Return only length of string arg */ |
#define COMMAND_FLAG_RET_NONE 0x01 /* Don't return any data */ |
#define COMMAND_WORDSIZE 4 |
#define DBX_IO_BUFSIZE 4096 |
#define DBX_MAX_STRING_ARGS 3 |
#define dbxCheckCommandConsistency |
( |
|
cmd, |
|
|
|
length |
|
) |
| |
Value:( ( ( cmd )->strArgLen[ 0 ] + ( cmd )->strArgLen[ 1 ] + ( cmd )->strArgLen[ 2 ] ) == \
Definition at line 304 of file rpc.h.
#define dbxCheckCommandInfo |
( |
|
cmd, |
|
|
|
length |
|
) |
| |
Value:
( cmd )->noArgs >= 0 && ( cmd )->noArgs <=
DBX_MAX_ARGS && \
( cmd )->strArgLen[ 0 ] >= 0 && \
( cmd )->strArgLen[ 1 ] >= 0 && \
( cmd )->strArgLen[ 2 ] >= 0 && \
Definition at line 293 of file rpc.h.
#define DISPATCH_COMMAND |
( |
|
function, |
|
|
|
command |
|
) |
| function( NULL, &command ) |
#define DISPATCH_COMMAND_DBX |
( |
|
function, |
|
|
|
command, |
|
|
|
dbmsInfo |
|
) |
| function( ( dbmsInfo )->stateInfo, &command ) |
#define getMessageType |
( |
|
buffer, |
|
|
|
type, |
|
|
|
flags, |
|
|
|
noInt, |
|
|
|
noString |
|
) |
| |
Value:
Definition at line 209 of file rpc.h.
#define getMessageWord |
( |
|
buffer | ) |
|
Value:( ( ( ( long ) (
buffer )[ 0 ] ) << 24 ) | \
( ( ( long ) (
buffer )[ 1 ] ) << 16 ) | \
( ( ( long ) (
buffer )[ 2 ] ) << 8 ) | \
Definition at line 222 of file rpc.h.
#define MAX_FRAGMENT_SIZE 32768 |
#define MAX_STRING_ARGS 2 |
#define putMessageType |
( |
|
buffer, |
|
|
|
type, |
|
|
|
flags, |
|
|
|
noInt, |
|
|
|
noString |
|
) |
| |
Value:{ \
buffer[ 0 ] = (
BYTE ) (
type & 0xFF ); \
buffer[ 1 ] = (
BYTE ) ( flags & 0xFF ); \
buffer[ 2 ] = noInt; \
buffer[ 3 ] = noString; \
}
Definition at line 202 of file rpc.h.
#define putMessageWord |
( |
|
buffer, |
|
|
|
word |
|
) |
| |
Value:{ \
(
buffer )[ 0 ] = (
BYTE ) ( ( ( word ) >> 24 ) & 0xFF ); \
(
buffer )[ 1 ] = (
BYTE ) ( ( ( word ) >> 16 ) & 0xFF ); \
(
buffer )[ 2 ] = (
BYTE ) ( ( ( word ) >> 8 ) & 0xFF ); \
}
Definition at line 215 of file rpc.h.
- Enumerator:
COMMAND_NONE |
|
COMMAND_RESULT |
|
COMMAND_SERVERQUERY |
|
COMMAND_CREATEOBJECT |
|
COMMAND_CREATEOBJECT_INDIRECT |
|
COMMAND_EXPORTOBJECT |
|
COMMAND_DESTROYOBJECT |
|
COMMAND_QUERYCAPABILITY |
|
COMMAND_GENKEY |
|
COMMAND_ENCRYPT |
|
COMMAND_DECRYPT |
|
COMMAND_GETATTRIBUTE |
|
COMMAND_SETATTRIBUTE |
|
COMMAND_DELETEATTRIBUTE |
|
COMMAND_GETKEY |
|
COMMAND_SETKEY |
|
COMMAND_DELETEKEY |
|
COMMAND_PUSHDATA |
|
COMMAND_POPDATA |
|
COMMAND_FLUSHDATA |
|
COMMAND_CERTSIGN |
|
COMMAND_CERTCHECK |
|
COMMAND_CERTMGMT |
|
COMMAND_LAST |
|
Definition at line 31 of file rpc.h.
- Enumerator:
DBX_COMMAND_NONE |
|
DBX_COMMAND_RESULT |
|
DBX_COMMAND_OPEN |
|
DBX_COMMAND_CLOSE |
|
DBX_COMMAND_QUERY |
|
DBX_COMMAND_UPDATE |
|
DBX_COMMAND_GETERRORINFO |
|
DBX_COMMAND_LAST |
|
Definition at line 60 of file rpc.h.