summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/mysql_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dhcpsrv/mysql_connection.h')
-rwxr-xr-xsrc/lib/dhcpsrv/mysql_connection.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/lib/dhcpsrv/mysql_connection.h b/src/lib/dhcpsrv/mysql_connection.h
index 8d52c57a30..8d208234ff 100755
--- a/src/lib/dhcpsrv/mysql_connection.h
+++ b/src/lib/dhcpsrv/mysql_connection.h
@@ -24,20 +24,31 @@
namespace isc {
namespace dhcp {
-/// @brief MySQL True/False constants
+/// @name MySQL constants.
///
-/// Declare typed values so as to avoid problems of data conversion. These
-/// are local to the file but are given the prefix MLM (MySql Lease Manager) to
-/// avoid any likely conflicts with variables in header files named TRUE or
-/// FALSE.
+//@{
+
+/// @brief MySQL false value.
extern const my_bool MLM_FALSE;
+
+/// @brief MySQL true value.
extern const my_bool MLM_TRUE;
-// Define the current database schema values
+/// @brief MySQL fetch success code.
+extern const int MLM_MYSQL_FETCH_SUCCESS;
+
+/// @brief MySQL fetch failure code.
+extern const int MLM_MYSQL_FETCH_FAILURE;
+//@}
+
+/// @name Current database schema version values.
+//@{
const uint32_t CURRENT_VERSION_VERSION = 3;
const uint32_t CURRENT_VERSION_MINOR = 0;
+//@}
+
/// @brief Fetch and Release MySQL Results
///
/// When a MySQL statement is expected, to fetch the results the function