0024835: Graphic structure for highlighting is not erased if presentable object for...
[occt.git] / src / IncludeLibrary / IncludeLibrary_server_interface.h
1 /*
2  Copyright (c) 1998-1999 Matra Datavision
3  Copyright (c) 1999-2014 OPEN CASCADE SAS
4
5  This file is part of Open CASCADE Technology software library.
6
7  This library is free software; you can redistribute it and/or modify it under
8  the terms of the GNU Lesser General Public License version 2.1 as published
9  by the Free Software Foundation, with special exception defined in the file
10  OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11  distribution for complete text of the license and disclaimer of any warranty.
12
13  Alternatively, this file may be used under the terms of Open CASCADE
14  commercial license or contractual agreement.
15 */
16
17 #ifndef __INCLUDE_LIBRARY_SERVER_INTERFACE_H
18 # define __INCLUDE_LIBRARY_SERVER_INTERFACE_H
19
20 # ifndef WNT
21 # include <signal.h>
22 # endif
23
24 # ifndef __INCLUDELIBRARY_TYPEDEF_H
25 # include <IncludeLibrary_typedef.h>
26 # endif
27
28 # if defined(WNT) && !defined(HAVE_NO_DLL)
29 #  ifndef __server_API
30 #   if defined(__Serpc_DLL) || defined(__Server_DLL)
31 #    define __server_API __declspec( dllexport )
32 #   else
33 #    define __server_API __declspec( dllimport )
34 #   endif
35 #  endif
36 #  ifndef __Engine_API
37 #   if defined(__Engine_DLL)
38 #    define __Engine_API __declspec( dllexport )
39 #   else
40 #    define __Engine_API __declspec( dllimport )
41 #   endif
42 #  endif
43 # else
44 #  define __server_API
45 #  define __Engine_API
46 # endif
47
48 extern int __server_API srv_error(int NUMLNK,
49                                   PSTATUS status);
50
51 extern int __server_API srv_init(PSTART_SERVER start_serpc,
52                                  void *param,
53                                  char *nodloc,
54                                  int  phyadr[]);
55
56 extern int __Engine_API srv_receiving(int NUMLNK,
57                                       int seqbyt,
58                                       int *BUFACP,
59                                       int lg_func,
60                                       PSRV_RSP rpc_hdle,
61                                       void *,
62                                       PSTATUS status);
63
64 extern int __server_API srv_status(char *msg,
65                                    int param,
66                                    PSTATUS rpc_status,
67                                    int LEN,
68                                    char *msga);
69
70 # ifdef CSF1
71
72 extern int srvinfo_clt(void *vastprm,
73                        char *username);
74 extern int srvuid_clt(void *astprm);
75
76 # if defined(__GNUC__) || defined(LIN)
77 #define get_receiving_signatura "get_receiving__FPiPPFv_viT1iPPviT0"
78 #define get_receiving_signature "get_receiving__FPiPPFv_viT1iPPviT0"
79 #define get_receiving_signatur0 "get_receiving__FPiPPFv_viT1iPPviT0"
80 #define get_receiving_signatur1 "get_receiving__FPiPPFv_viT1iPPviT0"
81 # elif defined(__osf__) || defined(DECOSF1)
82 #define get_receiving_signatura "get_receiving"
83 #define get_receiving_signature "get_receiving__XPiPPXv_viPPXv_viPPviPi"
84 #define get_receiving_signatur0 "get_receiving__XPPXiiPiiPXPvP6STATUSPiPi_iPvP6STATUS_iiPPXv_viPPviPi"
85 #define get_receiving_signatur1 "get_receiving__XPPXiiPiiPXPvP7_statusPiPi_iPvP7_status_iiPPXv_viPPviPi"
86 #  elif defined(__sun) || defined(SOLARIS)
87 #define get_receiving_signatura "get_receiving"
88 #define get_receiving_signature "__0FNget_receivingPiPPFv_viTCTDPPvTDTB"
89 #define get_receiving_signatur0 "__0FNget_receivingPPFiTBPiTBPFPvP6GSTATUSPiTD_iPvP6GSTATUS_iiPPFv_vTCPPvTCPi"
90 #define get_receiving_signatur1 "__0FNget_receivingPPFiTBPiTBPFPvP6H_statusPiTD_iPvP6H_status_iiPPFv_vTCPPvTCPi"
91 #  elif defined(__sgi) || defined(IRIX)
92 #define get_receiving_signatura "get_receiving__GPiPPGv_viT2T3PPvT3T1"
93 #define get_receiving_signature "get_receiving__FPiPPFv_viT2T3PPvT3T1"
94 #define get_receiving_signatur0 "get_receiving__FPPFiT1PiT1PFPvP6STATUSPiT3_iPvP6STATUS_iiPPFv_vT2PPvT2Pi"
95 #define get_receiving_signatur1 "get_receiving__FPPFiT1PiT1PFPvP7_statusPiT3_iPvP7_status_iiPPFv_vT2PPvT2Pi"
96 #  elif defined(__hpux) || defined(HPUX)
97 #define get_receiving_signatura "get_receiving"
98 #define get_receiving_signature "get_receiving__FPiPPFv_viT2T3PPvT3T1"
99 #define get_receiving_signatur0 "get_receiving__FPPFiT1PiT1PFPvP6STATUSPiT3_iPvP6STATUS_iiPPFv_vT2PPvT2Pi"
100 #define get_receiving_signatur1 "get_receiving__FPPFiT1PiT1PFPvP7_statusPiT3_iPvP7_status_iiPPFv_vT2PPvT2Pi"
101 #  elif defined(WNT)
102 #define get_receiving_signatura "get_receiving"
103 #define get_receiving_signature "?get_receiving@@YAXPAHPAP6AXXZH1HPAPAXH0@Z"
104 #define get_receiving_signatur0 "?get_receiving@@YAXPAP6AHHHPAHHP6AHPAXPAUSTATUS@@00@Z12@ZP6APADXZP6AXXZH@Z"
105 #define get_receiving_signatur1 "?get_receiving@@YAXPAP6AHHHPAHHP6AHPAXPAU_status@@00@Z12@ZHPAP6AXXZHPAPAXH0@Z"
106 #  elif defined(_AIX) || defined(AIX)
107 #define get_receiving_signatura "get_receiving__FPiPPFv_viT2T3PPvT3T1"
108 #define get_receiving_signature "get_receiving__FPiPPFv_viT2T3PPvT3T1"
109 #define get_receiving_signatur0 "get_receiving__FPiPPFv_viT2T3PPvT3T1"
110 #define get_receiving_signatur1 "get_receiving__FPiPPFv_viT2T3PPvT3T1"
111 #  endif
112
113 extern void __Engine_API get_receiving(int *nbr_ret_func ,
114                                        PVOID_FUNCTION *TABRETFUNC ,
115                                        int ,                   // nbrfunc
116 #ifndef WNT
117                                        PVOID_FUNCTION * ,
118 #else
119                                        PVOID_FUNCTION *adr_func ,
120 #endif
121                                        int ,                   // nbrptr
122                                        void **tabptr ,
123                                        int ,                   // nbrval
124                                        int *tabval ) ;
125 /*                                       PSRV_RECEIVING *srv_receiving,
126                                        int nbrfunc ,
127                                        void (**adr_func)() ,
128                                        int nbrptr ,
129                                        void **tabptr ,
130                                        int nbrval ,
131                                        int *tabval ) ;*/
132 # endif
133 #endif  /* __INCLUDE_LIBRARY_SERVER_INTERFACE_H */