MySQL 8.3.0
Source Code Documentation
mysql_service_implementation.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 2023, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is also distributed with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef MYSQL_SERVICE_IMPLEMENTATION_H
24#define MYSQL_SERVICE_IMPLEMENTATION_H
25
27#include "my_metadata.h"
28#include "my_ref_counted.h"
29
30/** a Service implementation registry data */
32 public:
35
36 const char *service_name_c_str() const;
37 const char *name_c_str() const;
38 my_h_service interface() const;
39
40 private:
44};
45
46#endif /* MYSQL_SERVICE_IMPLEMENTATION_H */
The metadata class used by both the registry and the dynamic loader services to store and manage meta...
Definition: my_metadata.h:39
Helper class for reference counting.
Definition: my_ref_counted.h:33
a Service implementation registry data
Definition: mysql_service_implementation.h:31
my_h_service m_interface
Definition: mysql_service_implementation.h:41
const char * name_c_str() const
Gets fully qualified name of this service implementation.
Definition: mysql_service_implementation.cc:68
my_h_service interface() const
Gets pointer to interface structure with method pointers.
Definition: mysql_service_implementation.cc:77
my_string m_service
Definition: mysql_service_implementation.h:42
mysql_service_implementation(my_h_service interface, const char *full_name)
Definition: mysql_service_implementation.cc:25
mysql_service_implementation(mysql_service_implementation &other)
const char * service_name_c_str() const
Gets service name that is implemented by this service implementation.
Definition: mysql_service_implementation.cc:58
my_string m_full_name
Definition: mysql_service_implementation.h:43
struct my_h_service_imp * my_h_service
A handle type for acquired Service.
Definition: registry.h:32
std::string my_string
Definition: my_metadata.h:30