1 /* 2 * trfDecls.h -- 3 * 4 * Declarations of functions in the platform independent public Trf API. 5 * 6 * Copyright (c) 1999 by Andreas Kupries <andreas_kupries@users.sourceforge.net> 7 * 8 * See the file "license.terms" for information on usage and redistribution 9 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 10 * 11 * RCS: @(#) $Id: trfDecls.h,v 1.2 1999/09/21 18:48:57 aku Exp $ 12 */ 13 14 #ifndef _TRFDECLS 15 #define _TRFDECLS 16 17 /* 18 * WARNING: This file is automatically generated by the tools/genStubs.tcl 19 * script. Any modifications to the function declarations below should be made 20 * in the generic/trf.decls script. 21 */ 22 23 /* !BEGIN!: Do not edit below this line. */ 24 25 /* 26 * Exported function declarations: 27 */ 28 29 /* 0 */ 30 EXTERN int Trf_IsInitialized _ANSI_ARGS_((Tcl_Interp * interp)); 31 /* 1 */ 32 EXTERN int Trf_Register _ANSI_ARGS_((Tcl_Interp * interp, 33 CONST Trf_TypeDefinition * type)); 34 /* 2 */ 35 EXTERN Trf_OptionVectors* Trf_ConverterOptions _ANSI_ARGS_((void)); 36 /* 3 */ 37 EXTERN int Trf_LoadLibrary _ANSI_ARGS_((Tcl_Interp * interp, 38 CONST char * libName, VOID ** handlePtr, 39 char ** symbols, int num)); 40 /* 4 */ 41 EXTERN void Trf_LoadFailed _ANSI_ARGS_((VOID** handlePtr)); 42 /* 5 */ 43 EXTERN int Trf_RegisterMessageDigest _ANSI_ARGS_(( 44 Tcl_Interp* interp, 45 CONST Trf_MessageDigestDescription* md_desc)); 46 /* 6 */ 47 EXTERN void Trf_XorBuffer _ANSI_ARGS_((VOID* buffer, VOID* mask, 48 int length)); 49 /* 7 */ 50 EXTERN void Trf_ShiftRegister _ANSI_ARGS_((VOID* buffer, 51 VOID* in, int shift, int buffer_length)); 52 /* 8 */ 53 EXTERN void Trf_FlipRegisterLong _ANSI_ARGS_((VOID* buffer, 54 int length)); 55 /* 9 */ 56 EXTERN void Trf_FlipRegisterShort _ANSI_ARGS_((VOID* buffer, 57 int length)); 58 59 typedef struct TrfStubHooks { 60 struct TrfIntStubs *trfIntStubs; 61 } TrfStubHooks; 62 63 typedef struct TrfStubs { 64 int magic; 65 struct TrfStubHooks *hooks; 66 67 int (*trf_IsInitialized) _ANSI_ARGS_((Tcl_Interp * interp)); /* 0 */ 68 int (*trf_Register) _ANSI_ARGS_((Tcl_Interp * interp, CONST Trf_TypeDefinition * type)); /* 1 */ 69 Trf_OptionVectors* (*trf_ConverterOptions) _ANSI_ARGS_((void)); /* 2 */ 70 int (*trf_LoadLibrary) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * libName, VOID ** handlePtr, char ** symbols, int num)); /* 3 */ 71 void (*trf_LoadFailed) _ANSI_ARGS_((VOID** handlePtr)); /* 4 */ 72 int (*trf_RegisterMessageDigest) _ANSI_ARGS_((Tcl_Interp* interp, CONST Trf_MessageDigestDescription* md_desc)); /* 5 */ 73 void (*trf_XorBuffer) _ANSI_ARGS_((VOID* buffer, VOID* mask, int length)); /* 6 */ 74 void (*trf_ShiftRegister) _ANSI_ARGS_((VOID* buffer, VOID* in, int shift, int buffer_length)); /* 7 */ 75 void (*trf_FlipRegisterLong) _ANSI_ARGS_((VOID* buffer, int length)); /* 8 */ 76 void (*trf_FlipRegisterShort) _ANSI_ARGS_((VOID* buffer, int length)); /* 9 */ 77 } TrfStubs; 78 79 #ifdef __cplusplus 80 extern "C" { 81 #endif 82 extern TrfStubs *trfStubsPtr; 83 #ifdef __cplusplus 84 } 85 #endif 86 87 #if defined(USE_TRF_STUBS) && !defined(USE_TRF_STUB_PROCS) 88 89 /* 90 * Inline function declarations: 91 */ 92 93 #ifndef Trf_IsInitialized 94 #define Trf_IsInitialized \ 95 (trfStubsPtr->trf_IsInitialized) /* 0 */ 96 #endif 97 #ifndef Trf_Register 98 #define Trf_Register \ 99 (trfStubsPtr->trf_Register) /* 1 */ 100 #endif 101 #ifndef Trf_ConverterOptions 102 #define Trf_ConverterOptions \ 103 (trfStubsPtr->trf_ConverterOptions) /* 2 */ 104 #endif 105 #ifndef Trf_LoadLibrary 106 #define Trf_LoadLibrary \ 107 (trfStubsPtr->trf_LoadLibrary) /* 3 */ 108 #endif 109 #ifndef Trf_LoadFailed 110 #define Trf_LoadFailed \ 111 (trfStubsPtr->trf_LoadFailed) /* 4 */ 112 #endif 113 #ifndef Trf_RegisterMessageDigest 114 #define Trf_RegisterMessageDigest \ 115 (trfStubsPtr->trf_RegisterMessageDigest) /* 5 */ 116 #endif 117 #ifndef Trf_XorBuffer 118 #define Trf_XorBuffer \ 119 (trfStubsPtr->trf_XorBuffer) /* 6 */ 120 #endif 121 #ifndef Trf_ShiftRegister 122 #define Trf_ShiftRegister \ 123 (trfStubsPtr->trf_ShiftRegister) /* 7 */ 124 #endif 125 #ifndef Trf_FlipRegisterLong 126 #define Trf_FlipRegisterLong \ 127 (trfStubsPtr->trf_FlipRegisterLong) /* 8 */ 128 #endif 129 #ifndef Trf_FlipRegisterShort 130 #define Trf_FlipRegisterShort \ 131 (trfStubsPtr->trf_FlipRegisterShort) /* 9 */ 132 #endif 133 134 #endif /* defined(USE_TRF_STUBS) && !defined(USE_TRF_STUB_PROCS) */ 135 136 /* !END!: Do not edit above this line. */ 137 138 #endif /* _TRFDECLS */ 139 140