MySQL 8.0.39
Source Code Documentation
service_plugin_registry.h File Reference

Declaration of the registry plugin service. More...

Go to the source code of this file.

Classes

struct  plugin_registry_service_st
 A bridge service allowing plugins to work with the registry. More...
 

Macros

#define MYSQL_SERVICE_PLUGIN_REGISTRY_INCLUDED
 

Functions

const mysql_service_registry_tmysql_plugin_registry_acquire ()
 Returns a new reference to the "registry" service. More...
 
int mysql_plugin_registry_release (const mysql_service_registry_t *)
 Releases a registry service reference. More...
 

Variables

struct plugin_registry_service_stplugin_registry_service
 

Detailed Description

Declaration of the registry plugin service.

Macro Definition Documentation

◆ MYSQL_SERVICE_PLUGIN_REGISTRY_INCLUDED

#define MYSQL_SERVICE_PLUGIN_REGISTRY_INCLUDED

Function Documentation

◆ mysql_plugin_registry_acquire()

const mysql_service_registry_t * mysql_plugin_registry_acquire ( )

Returns a new reference to the "registry" service.

Implementation of plugin_registry_service_st::mysql_plugin_registry_acquire_func

Uses the global registry instance to search for the default implementation of the "registry" service by calling mysql_service_registry_t::acquire().

The reference must be released through calling mysql_plugin_registry_release() to avoid resource leaks.

Returns
The newly acquired registry service pointer.
Return values
NULLerror. mysql_service_registry_t::acquire() failed.

See also mysql_plugin_registry_release(), Component Subsystem, The Service Registry Service, mysql_service_registry_t::acquire()

◆ mysql_plugin_registry_release()

int mysql_plugin_registry_release ( const mysql_service_registry_t reg)

Releases a registry service reference.

Implementation of plugin_registry_service_st::mysql_plugin_registry_release_func

Uses the global registry instance to release a service reference to the "registry" service passed as a parameter by calling mysql_service_registry_t::release() This is the reverse of mysql_plugin_registry_acquire().

Parameters
regthe registry service handle to release
Returns
the result of mysql_service_registry_t::release()
Return values
0Success
non-zeroFailure

See also mysql_plugin_registry_release(), Component Subsystem, The Service Registry Service, mysql_service_registry_t::release()