mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[master] Fixed db_lost_callback default to NULL build issue
Replaced = NULL with = 0 in dhcpsrv header files altered for 5477.
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
/// @param db_lost_callback function to invoke if connectivity to
|
||||
/// either the lease or host managers, once established, is subsequently
|
||||
/// lost.
|
||||
void createManagers(DatabaseConnection::DbLostCallback db_lost_callback = NULL) const;
|
||||
void createManagers(DatabaseConnection::DbLostCallback db_lost_callback = 0) const;
|
||||
|
||||
/// @brief Unparse an access string
|
||||
///
|
||||
|
@@ -150,7 +150,7 @@ public:
|
||||
/// @param db_lost_callback Optional call back function to invoke if a
|
||||
/// successfully open connection subsequently fails
|
||||
DatabaseConnection(const ParameterMap& parameters,
|
||||
DbLostCallback db_lost_callback = NULL)
|
||||
DbLostCallback db_lost_callback = 0)
|
||||
:parameters_(parameters), db_lost_callback_(db_lost_callback) {
|
||||
}
|
||||
|
||||
|
@@ -67,7 +67,7 @@ public:
|
||||
/// @throw isc::dhcp::InvalidType The "type" keyword in dbaccess does not
|
||||
/// identify a supported backend.
|
||||
static void create(const std::string& dbaccess,
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = NULL);
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = 0);
|
||||
|
||||
/// @brief Destroy host data source
|
||||
///
|
||||
|
@@ -73,7 +73,7 @@ public:
|
||||
/// @param db_lost_callback function to invoke if connectivity to
|
||||
/// the host database is lost.
|
||||
static void create(const std::string& access = "",
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = NULL);
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = 0);
|
||||
|
||||
/// @brief Returns a sole instance of the @c HostMgr.
|
||||
///
|
||||
|
@@ -71,7 +71,7 @@ public:
|
||||
/// @throw isc::dhcp::InvalidType The "type" keyword in dbaccess does not
|
||||
/// identify a supported backend.
|
||||
static void create(const std::string& dbaccess,
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = NULL);
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = 0);
|
||||
|
||||
/// @brief Destroy lease manager
|
||||
///
|
||||
|
@@ -61,7 +61,7 @@ public:
|
||||
/// @throw isc::dhcp::DbOperationError An operation on the open database has
|
||||
/// failed.
|
||||
PgSqlHostDataSource(const DatabaseConnection::ParameterMap& parameters,
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = NULL);
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = 0);
|
||||
|
||||
/// @brief Virtual destructor.
|
||||
/// Frees database resources and closes the database connection through
|
||||
|
@@ -59,7 +59,7 @@ public:
|
||||
/// @throw isc::dhcp::DbOperationError An operation on the open database has
|
||||
/// failed.
|
||||
PgSqlLeaseMgr(const DatabaseConnection::ParameterMap& parameters,
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = NULL);
|
||||
DatabaseConnection::DbLostCallback db_lost_callback = 0);
|
||||
|
||||
/// @brief Destructor (closes database)
|
||||
virtual ~PgSqlLeaseMgr();
|
||||
|
Reference in New Issue
Block a user