MySQL  8.0.23
Source Code Documentation
engine_loader.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 #ifndef ENGINE_LOADER_H
3 #define ENGINE_LOADER_H
4 
5 #include <memcached/extension.h>
6 #include <memcached/engine.h>
7 #include <memcached/visibility.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 MEMCACHED_PUBLIC_API bool load_engine(const char *soname,
13  SERVER_HANDLE_V1 *(*get_server_api)(void),
14  EXTENSION_LOGGER_DESCRIPTOR *logger,
15  ENGINE_HANDLE **engine_handle);
16 
17 MEMCACHED_PUBLIC_API bool init_engine(ENGINE_HANDLE * engine,
18  const char *config_str,
19  EXTENSION_LOGGER_DESCRIPTOR *logger);
20 
21 MEMCACHED_PUBLIC_API void log_engine_details(ENGINE_HANDLE * engine,
22  EXTENSION_LOGGER_DESCRIPTOR *logger);
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif /* ENGINE_LOADER_H */
init_engine
MEMCACHED_PUBLIC_API bool init_engine(ENGINE_HANDLE *engine, const char *config_str, EXTENSION_LOGGER_DESCRIPTOR *logger)
Definition: engine_loader.c:66
get_server_api
static SERVER_HANDLE_V1 * get_server_api(void)
Callback the engines may call to get the public server interface.
Definition: memcached.c:6871
test_trace::logger
static Logger logger
The "top-level" logger used when no connection context is given.
Definition: test_trace_plugin.cc:293
log_engine_details
MEMCACHED_PUBLIC_API void log_engine_details(ENGINE_HANDLE *engine, EXTENSION_LOGGER_DESCRIPTOR *logger)
Definition: engine_loader.c:114
load_engine
MEMCACHED_PUBLIC_API bool load_engine(const char *soname, SERVER_HANDLE_V1 *(*get_server_api)(void), EXTENSION_LOGGER_DESCRIPTOR *logger, ENGINE_HANDLE **engine_handle)
Definition: engine_loader.c:21
engine
ENGINE_HANDLE * engine
Definition: mock_server.c:28