]> granicus.if.org Git - apache/commitdiff
Export ap_get_parent_scoreboard and ap_get_servers_scoreboard to be
authorAaron Bannert <aaron@apache.org>
Fri, 7 Dec 2001 19:06:29 +0000 (19:06 +0000)
committerAaron Bannert <aaron@apache.org>
Fri, 7 Dec 2001 19:06:29 +0000 (19:06 +0000)
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

include/scoreboard.h
server/scoreboard.c

index b198aefdeef3fc27bc09b6794b72758c847ddaf7..48fd0805396e52de191f87dba6df200d2cc52933 100644 (file)
@@ -216,8 +216,8 @@ void update_scoreboard_global(void);
 AP_DECLARE(int) find_child_by_pid(apr_proc_t *pid);
 AP_DECLARE(int) ap_update_child_status(int child_num, int thread_num, int status, request_rec *r);
 void ap_time_process_request(int child_num, int thread_num, int status);
-worker_score *ap_get_servers_scoreboard(int x, int y);
-process_score *ap_get_parent_scoreboard(int x);
+AP_DECLARE(worker_score *) ap_get_servers_scoreboard(int x, int y);
+AP_DECLARE(process_score *) ap_get_parent_scoreboard(int x);
 
 AP_DECLARE_DATA extern scoreboard *ap_scoreboard_image;
 AP_DECLARE_DATA extern const char *ap_scoreboard_fname;
index afc018be6cd4a1cb02242a5582de587252af3ec6..5bbdec5ddbae5c8307930e91983d768264f57cdf 100644 (file)
@@ -355,7 +355,7 @@ void ap_time_process_request(int child_num, int thread_num, int status)
     put_scoreboard_info(child_num, thread_num, ws);
 }
 
-worker_score *ap_get_servers_scoreboard(int x, int y)
+AP_DECLARE(worker_score *) ap_get_servers_scoreboard(int x, int y)
 {
     if (((x < 0) || (HARD_SERVER_LIMIT < x)) ||
         ((y < 0) || (HARD_THREAD_LIMIT < y))) {
@@ -364,7 +364,7 @@ worker_score *ap_get_servers_scoreboard(int x, int y)
     return(&ap_scoreboard_image->servers[x][y]);
 }
 
-process_score *ap_get_parent_scoreboard(int x)
+AP_DECLARE(process_score *) ap_get_parent_scoreboard(int x)
 {
     if ((x < 0) || (HARD_SERVER_LIMIT < x)) {
         return(NULL); /* Out of range */