MySQL  8.0.18
Source Code Documentation
mysql_service_implementation.h
Go to the documentation of this file.
1 /* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2 
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6 
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, 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:
33  mysql_service_implementation(my_h_service interface, const char *full_name);
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 */
mysql_service_implementation(my_h_service interface, const char *full_name)
Definition: mysql_service_implementation.cc:25
my_string m_full_name
Definition: mysql_service_implementation.h:43
The metadata class used by both the registry and the dynamic loader services to store and manage meta...
Definition: my_metadata.h:39
const char * service_name_c_str() const
Gets service name that is implemented by this service implementation.
Definition: mysql_service_implementation.cc:61
a Service implementation registry data
Definition: mysql_service_implementation.h:31
std::string my_string
Definition: dynamic_loader_path_filter.cc:36
const char * name_c_str() const
Gets fully qualified name of this service implementation.
Definition: mysql_service_implementation.cc:71
my_h_service interface() const
Gets pointer to interface structure with method pointers.
Definition: mysql_service_implementation.cc:80
my_string m_service
Definition: mysql_service_implementation.h:42
my_h_service m_interface
Definition: mysql_service_implementation.h:41
Helper class for reference counting.
Definition: my_ref_counted.h:33
struct my_h_service_imp * my_h_service
A handle type for acquired Service.
Definition: registry.h:32