VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/cr_dll.h@ 24107

Last change on this file since 24107 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved.
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#ifndef CR_DLL_H
8#define CR_DLL_H
9
10#if defined(WINDOWS)
11#define WIN32_LEAN_AND_MEAN
12#include <windows.h>
13#endif
14
15#include <iprt/cdefs.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21typedef struct {
22 char *name;
23#if defined(WINDOWS)
24 HINSTANCE hinstLib;
25#elif defined(IRIX) || defined(IRIX64) || defined(Linux) || defined(FreeBSD) || defined(AIX) || defined(SunOS) || defined(OSF1)
26 void *hinstLib;
27#elif defined(DARWIN)
28 void *hinstLib; /* void to avoid including the headers */
29 int type; /* to avoid calling crStrstr all the time */
30#else
31#error ARCHITECTURE DLL NOT IMPLEMENTED
32#endif
33} CRDLL;
34
35typedef void (*CRDLLFunc)(void);
36DECLEXPORT(CRDLL *) crDLLOpen( const char *dllname, int resolveGlobal );
37DECLEXPORT(CRDLLFunc) crDLLGetNoError( CRDLL *dll, const char *symname );
38DECLEXPORT(CRDLLFunc) crDLLGet( CRDLL *dll, const char *symname );
39DECLEXPORT(void) crDLLClose( CRDLL *dll );
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* CR_DLL_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette