Skip to content

Commit 2537a87

Browse files
author
kostja@bodhi.(none)
committed
Provide initial module structure to Doxygen.
1 parent 46b8a07 commit 2537a87

17 files changed

+157
-9
lines changed

sql/event_data_objects.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "event_db_repository.h"
2121
#include "sp_head.h"
2222

23+
/**
24+
@addtogroup Event_Scheduler
25+
@{
26+
*/
2327

2428
#define EVEX_MAX_INTERVAL_VALUE 1000000000L
2529

@@ -2082,3 +2086,7 @@ event_basic_identifier_equal(LEX_STRING db, LEX_STRING name, Event_basic *b)
20822086
return !sortcmp_lex_string(name, b->name, system_charset_info) &&
20832087
!sortcmp_lex_string(db, b->dbname, system_charset_info);
20842088
}
2089+
2090+
/**
2091+
@} (End of group Event_Scheduler)
2092+
*/

sql/event_data_objects.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
along with this program; if not, write to the Free Software
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1717

18+
/**
19+
@addtogroup Event_Scheduler
20+
@{
21+
22+
@file event_data_objects.h
23+
*/
1824

1925
#define EVEX_GET_FIELD_FAILED -2
2026
#define EVEX_BAD_PARAMS -5
@@ -280,5 +286,8 @@ event_basic_db_equal(LEX_STRING db, Event_basic *et);
280286
bool
281287
event_basic_identifier_equal(LEX_STRING db, LEX_STRING name, Event_basic *b);
282288

289+
/**
290+
@} (End of group Event_Scheduler)
291+
*/
283292

284293
#endif /* _EVENT_DATA_OBJECTS_H_ */

sql/event_db_repository.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
#include "events.h"
2121
#include "sql_show.h"
2222

23+
/**
24+
@addtogroup Event_Scheduler
25+
@{
26+
*/
27+
2328
static
2429
const TABLE_FIELD_W_TYPE event_table_fields[ET_FIELD_COUNT] =
2530
{
@@ -1112,3 +1117,7 @@ Event_db_repository::check_system_tables(THD *thd)
11121117

11131118
DBUG_RETURN(test(ret));
11141119
}
1120+
1121+
/**
1122+
@} (End of group Event_Scheduler)
1123+
*/

sql/event_db_repository.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515
along with this program; if not, write to the Free Software
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1717

18-
/*
19-
@file
18+
/**
19+
@addtogroup Event_Scheduler
20+
@{
21+
22+
@file event_db_repository.h
23+
24+
Data Dictionary related operations of Event Scheduler.
25+
2026
This is a private header file of Events module. Please do not include it
2127
directly. All public declarations of Events module should be stored in
2228
events.h and event_data_objects.h.
@@ -119,4 +125,7 @@ class Event_db_repository
119125
void operator=(Event_db_repository &);
120126
};
121127

128+
/**
129+
@} (End of group Event_Scheduler)
130+
*/
122131
#endif /* _EVENT_DB_REPOSITORY_H_ */

sql/event_queue.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#include "event_queue.h"
1818
#include "event_data_objects.h"
1919

20+
/**
21+
@addtogroup Event_Scheduler
22+
@{
23+
*/
2024

2125
#define EVENT_QUEUE_INITIAL_SIZE 30
2226
#define EVENT_QUEUE_EXTENT 30
@@ -749,3 +753,7 @@ Event_queue::dump_internal_status()
749753

750754
DBUG_VOID_RETURN;
751755
}
756+
757+
/**
758+
@} (End of group Event_Scheduler)
759+
*/

sql/event_queue.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,26 @@
1515
along with this program; if not, write to the Free Software
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1717

18+
/**
19+
20+
@addtogroup Event_Scheduler
21+
@{
22+
23+
@file event_queue.h
24+
25+
Queue of events awaiting execution.
26+
*/
27+
1828
class Event_basic;
1929
class Event_queue_element;
2030
class Event_queue_element_for_exec;
2131

2232
class THD;
2333

34+
/**
35+
Queue of active events awaiting execution.
36+
*/
37+
2438
class Event_queue
2539
{
2640
public:
@@ -105,5 +119,8 @@ class Event_queue
105119
bool mutex_queue_data_attempting_lock;
106120
bool waiting_on_cond;
107121
};
122+
/**
123+
@} (End of group Event_Scheduler)
124+
*/
108125

109126
#endif /* _EVENT_QUEUE_H_ */

sql/event_scheduler.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
#include "event_queue.h"
2121
#include "event_db_repository.h"
2222

23+
/**
24+
@addtogroup Event_Scheduler
25+
@{
26+
*/
27+
2328
#ifdef __GNUC__
2429
#if __GNUC__ >= 2
2530
#define SCHED_FUNC __FUNCTION__
@@ -790,3 +795,7 @@ Event_scheduler::dump_internal_status()
790795

791796
DBUG_VOID_RETURN;
792797
}
798+
799+
/**
800+
@} (End of group Event_Scheduler)
801+
*/

sql/event_scheduler.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@
1515
along with this program; if not, write to the Free Software
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1717

18+
/**
19+
@addtogroup Event_Scheduler
20+
@{
21+
*/
1822
/**
1923
@file
20-
This file is internal to Events module. Please do not include it directly.
21-
All public declarations of Events module are in events.h and
22-
event_data_objects.h.
24+
25+
Declarations of the scheduler thread class
26+
and related functionality.
27+
28+
This file is internal to Event_Scheduler module. Please do not
29+
include it directly. All public declarations of Event_Scheduler
30+
module are in events.h and event_data_objects.h.
2331
*/
2432

2533

@@ -140,4 +148,8 @@ class Event_scheduler
140148
void operator=(Event_scheduler &);
141149
};
142150

151+
/**
152+
@} (End of group Event_Scheduler)
153+
*/
154+
143155
#endif /* _EVENT_SCHEDULER_H_ */

sql/events.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
#include "event_scheduler.h"
2222
#include "sp_head.h" // for Stored_program_creation_ctx
2323

24+
/**
25+
@addtogroup Event_Scheduler
26+
@{
27+
*/
28+
2429
/*
2530
TODO list :
2631
- CREATE EVENT should not go into binary log! Does it now? The SQL statements
@@ -1186,3 +1191,7 @@ Events::load_events_from_db(THD *thd)
11861191

11871192
DBUG_RETURN(ret);
11881193
}
1194+
1195+
/**
1196+
@} (End of group Event_Scheduler)
1197+
*/

sql/events.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1717

1818
/**
19-
@file
20-
A public interface of Events Scheduler module.
21-
@defgroup Event Scheduler
19+
@defgroup Event_Scheduler Event Scheduler
20+
@ingroup Runtime_Environment
2221
@{
22+
23+
@file events.h
24+
25+
A public interface of Events_Scheduler module.
2326
*/
2427

2528
class Event_parse_data;

0 commit comments

Comments
 (0)