VirtualBox

Changeset 8601 in vbox for trunk


Ignore:
Timestamp:
May 5, 2008 2:39:39 PM (17 years ago)
Author:
vboxsync
Message:

r=bird: Please rename the function pointers to g_pfnLibDlpi*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/solaris/vbox-libdlpi.cpp

    r8571 r8601  
    2929 * and symbols have been successfully loaded.
    3030 */
    31 static RTLDRMOD ghLibDlpi = NULL;
     31static RTLDRMOD g_hLibDlpi = NULL;
    3232
    3333/**
     
    3636 * or failed to load something and unloaded.
    3737 */
    38 static bool gCheckedForLibDlpi = false;
     38static bool g_fCheckedForLibDlpi = false;
    3939
    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 * @{
    4243 */
    4344int (*gLibDlpiOpen)(const char *, dlpi_handle_t *, uint_t);
     
    4950int (*gLibDlpiRecv)(dlpi_handle_t, void *, size_t *, void *, size_t *, int, dlpi_recvinfo_t *);
    5051int (*gLibDlpiFd)(dlpi_handle_t);
     52/** @} */
    5153
    5254bool gLibDlpiFound(void)
     
    5456    RTLDRMOD hLibDlpi;
    5557
    56     if (ghLibDlpi && gCheckedForLibDlpi == true)
     58    if (g_hLibDlpi && g_fCheckedForLibDlpi)
    5759        return true;
    58     if (gCheckedForLibDlpi == true)
     60    if (g_fCheckedForLibDlpi)
    5961        return false;
    6062    if (!RT_SUCCESS(RTLdrLoad(LIB_DLPI, &hLibDlpi)))
    61     {
    6263        return false;
    63     }
    6464    if (   RT_SUCCESS(RTLdrGetSymbol(hLibDlpi, "dlpi_open", (void **)&gLibDlpiOpen))
    6565        && RT_SUCCESS(RTLdrGetSymbol(hLibDlpi, "dlpi_close", (void **)&gLibDlpiClose))
     
    7272       )
    7373    {
    74         ghLibDlpi = hLibDlpi;
    75         gCheckedForLibDlpi = true;
     74        g_hLibDlpi = hLibDlpi;
     75        g_fCheckedForLibDlpi = true;
    7676        return true;
    7777    }
     
    7979    {
    8080        RTLdrClose(hLibDlpi);
    81         gCheckedForLibDlpi = true;
     81        g_fCheckedForLibDlpi = true;
    8282        return false;
    83     }   
     83    }
    8484}
    8585
Note: See TracChangeset for help on using the changeset viewer.

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