00001 // $Id: ltdl_win32.h 11938 2011-10-06 18:13:58Z airwin $ 00002 // 00003 // Contains all prototypes for driver functions. 00004 // 00005 // Copyright (C) 2008 Werner Smekal 00006 // 00007 // This file is part of PLplot. 00008 // 00009 // PLplot is free software; you can redistribute it and/or modify 00010 // it under the terms of the GNU Library General Public License as published 00011 // by the Free Software Foundation; either version 2 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // PLplot is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU Library General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Library General Public License 00020 // along with PLplot; if not, write to the Free Software 00021 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 // 00023 // 00024 00025 #ifndef __LTDL_WIN32_H__ 00026 #define __LTDL_WIN32_H__ 00027 00028 #include <windows.h> 00029 #include "pldll.h" 00030 00031 struct __dlhandle 00032 { 00033 HINSTANCE hinstLib; 00034 struct __dlhandle* previousHandle; 00035 }; 00036 typedef struct __dlhandle* lt_dlhandle; 00037 typedef void lt_ptr; 00038 00039 PLDLLIMPEXP void lt_dlinit( void ); 00040 00041 PLDLLIMPEXP void lt_dlexit( void ); 00042 00043 PLDLLIMPEXP lt_dlhandle lt_dlopenext( char* dllname ); 00044 00045 PLDLLIMPEXP const char* lt_dlerror(); 00046 00047 PLDLLIMPEXP void* lt_dlsym( lt_dlhandle dlhandle, const char* symbol ); 00048 00049 PLDLLIMPEXP int lt_dlmakeresident (lt_dlhandle handle); 00050 00051 #endif // __LTDL_WIN32_H__