MySQL 9.1.0
Source Code Documentation
mysql_service_implementation.h
Go to the documentation of this file.
1/* Copyright (c) 2016, 2024, 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 designed to work 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 either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQL_SERVICE_IMPLEMENTATION_H
25#define MYSQL_SERVICE_IMPLEMENTATION_H
26
28#include "my_metadata.h"
29#include "my_ref_counted.h"
30
31/** a Service implementation registry data */
33 public:
36
37 const char *service_name_c_str() const;
38 const char *name_c_str() const;
39 my_h_service interface() const;
40
41 private:
45};
46
47#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:40
Helper class for reference counting.
Definition: my_ref_counted.h:34
a Service implementation registry data
Definition: mysql_service_implementation.h:32
my_h_service m_interface
Definition: mysql_service_implementation.h:42
const char * name_c_str() const
Gets fully qualified name of this service implementation.
Definition: mysql_service_implementation.cc:69
my_h_service interface() const
Gets pointer to interface structure with method pointers.
Definition: mysql_service_implementation.cc:78
my_string m_service
Definition: mysql_service_implementation.h:43
mysql_service_implementation(my_h_service interface, const char *full_name)
Definition: mysql_service_implementation.cc:26
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:59
my_string m_full_name
Definition: mysql_service_implementation.h:44
struct my_h_service_imp * my_h_service
A handle type for acquired Service.
Definition: registry.h:33
std::string my_string
Definition: my_metadata.h:31