VirtualBox

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

Last change on this file since 77807 was 69474, checked in by vboxsync, 7 years ago

*: scm updates - header files should have 'svn:keywords=Id Revision' too (doesn't mean they have to use them).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
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# ifdef VBOX
13# include <iprt/win/windows.h>
14# else
15#include <windows.h>
16# endif
17#endif
18
19#include <iprt/cdefs.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25typedef struct {
26 char *name;
27#if defined(WINDOWS)
28 HINSTANCE hinstLib;
29#elif defined(IRIX) || defined(IRIX64) || defined(Linux) || defined(FreeBSD) || defined(AIX) || defined(SunOS) || defined(OSF1)
30 void *hinstLib;
31#elif defined(DARWIN)
32 void *hinstLib; /* void to avoid including the headers */
33 int type; /* to avoid calling crStrstr all the time */
34#else
35#error ARCHITECTURE DLL NOT IMPLEMENTED
36#endif
37} CRDLL;
38
39typedef void (*CRDLLFunc)(void);
40DECLEXPORT(CRDLL *) crDLLOpen( const char *dllname, int resolveGlobal );
41DECLEXPORT(CRDLLFunc) crDLLGetNoError( CRDLL *dll, const char *symname );
42DECLEXPORT(CRDLLFunc) crDLLGet( CRDLL *dll, const char *symname );
43DECLEXPORT(void) crDLLClose( CRDLL *dll );
44
45#ifdef __cplusplus
46}
47#endif
48
49#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