24#ifndef OPTION_TRACKER_USAGE_H
25#define OPTION_TRACKER_USAGE_H
48 unsigned long long *pCounter,
62 const char *option_name,
78 const char *option_name,
101 const char *option_name,
103 unsigned long long *pCounter);
bool(* mysql_option_tracker_usage_cache_update_callback)(unsigned long long new_value)
Definition: mysql_option_tracker.h:127
static bool cb(unsigned long long new_value)
Definition: option_usage.cc:45
bool option_usage_read_counter(const char *option_name, unsigned long long *pCounter, const mysql_service_registry_t *registry)
A helper function to read the current value of a option usage counter.
Definition: option_tracker_usage.cc:144
bool option_usage_register_callback(const char *option_name, mysql_option_tracker_usage_cache_update_callback cb, const mysql_service_registry_t *registry)
Registers a cache update callback.
Definition: option_tracker_usage.cc:116
bool option_usage_set_counter_from_json(const mysql_service_registry_t *registry, const char *option_name, char *usage_data, unsigned long long *pCounter)
A helper function to parse a JSON string and extract the counter value.
Definition: option_tracker_usage.cc:62
bool option_usage_unregister_callback(const char *option_name, mysql_option_tracker_usage_cache_update_callback cb, const mysql_service_registry_t *registry)
Unregisters a cache update callback.
Definition: option_tracker_usage.cc:130
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76