]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r535169 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Wed, 9 May 2007 19:35:45 +0000 (19:35 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 9 May 2007 19:35:45 +0000 (19:35 +0000)
* Add extern "C" linkage to several headers to make it easier to use
  them in C++ code.

PR: 42286
Submitted by: Davi Arnaut <davi haxent.com.br>
Reviewed by: rpluem, wrowe, niq

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@536627 13f79535-47bb-0310-9956-ffa450edef68

STATUS
include/ap_listen.h
include/ap_mpm.h
include/ap_provider.h
include/util_cfgtree.h
include/util_ldap.h

diff --git a/STATUS b/STATUS
index 8e4eb4716667732f58103b4e9cf0d096100e2042..2825f8e83886f28b0f24de0f0182e6bf0ea79cda 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -105,15 +105,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
       (It also works for httpd-2.2.x).
       +1: jfclere, rpluem, wrowe
 
-   * core: Add extern "C" linkage to several headers to make it easier to use
-     them in C++ code.
-        PR: 42286
-     Trunk version of patch:
-       http://svn.apache.org/viewvc?view=rev&revision=535169
-     2.2.x version of patch:
-       Trunk version works
-     +1: rpluem, wrowe, niq
-
    * mod_so: Backport 520733; more helpful LoadModule feedback, so it reads;
         Syntax error in -C/-c directive:
         API module structure 'ftp_module' in file /.../modules/mod_ftp.so 
index a652128bd3e597f05babb99121587b5d76bf9384..b623495ba1c4af4fbaac4210f2690676caa8365f 100644 (file)
 #include "httpd.h"
 #include "http_config.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct ap_listen_rec ap_listen_rec;
 typedef apr_status_t (*accept_function)(void **csd, ap_listen_rec *lr, apr_pool_t *ptrans);
 
@@ -115,5 +119,9 @@ AP_INIT_TAKE1("SendBufferSize", ap_set_send_buffer_size, NULL, RSRC_CONF, \
 AP_INIT_TAKE1("ReceiveBufferSize", ap_set_receive_buffer_size, NULL, \
               RSRC_CONF, "Receive buffer size in bytes")
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 /** @} */
index 107a8c08a9b7ce4e191eac127076b3f2575d858f..713f97d8ffbb4cdffd916c7d919688a2e407c52f 100644 (file)
 
 #include "apr_thread_proc.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
     The MPM, "multi-processing model" provides an abstraction of the
     interface with the OS for distributing incoming connections to
@@ -179,5 +183,9 @@ typedef struct ap_exception_info_t {
 AP_DECLARE_HOOK(int,fatal_exception,(ap_exception_info_t *ei))
 #endif /*AP_ENABLE_EXCEPTION_HOOK*/
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 /** @} */
index e54b9188faf01ee600e2a47f3cf04106ff069230..adfc69cad69e0ffa827a1d62b5eedc8ca01ff664 100644 (file)
 
 #include "ap_config.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct {
     const char *provider_name;
 } ap_list_provider_names_t;
@@ -74,5 +78,9 @@ AP_DECLARE(apr_array_header_t *) ap_list_provider_names(apr_pool_t *pool,
                                               const char *provider_group,
                                               const char *provider_version);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 /** @} */
index 78df416d2b86a6da6231b5fdebafc44194a92a0b..58673f6e01ce2539e8e565bfa217cc421aab0a49 100644 (file)
 
 #include "ap_config.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct ap_directive_t ap_directive_t;
 
 /**
@@ -83,5 +87,9 @@ AP_DECLARE_DATA extern ap_directive_t *ap_conftree;
 ap_directive_t *ap_add_node(ap_directive_t **parent, ap_directive_t *current, 
                             ap_directive_t *toadd, int child);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 /** @} */
index d6c034eebeb7a77c1abe348054ae94fc74430d24..f0dca264ac02d89626c2bbbbb3e3ce5d4e769770 100644 (file)
 #define LDAP_DECLARE_DATA             __declspec(dllimport)
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * LDAP Connections
  */
@@ -323,6 +327,8 @@ apr_status_t util_ldap_cache_init(apr_pool_t *pool, util_ldap_state_t *st);
  * @deffunc char *util_ald_cache_display(apr_pool_t *pool, util_ldap_state_t *st)
  */
 char *util_ald_cache_display(request_rec *r, util_ldap_state_t *st);
-
+#ifdef __cplusplus
+}
+#endif
 #endif /* APR_HAS_LDAP */
 #endif /* UTIL_LDAP_H */