MySQL  8.0.19
Source Code Documentation
test_status_var_service_int.cc File Reference
#include <fcntl.h>
#include <mysql/components/component_implementation.h>
#include <mysql/components/service_implementation.h>
#include <mysql/components/services/component_status_var_service.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "typelib.h"

Macros

#define MAX_BUFFER_LENGTH   100
 
#define WRITE_LOG(format, lit_log_text)
 

Functions

 REQUIRES_SERVICE_PLACEHOLDER (status_variable_registration)
 
static mysql_service_status_t test_component_status_var_service_int_init ()
 Initialization entry method for test component. More...
 
static mysql_service_status_t test_component_status_var_service_int_deinit ()
 De-initialization method for Component. More...
 
 END_COMPONENT_PROVIDES ()
 
 REQUIRES_SERVICE (status_variable_registration)
 
 END_COMPONENT_REQUIRES ()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 METADATA ("test_component_status_var_service", "1")
 
 END_COMPONENT_METADATA ()
 

Variables

int log_text_len = 0
 
char log_text [MAX_BUFFER_LENGTH]
 
FILE * outfile
 
const char * filename = "test_component_status_var_service_int.log"
 
static int int_variable_value = 4096
 
static int int_var_2_value = 2048
 
static unsigned int uint_variable_value = 0
 
SHOW_VAR int_variable []
 
SHOW_VAR int_var_2 []
 
SHOW_VAR uint_variable []
 
mysql_component_t mysql_component_test_component_status_var_service
 

Macro Definition Documentation

◆ MAX_BUFFER_LENGTH

#define MAX_BUFFER_LENGTH   100

◆ WRITE_LOG

#define WRITE_LOG (   format,
  lit_log_text 
)
Value:
log_text_len = sprintf(log_text, format, lit_log_text); \
fwrite((uchar *)log_text, sizeof(char), log_text_len, outfile)

Function Documentation

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ END_COMPONENT_REQUIRES()

END_COMPONENT_REQUIRES ( )

◆ METADATA() [1/3]

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

◆ METADATA() [2/3]

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

◆ METADATA() [3/3]

METADATA ( "test_component_status_var_service"  ,
"1"   
)

◆ REQUIRES_SERVICE()

REQUIRES_SERVICE ( status_variable_registration  )

◆ REQUIRES_SERVICE_PLACEHOLDER()

REQUIRES_SERVICE_PLACEHOLDER ( status_variable_registration  )

◆ test_component_status_var_service_int_deinit()

static mysql_service_status_t test_component_status_var_service_int_deinit ( )
static

De-initialization method for Component.

◆ test_component_status_var_service_int_init()

static mysql_service_status_t test_component_status_var_service_int_init ( )
static

Initialization entry method for test component.

It executes the tests of the service.

Variable Documentation

◆ filename

const char* filename = "test_component_status_var_service_int.log"

◆ int_var_2

SHOW_VAR int_var_2[]
Initial value:
= {
{"int_var_2", (char *)&int_var_2_value, SHOW_INT, SHOW_SCOPE_GLOBAL},
}

◆ int_var_2_value

int int_var_2_value = 2048
static

◆ int_variable

SHOW_VAR int_variable[]
Initial value:
= {
{"test_int_component.int_variable", (char *)&int_variable_value, SHOW_INT,
}

◆ int_variable_value

int int_variable_value = 4096
static

◆ log_text

char log_text[MAX_BUFFER_LENGTH]

◆ log_text_len

int log_text_len = 0

◆ mysql_component_test_component_status_var_service

mysql_component_t mysql_component_test_component_status_var_service
Initial value:
= { "mysql:test_component_status_var_service" , __test_component_status_var_service_provides, __test_component_status_var_service_requires, __test_component_status_var_service_metadata,

◆ outfile

FILE* outfile

◆ uint_variable

SHOW_VAR uint_variable[]
Initial value:
= {
{"test_int_component.uint_variable", (char *)&uint_variable_value, SHOW_INT,
}

◆ uint_variable_value

unsigned int uint_variable_value = 0
static
uint_variable_value
static unsigned int uint_variable_value
Definition: test_status_var_service_int.cc:47
outfile
FILE * outfile
Definition: test_status_var_service_int.cc:36
log_text_len
int log_text_len
Definition: test_status_var_service_int.cc:34
SHOW_SCOPE_UNDEF
@ SHOW_SCOPE_UNDEF
Definition: status_var.h:68
SHOW_SCOPE_GLOBAL
@ SHOW_SCOPE_GLOBAL
Definition: status_var.h:69
int_var_2_value
static int int_var_2_value
Definition: test_status_var_service_int.cc:46
int_variable_value
static int int_variable_value
Definition: test_status_var_service_int.cc:45
uchar
unsigned char uchar
Definition: my_inttypes.h:51
test_component_status_var_service_int_deinit
static mysql_service_status_t test_component_status_var_service_int_deinit()
De-initialization method for Component.
Definition: test_status_var_service_int.cc:97
SHOW_INT
@ SHOW_INT
shown as unsigned int
Definition: status_var.h:32
log_text
char log_text[MAX_BUFFER_LENGTH]
Definition: test_status_var_service_int.cc:35
SHOW_UNDEF
@ SHOW_UNDEF
Definition: status_var.h:30
test_component_status_var_service_int_init
static mysql_service_status_t test_component_status_var_service_int_init()
Initialization entry method for test component.
Definition: test_status_var_service_int.cc:68