summaryrefslogtreecommitdiff
path: root/inc/IncludeLibrary_typedef.h
blob: ff8bdff2c08a17a74ffe4e06e2c970f559940538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#ifndef __INCLUDELIBRARY_TYPEDEF_H
#define __INCLUDELIBRARY_TYPEDEF_H

//#ifdef WNT
//#define LPARAM void*
//#endif

typedef void (*PVOID_FUNCTION)(void) ;

typedef void (*PUSR_SET_UIC)(char *usrnam,
                             int pid,
                             int *uic,
                             int *usruic,
                             int *k_chg_uic) ;

typedef int (*PSERVER) (PUSR_SET_UIC) ;

typedef int (*PSTART_SERVER)(void *astprm ,
                             PSTATUS status ,
                             int nbrtsk ,
                             char **server ,
                             int  k_fork ,
                             char *cputype ,
                             short num_func_intr );

typedef int (*PSRV_RSP)(void *,
                        PSTATUS status,
                        int *buffrsp,
                        int *lgrsp) ;

typedef int (*PSRV_RECEIVING)(int NUMLNK,
                              int seqbyt,
                              int *BUFACP,
                              int lg_func,
                              PSRV_RSP rpc_hdle,
                              void *,
                              PSTATUS status);
typedef void (*PGET_RECEIVING)(int *nbr_ret_func ,
                               PVOID_FUNCTION *TABRETFUNC ,
                               int nbrfunc ,
                               PVOID_FUNCTION * ,
                               int nbrptr ,
                               void **tabptr ,
                               int nbrval ,
                               int *tabval ) ;

typedef int (*PSRV_CTL)(void *inum,
                        int func,
                        int *bufcmd,
                        int sizcmd,
                        int sizrspbuf,
                        int k_synch ,
                        PSRV_RSP astadr,
                        void *,
                        PSTATUS status,
                        int *bufrsp,
                        int *sizrsp) ;

typedef int (*PAST_ADDR_PV)(void *) ;

typedef int (*PAST_ADDR_V)(int ) ;

typedef int (*PREAD_AST_MBX)(int lnk,
                             int limit,
                             int *ptr_uic,
                             char *ptr_usrnam,
                             int *ptr_pid) ;

#ifdef WNT
typedef unsigned ( __stdcall *PTHREAD_START ) ( void* );
#endif

typedef void (*PVOID_FUNCTION)(void) ;

typedef char *(*PGET_ENGINE_PATH)(void) ;

typedef void (*PGET_VECTOR)(int **K_VERBOSE ,
                            PVOID_FUNCTION ** ,
                            int *nbr_addr ) ;

typedef void (*POSD_EXITODEB)(void) ;

typedef int (*POSD_HOST_ADDR_TCP)(char *node,
                                  unsigned char *intadr,
                                  PSTATUS sts) ;

typedef int (*PNTD_ISERDISC)(PSTATUS status) ;

typedef void (*PACT_SIGIO_HANDLER)(void) ;

typedef int (*PENV_ENGINE)(int *lnk ,
                           int k_do_exec,
                           int K_START,
                           char *Engine_Path_Name,
                           char **Engine_Path ,
                           char **Engine_Name ) ;

typedef int (*PLOAD_ENGINE)(char *Engine_Path,
                            char *Engine_Name,
                            int KVERBOSEINIT ,
                            int *nbr_ret_func ,
                            PVOID_FUNCTION *TABRETFUNC ,
                            int nbrptrfunc ,
                            PVOID_FUNCTION *TABFUNC ,
                            int nbrptr ,
                            void **TABPTR ,
                            int nbrval ,
                            int *TABVAL );

typedef int (*POSD_NODENAME_TCP)(char *nodloc,
                                 int len,
                                 PSTATUS rpc_status ) ;

typedef int (*PSTRSTS)(void *numlnk,
                       char *code,
                       char stat,
                       PSTATUS status,
                       int lgmsg,
                       char *msgerr,
                       int *lenerr ) ;

typedef const char (*POSD_GETMSG)( int ) ;

typedef int (*PENGINE_CATEGORY)(int Category ) ;

typedef int (*PENGINE_ARGUMENT)(unsigned int Type,
                                void* Value) ;

typedef int (*PENGINE_SELECTOR)() ;

typedef int (*PENGINE_RETURN)(int*& Position,
                              unsigned int*& Type,
                              int*& NbElem,
                              int*& Length,
                              int**& Value) ;

#endif