MySQL 8.4.2
Source Code Documentation
|
Service for listing all Service Implementations by iterator. More...
#include <registry.h>
Public Attributes | |
mysql_service_status_t(* | create )(const char *service_name_pattern, my_h_service_iterator *out_iterator) |
Creates iterator that iterates through all registered Service Implementations. More... | |
mysql_service_status_t(* | get )(my_h_service_iterator iter, const char **out_name) |
Gets name of Service pointed to by iterator. More... | |
mysql_service_status_t(* | next )(my_h_service_iterator iter) |
Advances specified iterator to next element. More... | |
mysql_service_status_t(* | is_valid )(my_h_service_iterator iter) |
Checks if specified iterator is valid, i.e. More... | |
void(* | release )(my_h_service_iterator iter) |
Releases the Service Implementations iterator. More... | |
Service for listing all Service Implementations by iterator.
mysql_service_status_t(* s_mysql_registry_query::create) (const char *service_name_pattern, my_h_service_iterator *out_iterator) |
Creates iterator that iterates through all registered Service Implementations.
If successful it leaves read lock on the Registry until iterator is released. The starting point of iteration may be specified to be on one particular Service Implementation. The iterator will move through all Service Implementations and additionally through all default Service Implementation additionally, i.e. the default Service Implementation will be returned twice. If no name is specified for search, iterator will be positioned on the first Service Implementation.
service_name_pattern | Name of Service or Service Implementation to start iteration from. May be empty string or NULL pointer, in which case iteration starts from the first Service Implementation. | |
[out] | out_iterator | Pointer to the Service Implementation iterator handle. |
false | success |
true | failure |
mysql_service_status_t(* s_mysql_registry_query::get) (my_h_service_iterator iter, const char **out_name) |
Gets name of Service pointed to by iterator.
The pointer returned will last at least up to the moment of call to the release() method on the iterator.
iterator | Service Implementation iterator handle. | |
[out] | out_name | Pointer to string with name to set result pointer to. |
false | success |
true | Failure, may be caused when called on iterator that went through all values already. |
mysql_service_status_t(* s_mysql_registry_query::is_valid) (my_h_service_iterator iter) |
Checks if specified iterator is valid, i.e.
have not reached one-past-last element.
iterator | Service Implementation iterator handle. |
false | Valid |
true | Invalid or reached one-past-last element. |
mysql_service_status_t(* s_mysql_registry_query::next) (my_h_service_iterator iter) |
Advances specified iterator to next element.
Will succeed but return true if it reaches one-past-last element.
iterator | Service Implementation iterator handle. |
false | success |
true | Failure or called on iterator that was on last element. |
void(* s_mysql_registry_query::release) (my_h_service_iterator iter) |
Releases the Service Implementations iterator.
Releases read lock on the Registry.
iterator | Service Implementation iterator handle. |
false | success |
true | failure |