MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SERVER_EXTENSION_API Struct Reference

#include <extension.h>

Public Attributes

bool(* register_extension )(extension_type_t type, void *extension)
void(* unregister_extension )(extension_type_t type, void *extension)
void *(* get_extension )(extension_type_t type)

Detailed Description

The API provided by the server to manipulate the list of server server extensions.

Definition at line 223 of file extension.h.

Member Data Documentation

void*(* SERVER_EXTENSION_API::get_extension)(extension_type_t type)

Get the registered extension for a certain type. This is useful if you would like to replace one of the handlers with your own extension to proxy functionality.

Parameters
typeThe type of extension to get
extensionPointer to the registered event. Please note that if the extension allows for multiple instances of the extension there will be a "next" pointer inside the element that can be used for object traversal.

Definition at line 252 of file extension.h.

bool(* SERVER_EXTENSION_API::register_extension)(extension_type_t type, void *extension)

Register an extension

Parameters
typeThe type of extension to register (ex: daemon, logger etc)
extensionThe extension to register
Returns
true if success, false otherwise

Definition at line 231 of file extension.h.

void(* SERVER_EXTENSION_API::unregister_extension)(extension_type_t type, void *extension)

Unregister an extension

Parameters
typeThe type of extension to unregister
extensionThe extension to unregister

Definition at line 239 of file extension.h.


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