- Timestamp:
- May 5, 2008 2:39:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/solaris/vbox-libdlpi.cpp
r8571 r8601 29 29 * and symbols have been successfully loaded. 30 30 */ 31 static RTLDRMOD g hLibDlpi = NULL;31 static RTLDRMOD g_hLibDlpi = NULL; 32 32 33 33 /** … … 36 36 * or failed to load something and unloaded. 37 37 */ 38 static bool g CheckedForLibDlpi = false;38 static bool g_fCheckedForLibDlpi = false; 39 39 40 /** 41 * All the symbols we need from libdlpi. 40 /** All the symbols we need from libdlpi. 41 * @todo r=bird: rename to g_pfnLibDlpi*. 42 * @{ 42 43 */ 43 44 int (*gLibDlpiOpen)(const char *, dlpi_handle_t *, uint_t); … … 49 50 int (*gLibDlpiRecv)(dlpi_handle_t, void *, size_t *, void *, size_t *, int, dlpi_recvinfo_t *); 50 51 int (*gLibDlpiFd)(dlpi_handle_t); 52 /** @} */ 51 53 52 54 bool gLibDlpiFound(void) … … 54 56 RTLDRMOD hLibDlpi; 55 57 56 if (g hLibDlpi && gCheckedForLibDlpi == true)58 if (g_hLibDlpi && g_fCheckedForLibDlpi) 57 59 return true; 58 if (g CheckedForLibDlpi == true)60 if (g_fCheckedForLibDlpi) 59 61 return false; 60 62 if (!RT_SUCCESS(RTLdrLoad(LIB_DLPI, &hLibDlpi))) 61 {62 63 return false; 63 }64 64 if ( RT_SUCCESS(RTLdrGetSymbol(hLibDlpi, "dlpi_open", (void **)&gLibDlpiOpen)) 65 65 && RT_SUCCESS(RTLdrGetSymbol(hLibDlpi, "dlpi_close", (void **)&gLibDlpiClose)) … … 72 72 ) 73 73 { 74 g hLibDlpi = hLibDlpi;75 g CheckedForLibDlpi = true;74 g_hLibDlpi = hLibDlpi; 75 g_fCheckedForLibDlpi = true; 76 76 return true; 77 77 } … … 79 79 { 80 80 RTLdrClose(hLibDlpi); 81 g CheckedForLibDlpi = true;81 g_fCheckedForLibDlpi = true; 82 82 return false; 83 } 83 } 84 84 } 85 85
Note:
See TracChangeset
for help on using the changeset viewer.