MySQL 8.0.40
Source Code Documentation
mysql_runtime_error_service.h File Reference

Go to the source code of this file.

Macros

#define MYF(v)   (myf)(v)
 

Typedefs

typedef int myf
 

Functions

 REQUIRES_SERVICE_PLACEHOLDER (mysql_runtime_error)
 
void mysql_error_service_emit_printf (const mysql_service_mysql_runtime_error_t *error_svc_handle, int error_id, int flags,...)
 This function is substitute api service for my_error function. More...
 
void mysql_error_service_printf (int error_id, int flags,...)
 This function can be used in components code as a replacement for my_error() server function. More...
 

Macro Definition Documentation

◆ MYF

#define MYF (   v)    (myf)(v)

Typedef Documentation

◆ myf

typedef int myf

Function Documentation

◆ mysql_error_service_emit_printf()

void mysql_error_service_emit_printf ( const mysql_service_mysql_runtime_error_t error_svc_handle,
int  error_id,
int  flags,
  ... 
)
inline

This function is substitute api service for my_error function.

To use this api, mysql_runtime_error service has to be acquired by the caller. To use this api, components has to define REQUIRES_SERVICE(mysql_runtime_error) and pass it to this api.

◆ mysql_error_service_printf()

void mysql_error_service_printf ( int  error_id,
int  flags,
  ... 
)
inline

This function can be used in components code as a replacement for my_error() server function.

To use this api, components has to define REQUIRES_SERVICE_PLACEHOLDER(mysql_runtime_error) and REQUIRES_SERVICE(mysql_runtime_error).

◆ REQUIRES_SERVICE_PLACEHOLDER()

REQUIRES_SERVICE_PLACEHOLDER ( mysql_runtime_error  )