Skip to content

Commit cbd008f

Browse files
committed
Export ap_get_parent_scoreboard and ap_get_servers_scoreboard to be
usable on Win32 and friends. Submitted by: Harrie Hazewinkel <harrie@covalent.net> Reviewed by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92375 13f79535-47bb-0310-9956-ffa450edef68
1 parent 42c25d0 commit cbd008f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/scoreboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ void update_scoreboard_global(void);
216216
AP_DECLARE(int) find_child_by_pid(apr_proc_t *pid);
217217
AP_DECLARE(int) ap_update_child_status(int child_num, int thread_num, int status, request_rec *r);
218218
void ap_time_process_request(int child_num, int thread_num, int status);
219-
worker_score *ap_get_servers_scoreboard(int x, int y);
220-
process_score *ap_get_parent_scoreboard(int x);
219+
AP_DECLARE(worker_score *) ap_get_servers_scoreboard(int x, int y);
220+
AP_DECLARE(process_score *) ap_get_parent_scoreboard(int x);
221221

222222
AP_DECLARE_DATA extern scoreboard *ap_scoreboard_image;
223223
AP_DECLARE_DATA extern const char *ap_scoreboard_fname;

server/scoreboard.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void ap_time_process_request(int child_num, int thread_num, int status)
355355
put_scoreboard_info(child_num, thread_num, ws);
356356
}
357357

358-
worker_score *ap_get_servers_scoreboard(int x, int y)
358+
AP_DECLARE(worker_score *) ap_get_servers_scoreboard(int x, int y)
359359
{
360360
if (((x < 0) || (HARD_SERVER_LIMIT < x)) ||
361361
((y < 0) || (HARD_THREAD_LIMIT < y))) {
@@ -364,7 +364,7 @@ worker_score *ap_get_servers_scoreboard(int x, int y)
364364
return(&ap_scoreboard_image->servers[x][y]);
365365
}
366366

367-
process_score *ap_get_parent_scoreboard(int x)
367+
AP_DECLARE(process_score *) ap_get_parent_scoreboard(int x)
368368
{
369369
if ((x < 0) || (HARD_SERVER_LIMIT < x)) {
370370
return(NULL); /* Out of range */

0 commit comments

Comments
 (0)