/[ascend]/trunk/base/generic/utilities/test/test_ascDynaLoad_shlib.h
ViewVC logotype

Contents of /trunk/base/generic/utilities/test/test_ascDynaLoad_shlib.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 490 - (show annotations) (download) (as text)
Tue Apr 18 06:55:20 2006 UTC (13 years, 7 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1384 byte(s)
Moved 'extern "C"' into the ASC_DLLSPEC macro.
Renamed .no.yacc and .no.flex files to have .c extension, so that SCons can tell what they are.
Working on getting things building on VC++, still some problems (maybe just issues with $PATH tho)./
1 /* ASCEND modelling environment
2 Copyright (C) 2006 Carnegie Mellon University
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef TEST_ASCDYNALOAD_SHLIB_H
21 #define TEST_ASCDYNALOAD_SHLIB_H
22
23 #include <utilities/ascConfig.h>
24
25 typedef int valuetype;
26 typedef int (*initFunc)(void);
27 typedef int (*isInitializedFunc)(void);
28 typedef void (*cleanupFunc)(void);
29
30 /** A public datum. */
31 ASC_DLLSPEC(int) value;
32
33 /** Initializes the library. Returns -5. */
34 int ASC_DLLSPEC init(void);
35 /** Returns TRUE if library has been initialized, FALSE otherwise. */
36 int ASC_DLLSPEC isInitialized(void);
37 /** Cleans up the library. */
38 void ASC_DLLSPEC cleanup(void);
39
40 #endif /* TEST_ASCDYNALOAD_SHLIB_H */

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22