Author: rinrab
Date: Thu Sep 19 15:02:40 2024
New Revision: 1920786
URL: http://svn.apache.org/viewvc?rev=1920786&view=rev
Log:
ra-modules loading: Factor-out init and compat init functions from
libsvn_ra/ra_loader.h header into libsvn_ra_*/ra_init.h include
file for each module. Then include those headers into it to have
them declared in the loader.
This is only a little refactoring for future change and doesn't includes any
functional changes. After, the those new headers will be exported from DLLs
on Windows and will allow us to build the RA modules in shared configuration.
* 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 init and compat init
functions; partially copied from lisvn_fs_*/fs_init.h.
Added:
subversion/trunk/subversion/libsvn_ra_local/ra_init.h (with props)
subversion/trunk/subversion/libsvn_ra_serf/ra_init.h (with props)
subversion/trunk/subversion/libsvn_ra_svn/ra_init.h (with props)
Modified:
subversion/trunk/subversion/libsvn_ra/ra_loader.h
Modified: subversion/trunk/subversion/libsvn_ra/ra_loader.h
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra/ra_loader.h?rev=1920786&r1=1920785&r2=1920786&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra/ra_loader.h (original)
+++ subversion/trunk/subversion/libsvn_ra/ra_loader.h Thu Sep 19 15:02:40 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_serf/ra_init.h"
+#include "../libsvn_ra_svn/ra_init.h"
Added: subversion/trunk/subversion/libsvn_ra_local/ra_init.h
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_local/ra_init.h?rev=1920786&view=auto
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_local/ra_init.h (added)
+++ subversion/trunk/subversion/libsvn_ra_local/ra_init.h Thu Sep 19 15:02:40
2024
@@ -0,0 +1,41 @@
+/*
+ * 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);
+
+/** Initialize libsvn_ra_local.
+ *
+ * @deprecated Provided for backward compatibility with the 1.1 API. */
+SVN_DEPRECATED
+svn_error_t *
+svn_ra_local_init(int abi_version,
+ apr_pool_t *pool,
+ apr_hash_t *hash);
+
+#endif
Propchange: subversion/trunk/subversion/libsvn_ra_local/ra_init.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: subversion/trunk/subversion/libsvn_ra_serf/ra_init.h
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/ra_init.h?rev=1920786&view=auto
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/ra_init.h (added)
+++ subversion/trunk/subversion/libsvn_ra_serf/ra_init.h Thu Sep 19 15:02:40
2024
@@ -0,0 +1,42 @@
+/*
+ * 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);
+
+/** Initialize libsvn_ra_serf.
+ *
+ * @since New in 1.4.
+ * @deprecated Provided for backward compatibility with the 1.1 API. */
+SVN_DEPRECATED
+svn_error_t *
+svn_ra_serf_init(int abi_version,
+ apr_pool_t *pool,
+ apr_hash_t *hash);
+
+#endif
Propchange: subversion/trunk/subversion/libsvn_ra_serf/ra_init.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: subversion/trunk/subversion/libsvn_ra_svn/ra_init.h
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/ra_init.h?rev=1920786&view=auto
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/ra_init.h (added)
+++ subversion/trunk/subversion/libsvn_ra_svn/ra_init.h Thu Sep 19 15:02:40 2024
@@ -0,0 +1,41 @@
+/*
+ * 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);
+
+/** Initialize libsvn_ra_svn.
+ *
+ * @deprecated Provided for backward compatibility with the 1.1 API. */
+SVN_DEPRECATED
+svn_error_t *
+svn_ra_svn_init(int abi_version,
+ apr_pool_t *pool,
+ apr_hash_t *hash);
+
+#endif
Propchange: subversion/trunk/subversion/libsvn_ra_svn/ra_init.h
------------------------------------------------------------------------------
svn:eol-style = native