Author: rinrab
Date: Fri Sep 20 14:52:20 2024
New Revision: 1920809

URL: http://svn.apache.org/viewvc?rev=1920809&view=rev
Log:
On the 'windows-shared-ra-modules' branch: Factor-out init (without adding
compat init functions) from libsvn_ra/ra_loader.h header into
libsvn_ra_*/ra_init.h include files for each module. Then include those
headers into it to have them declared in the loader.

This doesn't change anything, because the functions moved into headers
will be included then.

 * subversion/libsvn_ra/ra_loader.h
  (svn_ra_local__init,
   svn_ra_svn__init,
   svn_ra_serf__init): Remove declarations.
  (): Include libsvn_ra_local/ra_init.h, libsvn_ra_serf/ra_init.h
   libsvn_ra_svn/ra_init.h for those init functions.

* subversion/libsvn_ra_local/ra_init.h,
  subversion/libsvn_ra_serf/ra_init.h,
  subversion/libsvn_ra_svn/ra_init.h: New headers with only init
  functions; partially copied from lisvn_fs_*/fs_init.h.

Added:
    
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_local/ra_init.h
   (with props)
    
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_serf/ra_init.h
   (with props)
    
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_svn/ra_init.h
   (with props)
Modified:
    
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra/ra_loader.h

Modified: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra/ra_loader.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra/ra_loader.h?rev=1920809&r1=1920808&r2=1920809&view=diff
==============================================================================
--- 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra/ra_loader.h 
(original)
+++ 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra/ra_loader.h 
Fri Sep 20 14:52:20 2024
@@ -420,15 +420,9 @@ typedef svn_error_t *
                        apr_pool_t *pool);
 
 /* Declarations of the init functions for the available RA libraries. */
-svn_error_t *svn_ra_local__init(const svn_version_t *loader_version,
-                                const svn_ra__vtable_t **vtable,
-                                apr_pool_t *pool);
-svn_error_t *svn_ra_svn__init(const svn_version_t *loader_version,
-                              const svn_ra__vtable_t **vtable,
-                              apr_pool_t *pool);
-svn_error_t *svn_ra_serf__init(const svn_version_t *loader_version,
-                               const svn_ra__vtable_t **vtable,
-                               apr_pool_t *pool);
+#include "../libsvn_ra_local/ra_init.h"
+#include "../libsvn_ra_svn/ra_init.h"
+#include "../libsvn_ra_serf/ra_init.h"
 
 
 

Added: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_local/ra_init.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_local/ra_init.h?rev=1920809&view=auto
==============================================================================
--- 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_local/ra_init.h
 (added)
+++ 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_local/ra_init.h
 Fri Sep 20 14:52:20 2024
@@ -0,0 +1,32 @@
+/*
+ * libsvn_ra_local/ra_init.h:  Exported function of libsvn_ra_local
+ *
+ * ====================================================================
+ *    Licensed to the Apache Software Foundation (ASF) under one
+ *    or more contributor license agreements.  See the NOTICE file
+ *    distributed with this work for additional information
+ *    regarding copyright ownership.  The ASF licenses this file
+ *    to you under the Apache License, Version 2.0 (the
+ *    "License"); you may not use this file except in compliance
+ *    with the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing,
+ *    software distributed under the License is distributed on an
+ *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *    KIND, either express or implied.  See the License for the
+ *    specific language governing permissions and limitations
+ *    under the License.
+ * ====================================================================
+ */
+
+#ifndef LIBSVN_RA_RA_LOADER_H
+#error Please include libsvn_ra/ra_loader.h instead of this file
+#else
+
+svn_error_t *svn_ra_local__init(const svn_version_t *loader_version,
+                                const svn_ra__vtable_t **vtable,
+                                apr_pool_t *pool);
+
+#endif

Propchange: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_local/ra_init.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_serf/ra_init.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_serf/ra_init.h?rev=1920809&view=auto
==============================================================================
--- 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_serf/ra_init.h
 (added)
+++ 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_serf/ra_init.h
 Fri Sep 20 14:52:20 2024
@@ -0,0 +1,32 @@
+/*
+ * libsvn_ra_serf/ra_init.h:  Exported function of libsvn_ra_serf
+ *
+ * ====================================================================
+ *    Licensed to the Apache Software Foundation (ASF) under one
+ *    or more contributor license agreements.  See the NOTICE file
+ *    distributed with this work for additional information
+ *    regarding copyright ownership.  The ASF licenses this file
+ *    to you under the Apache License, Version 2.0 (the
+ *    "License"); you may not use this file except in compliance
+ *    with the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing,
+ *    software distributed under the License is distributed on an
+ *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *    KIND, either express or implied.  See the License for the
+ *    specific language governing permissions and limitations
+ *    under the License.
+ * ====================================================================
+ */
+
+#ifndef LIBSVN_RA_RA_LOADER_H
+#error Please include libsvn_ra/ra_loader.h instead of this file
+#else
+
+svn_error_t *svn_ra_serf__init(const svn_version_t *loader_version,
+                               const svn_ra__vtable_t **vtable,
+                               apr_pool_t *pool);
+
+#endif

Propchange: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_serf/ra_init.h
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_svn/ra_init.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_svn/ra_init.h?rev=1920809&view=auto
==============================================================================
--- 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_svn/ra_init.h
 (added)
+++ 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_svn/ra_init.h
 Fri Sep 20 14:52:20 2024
@@ -0,0 +1,32 @@
+/*
+ * libsvn_ra_svn/ra_init.h:  Exported function of libsvn_ra_svn
+ *
+ * ====================================================================
+ *    Licensed to the Apache Software Foundation (ASF) under one
+ *    or more contributor license agreements.  See the NOTICE file
+ *    distributed with this work for additional information
+ *    regarding copyright ownership.  The ASF licenses this file
+ *    to you under the Apache License, Version 2.0 (the
+ *    "License"); you may not use this file except in compliance
+ *    with the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *    Unless required by applicable law or agreed to in writing,
+ *    software distributed under the License is distributed on an
+ *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *    KIND, either express or implied.  See the License for the
+ *    specific language governing permissions and limitations
+ *    under the License.
+ * ====================================================================
+ */
+
+#ifndef LIBSVN_RA_RA_LOADER_H
+#error Please include libsvn_ra/ra_loader.h instead of this file
+#else
+
+svn_error_t *svn_ra_svn__init(const svn_version_t *loader_version,
+                              const svn_ra__vtable_t **vtable,
+                              apr_pool_t *pool);
+
+#endif

Propchange: 
subversion/branches/windows-shared-ra-modules/subversion/libsvn_ra_svn/ra_init.h
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to