summaryrefslogtreecommitdiffstats
path: root/src/hooks/dhcp/mysql_cb/mysql_cb_impl.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-04-13 18:11:59 +0200
committerFrancis Dupont <fdupont@isc.org>2019-04-18 15:52:51 +0200
commitd56ea6f1d0688931857ec02ab45d1e78ced3136b (patch)
treef351318391764c52f5c0d863f8003d081b8bedbb /src/hooks/dhcp/mysql_cb/mysql_cb_impl.h
parent[397-cb-implement-mysqlconfigbackenddhcpv6] Checkpoint before code move (diff)
downloadkea-d56ea6f1d0688931857ec02ab45d1e78ced3136b.tar.xz
kea-d56ea6f1d0688931857ec02ab45d1e78ced3136b.zip
[397-cb-implement-mysqlconfigbackenddhcpv6] Shared body of createUpdateOptionDef[46]
Diffstat (limited to 'src/hooks/dhcp/mysql_cb/mysql_cb_impl.h')
-rw-r--r--src/hooks/dhcp/mysql_cb/mysql_cb_impl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/hooks/dhcp/mysql_cb/mysql_cb_impl.h b/src/hooks/dhcp/mysql_cb/mysql_cb_impl.h
index 96fc3d05ae..ebeccec458 100644
--- a/src/hooks/dhcp/mysql_cb/mysql_cb_impl.h
+++ b/src/hooks/dhcp/mysql_cb/mysql_cb_impl.h
@@ -366,6 +366,28 @@ public:
const db::MySqlBindingCollection& in_bindings,
OptionDefContainer& option_defs);
+ /// @brief Creates or updates an option definition.
+ ///
+ /// @param server_selector Server selector.
+ /// @param option_def Option definition to be added or updated.
+ /// @param space Default option space
+ /// @param get_option_def_code_space Statement getting option
+ /// definition by code and space.
+ /// @param insert_option_def Statement inserting option definition.
+ /// @param update_option_def Statement updating option definition.
+ /// @param create_audit_revision Statement creating audit revision.
+ /// @param insert_option_def_server Statement inserting option
+ /// definition in the server table.
+ /// @throw NotImplemented if server selector is "unassigned".
+ void createUpdateOptionDef(const db::ServerSelector& server_selector,
+ const OptionDefinitionPtr& option_def,
+ const std::string& space,
+ const int& get_option_def_code_space,
+ const int& insert_option_def,
+ const int& update_option_def,
+ const int& create_audit_revision,
+ const int& insert_option_def_server);
+
/// @brief Sends query to retrieve single global option by code and
/// option space.
///