1# trf.decls --
2#
3#	This file contains the declarations for all supported public
4#	functions that are exported by the Trf library via the stubs table.
5#	This file is used to generate the trfDecls.h file.
6#	
7
8library trf
9
10# Define the tcl interface with several sub interfaces:
11#     tclPlat	 - platform specific public
12#     tclInt	 - generic private
13#     tclPlatInt - platform specific private
14
15interface trf
16hooks {trfInt}
17
18# Declare each of the functions in the public Trf interface.  Note that
19# every index should never be reused for a different function in order
20# to preserve backwards compatibility.
21
22declare 0 generic {
23    int Trf_IsInitialized(Tcl_Interp *interp)
24}
25declare 1 generic {
26    int Trf_Register(Tcl_Interp *interp, CONST Trf_TypeDefinition *type)
27}
28declare 2 generic {
29    Trf_OptionVectors* Trf_ConverterOptions(void)
30}
31declare 3 generic {
32    int Trf_LoadLibrary(Tcl_Interp *interp, CONST char *libName,
33	    VOID **handlePtr, char **symbols, int num)
34}
35declare 4 generic {
36    void Trf_LoadFailed(VOID** handlePtr)
37}
38declare 5 generic {
39    int Trf_RegisterMessageDigest (Tcl_Interp* interp, CONST Trf_MessageDigestDescription* md_desc)
40}
41declare 6 generic {
42    void Trf_XorBuffer (VOID* buffer, VOID* mask, int length)
43}
44declare 7 generic {
45    void Trf_ShiftRegister (VOID* buffer, VOID* in, int shift, int buffer_length)
46}
47declare 8 generic {
48    void Trf_FlipRegisterLong (VOID* buffer, int length)
49}
50declare 9 generic {
51    void Trf_FlipRegisterShort (VOID* buffer, int length)
52}
53