MySQL 9.1.0
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 @sa The convenience class @ref weak_service_reference
41*/
42
43BEGIN_SERVICE_DEFINITION(dynamic_loader_services_loaded_notification)
44
45/**
46 Notify about services that are recently loaded
47
48 @param [in] services Names to services recently loaded
49 @param [in] count Number of services recently loaded
50
51 @returns status of notification
52 @retval false Success
53 @retval true Failure
54*/
55
56DECLARE_BOOL_METHOD(notify, (const char **services, unsigned int count));
57
58END_SERVICE_DEFINITION(dynamic_loader_services_loaded_notification)
59
60/**
61 @ingroup group_components_services_inventory
62
63 A service to notify consumers about services to be unloaded
64 through dynamic loader.
65*/
66
67BEGIN_SERVICE_DEFINITION(dynamic_loader_services_unload_notification)
68
69/**
70 Notify about services that are about to be unloaded
71
72 @param [in] services Names to services being unloaded
73 @param [in] count Number of services being unloaded
74
75 @returns status of notification
76 @retval false Success
77 @retval true Failure
78*/
79
80DECLARE_BOOL_METHOD(notify, (const char **services, unsigned int count));
81
82END_SERVICE_DEFINITION(dynamic_loader_services_unload_notification)
83
84#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