apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41807] New: - dbd driver registration function
Date Sat, 10 Mar 2007 17:52:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41807>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41807

           Summary: dbd driver registration function
           Product: APR
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: Tom.Donovan@acm.org


A public function in apr_dbd.c to register a dbd driver at runtime.
This could be called by the application, or by the driver itself from _init() or
DllMain().

APU_DECLARE(apr_status_t) apr_dbd_set_driver(apr_pool_t *pool, const char *name,
                                             const apr_dbd_driver_t *driver)
{
    apr_dbd_driver_t *prev = apr_hash_get(drivers, name, APR_HASH_KEY_STRING);
    if (prev && (prev != driver)) {
        return APR_EGENERAL;
    }
    apr_hash_set(drivers, name, APR_HASH_KEY_STRING, driver);
    return APR_SUCCESS;
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message