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