MySQL 9.1.0
Source Code Documentation
s_mysql_dynamic_loader_query Struct Reference

Service for listing all Components by iterator. More...

#include <dynamic_loader.h>

Public Attributes

mysql_service_status_t(* create )(my_h_component_iterator *out_iterator)
 Creates iterator that iterates through all loaded components. More...
 
mysql_service_status_t(* get )(my_h_component_iterator iter, const char **out_name, const char **out_urn)
 Gets name and URN of Service pointed to by iterator. More...
 
mysql_service_status_t(* next )(my_h_component_iterator iter)
 Advances specified iterator to next element. More...
 
mysql_service_status_t(* is_valid )(my_h_component_iterator iter)
 Checks if specified iterator is valid, i.e. More...
 
void(* release )(my_h_component_iterator iter)
 Releases component iterator. More...
 

Detailed Description

Service for listing all Components by iterator.

Member Data Documentation

◆ create

mysql_service_status_t(* s_mysql_dynamic_loader_query::create) (my_h_component_iterator *out_iterator)

Creates iterator that iterates through all loaded components.

If successful it leaves read lock on dynamic loader until iterator is released.

Parameters
[out]out_iteratorPointer to component iterator handle.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

◆ get

mysql_service_status_t(* s_mysql_dynamic_loader_query::get) (my_h_component_iterator iter, const char **out_name, const char **out_urn)

Gets name and URN of Service pointed to by iterator.

Parameters
iteratorComponent iterator handle.
[out]out_namePointer to string with component name to set result pointer to.
[out]out_urnPointer to string with URN from which the component was loaded from, to set result pointer to.
Returns
Status of performed operation
Return values
falsesuccess
trueFailure, may be caused when called on iterator that went through all values already.

◆ is_valid

mysql_service_status_t(* s_mysql_dynamic_loader_query::is_valid) (my_h_component_iterator iter)

Checks if specified iterator is valid, i.e.

have not reached one-past-last element.

Parameters
iteratorComponent iterator handle.
Returns
Validity of iterator
Return values
falseValid
trueInvalid or reached one-past-last element.

◆ next

mysql_service_status_t(* s_mysql_dynamic_loader_query::next) (my_h_component_iterator iter)

Advances specified iterator to next element.

Will succeed but return true if it reaches one-past-last element.

Parameters
iteratorComponent iterator handle.
Returns
Status of performed operation and validity of iterator after operation.
Return values
falsesuccess
trueFailure or called on iterator that was on last element.

◆ release

void(* s_mysql_dynamic_loader_query::release) (my_h_component_iterator iter)

Releases component iterator.

Releases read lock on dynamic loader.

Parameters
iteratorComponent iterator handle.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

The documentation for this struct was generated from the following file: