comparison src/sysdll.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with XEmacs; see the file COPYING. If not, write to the Free 18 along with XEmacs; see the file COPYING. If not, write to the Free
19 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 19 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */ 20 02111-1307, USA. */
21 21
22 #ifndef INCLUDED_sysdll_h_ 22 #ifndef _SYSDLL_H
23 #define INCLUDED_sysdll_h_ 23 #define _SYSDLL_H
24 24
25 #ifdef __cplusplus 25 #ifdef __cplusplus
26 extern "C" { 26 extern "C" {
27 #endif 27 #endif
28 28
29 #if defined(WIN32_NATIVE) 29 #if defined(WIN32)
30 #define DLLEXPORT __declspec(dllexport) 30 #define DLLEXPORT __declspec(dllexport)
31 #elif defined(WIN16) 31 #elif defined(_WINDOWS)
32 #define DLLEXPORT FAR PASCAL _EXPORT 32 #define DLLEXPORT FAR PASCAL _EXPORT
33 #else 33 #else
34 #define DLLEXPORT 34 #define DLLEXPORT
35 #endif 35 #endif
36 36
37 typedef void * dll_handle; 37 typedef void * dll_handle;
38 typedef void * dll_func; 38 typedef void * dll_func;
39 typedef void * dll_var; 39 typedef void * dll_var;
40 40
41 int dll_init(const char *); 41 int dll_init(CONST char *);
42 int dll_shutdown(void); 42 int dll_shutdown(void);
43 dll_handle dll_open(const char *); 43 dll_handle dll_open(CONST char *);
44 int dll_close(dll_handle); 44 int dll_close(dll_handle);
45 dll_func dll_function(dll_handle,const char *); 45 dll_func dll_function(dll_handle,CONST char *);
46 dll_var dll_variable(dll_handle,const char *); 46 dll_var dll_variable(dll_handle,CONST char *);
47 const char *dll_error(dll_handle); 47 CONST char *dll_error(dll_handle);
48 48
49 #ifdef __cplusplus 49 #ifdef __cplusplus
50 } 50 }
51 #endif 51 #endif
52 52
53 #endif /* INCLUDED_sysdll_h_ */ 53 #endif /* _SYSDLL_H */