Commit 7f5702a3 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[trac930] Add prototypes of validator_typea and


  - validator_type -- a type of statistics validation function

  - registerStatisticsValidator -- the function to register the
    validation function
parent e60ecc91
......@@ -131,6 +131,26 @@ public:
/// \return the value of the counter specified by \a type.
uint64_t getCounter(const AuthCounters::CounterType type) const;
/// \brief A type of validation function for the specification in
/// isc::config::ModuleSpec.
/// This type might be useful for not only statistics
/// specificatoin but also for config_data specification and for
/// commnad.
typedef boost::function<bool(const isc::data::ConstElementPtr&)>
/// \brief Register a function type of the statistics validation
/// function for AuthCounters.
/// This method never throws an exception.
/// \param validator A function type of the validation of
/// statistics specification.
void registerStatisticsValidator(AuthCounters::validator_type validator) const;
#endif // __STATISTICS_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment