MySQL 8.4.2
Source Code Documentation
dynamic_loader_service_notification.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 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_COMPONENTS_SERVICES_DYNAMIC_LOADER_SERVICE_NOTIFICATION_H
25#define MYSQL_COMPONENTS_SERVICES_DYNAMIC_LOADER_SERVICE_NOTIFICATION_H
26
28
29/**
30 @file mysql/components/services/dynamic_loader_service_notification.h
31 Connection event tracking.
32*/
33
34/**
35 @ingroup group_components_services_inventory
36
37 A service to notify consumers about services loaded
38 through dynamic loader.
39*/
40
41BEGIN_SERVICE_DEFINITION(dynamic_loader_services_loaded_notification)
42
43/**
44 Notify about services that are recently loaded
45
46 @param [in] services Names to services recently loaded
47 @param [in] count Number of services recently loaded
48
49 @returns status of notification
50 @retval false Success
51 @retval true Failure
52*/
53
54DECLARE_BOOL_METHOD(notify, (const char **services, unsigned int count));
55
56END_SERVICE_DEFINITION(dynamic_loader_services_loaded_notification)
57
58/**
59 @ingroup group_components_services_inventory
60
61 A service to notify consumers about services to be unloaded
62 through dynamic loader.
63*/
64
65BEGIN_SERVICE_DEFINITION(dynamic_loader_services_unload_notification)
66
67/**
68 Notify about services that are about to be unloaded
69
70 @param [in] services Names to services being unloaded
71 @param [in] count Number of services being unloaded
72
73 @returns status of notification
74 @retval false Success
75 @retval true Failure
76*/
77
78DECLARE_BOOL_METHOD(notify, (const char **services, unsigned int count));
79
80END_SERVICE_DEFINITION(dynamic_loader_services_unload_notification)
81
82#endif // !MYSQL_COMPONENTS_SERVICES_DYNAMIC_LOADER_SERVICE_NOTIFICATION_H
static int count
Definition: myisam_ftdump.cc:45
Definition: services.cc:40
static bool notify(SvcTypes svc_type, Notification_context &ctx)
Auxiliary function to engage the service registry to notify a set of listeners.
Definition: notification.cc:87
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86
#define DECLARE_BOOL_METHOD(name, args)
Declares a method that returns bool as a part of the Service definition.
Definition: service.h:112