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