1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | /* This file should not be included in any file outside of this directory */ |
10 | |
11 | #ifndef LIBMAL |
12 | #error this file should not be included outside its source directory |
13 | #endif |
14 | |
15 | #ifdef _MAL_CLIENT_H_ |
16 | /* _MAL_CLIENT_H_ is defined in the same file as Client */ |
17 | __hidden void MCexitClient(Client c) |
18 | __attribute__((__visibility__("hidden" ))); |
19 | __hidden void MCfreeClient(Client c) |
20 | __attribute__((__visibility__("hidden" ))); |
21 | __hidden int MCreadClient(Client c) |
22 | __attribute__((__visibility__("hidden" ))); |
23 | __hidden void MCpopClientInput(Client c) |
24 | __attribute__((__visibility__("hidden" ))); |
25 | __hidden str defaultScenario(Client c) /* used in src/mal/mal_session.c */ |
26 | __attribute__((__visibility__("hidden" ))); |
27 | __hidden void mdbStep(Client cntxt, MalBlkPtr mb, MalStkPtr stk, int pc) |
28 | __attribute__((__visibility__("hidden" ))); |
29 | |
30 | __hidden str runFactory(Client cntxt, MalBlkPtr mb, MalBlkPtr mbcaller, MalStkPtr stk, InstrPtr pci) |
31 | __attribute__((__visibility__("hidden" ))); |
32 | __hidden int yieldResult(MalBlkPtr mb, InstrPtr p, int pc) |
33 | __attribute__((__visibility__("hidden" ))); |
34 | __hidden str yieldFactory(MalBlkPtr mb, InstrPtr p, int pc) |
35 | __attribute__((__visibility__("hidden" ))); |
36 | __hidden str callFactory(Client cntxt, MalBlkPtr mb, ValPtr argv[],char flag) |
37 | __attribute__((__visibility__("hidden" ))); |
38 | #endif |
39 | |
40 | __hidden void initResource(void) |
41 | __attribute__((__visibility__("hidden" ))); |
42 | |
43 | __hidden str malAtomDefinition(str name,int tpe) |
44 | __attribute__((__visibility__("hidden" ))); |
45 | __hidden str malAtomProperty(MalBlkPtr mb, InstrPtr pci) |
46 | __attribute__((__visibility__("hidden" ))); |
47 | |
48 | __hidden void setqptimeout(lng usecs) |
49 | __attribute__((__visibility__("hidden" ))); |
50 | |
51 | __hidden bool mdbInit(void) |
52 | __attribute__((__visibility__("hidden" ))); |
53 | __hidden void mdbExit(void) |
54 | __attribute__((__visibility__("hidden" ))); |
55 | |
56 | #ifdef MAXSCOPE |
57 | /* MAXSCOPE is defined in the same file as Module */ |
58 | __hidden Symbol cloneFunction(Module scope, Symbol proc, MalBlkPtr mb, InstrPtr p) |
59 | __attribute__((__visibility__("hidden" ))); |
60 | #endif |
61 | __hidden int getBarrierEnvelop(MalBlkPtr mb) |
62 | __attribute__((__visibility__("hidden" ))); |
63 | __hidden void listFunction(stream *fd, MalBlkPtr mb, MalStkPtr stk, int flg, int first, int step) |
64 | __attribute__((__visibility__("hidden" ))); |
65 | |
66 | /* mal_linker.h */ |
67 | __hidden char *MSP_locate_script(const char *mod_name) |
68 | __attribute__((__visibility__("hidden" ))); |
69 | |
70 | /* Reset primitives */ |
71 | __hidden mal_export void AUTHreset(void) |
72 | __attribute__((__visibility__("hidden" ))); |
73 | |
74 | __hidden mal_export void mal_client_reset(void) |
75 | __attribute__((__visibility__("hidden" ))); |
76 | |
77 | __hidden mal_export void mal_dataflow_reset(void) |
78 | __attribute__((__visibility__("hidden" ))); |
79 | |
80 | __hidden mal_export void mal_factory_reset(void) |
81 | __attribute__((__visibility__("hidden" ))); |
82 | |
83 | __hidden mal_export void mal_linker_reset(void) |
84 | __attribute__((__visibility__("hidden" ))); |
85 | |
86 | __hidden mal_export void mal_module_reset(void) |
87 | __attribute__((__visibility__("hidden" ))); |
88 | |
89 | __hidden mal_export void mal_namespace_reset(void) |
90 | __attribute__((__visibility__("hidden" ))); |
91 | |
92 | __hidden mal_export void mal_resource_reset(void) |
93 | __attribute__((__visibility__("hidden" ))); |
94 | |
95 | __hidden mal_export void mal_runtime_reset(void) |
96 | __attribute__((__visibility__("hidden" ))); |
97 | |