MySQL 8.0.40
Source Code Documentation
example_component1.cc File Reference

Functions

mysql_service_status_t example_init ()
 This file contains a definition of the example_component1. More...
 
mysql_service_status_t example_deinit ()
 De-initialization method for Component used when unloading the Component. More...
 
 PROVIDES_SERVICE (example_component1, greetings)
 
 PROVIDES_SERVICE (example_component1, greetings_localization)
 
 PROVIDES_SERVICE (example_component1, example_math)
 
 END_COMPONENT_PROVIDES ()
 
 BEGIN_COMPONENT_REQUIRES (example_component1) END_COMPONENT_REQUIRES()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 METADATA ("test_property", "1")
 
 END_COMPONENT_METADATA ()
 

Variables

const mysql_service_greetings_t imp_example_component1_greetings
 
const mysql_service_greetings_localization_t imp_example_component1_greetings_localization
 
const mysql_service_example_math_t imp_example_component1_example_math
 
mysql_component_t mysql_component_example_component1
 

Function Documentation

◆ BEGIN_COMPONENT_REQUIRES()

BEGIN_COMPONENT_REQUIRES ( example_component1  )

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ example_deinit()

mysql_service_status_t example_deinit ( )

De-initialization method for Component used when unloading the Component.

Returns
Status of performed operation
Return values
0success
non-zerofailure

◆ example_init()

mysql_service_status_t example_init ( )

This file contains a definition of the example_component1.

Initialization entry method for Component used when loading the Component.

Returns
Status of performed operation
Return values
0success
non-zerofailure

◆ METADATA() [1/3]

METADATA ( "mysql.author"  ,
"Oracle Corporation"   
)

◆ METADATA() [2/3]

METADATA ( "mysql.license"  ,
"GPL"   
)

◆ METADATA() [3/3]

METADATA ( "test_property"  ,
"1"   
)

◆ PROVIDES_SERVICE() [1/3]

PROVIDES_SERVICE ( example_component1  ,
example_math   
)

◆ PROVIDES_SERVICE() [2/3]

PROVIDES_SERVICE ( example_component1  ,
greetings   
)

◆ PROVIDES_SERVICE() [3/3]

PROVIDES_SERVICE ( example_component1  ,
greetings_localization   
)

Variable Documentation

◆ imp_example_component1_example_math

const mysql_service_example_math_t imp_example_component1_example_math
Initial value:
= {
static mysql_service_status_t calculate_gcd(int a, int b, int *result) noexcept
Calculates Greatest Common Divisor for given two non-negative numbers.
Definition: simple_example_math_imp.cc:40

◆ imp_example_component1_greetings

const mysql_service_greetings_t imp_example_component1_greetings
Initial value:
= {
static mysql_service_status_t say_hello(const char **hello_string) noexcept
Retrieves an English greeting message.
Definition: english_greeting_service_imp.cc:38

◆ imp_example_component1_greetings_localization

const mysql_service_greetings_localization_t imp_example_component1_greetings_localization
Initial value:
= {
static mysql_service_status_t get_language(const char **language_string) noexcept
Retrieves a greeting message language.
Definition: english_greeting_service_imp.cc:53

◆ mysql_component_example_component1

mysql_component_t mysql_component_example_component1
Initial value:
= { "mysql:example_component1" , __example_component1_provides, __example_component1_requires, __example_component1_metadata,
mysql_service_status_t example_deinit()
De-initialization method for Component used when unloading the Component.
Definition: example_component1.cc:50
mysql_service_status_t example_init()
This file contains a definition of the example_component1.
Definition: example_component1.cc:41