subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1656377 - in /subversion/branches/reuse-ra-session/subversion/libsvn_client: ra_cache.c ra_cache.h
Date Sun, 01 Feb 2015 23:46:21 GMT
Author: brane
Date: Sun Feb  1 23:46:21 2015
New Revision: 1656377

URL: http://svn.apache.org/r1656377
Log:
On the reuse-ra-session branch: Fix struct naming and indentation.
No functional change. 

* subversion/libsvn_client/ra_cache.h: Rename include guard for consistency.
  (svn_client__ra_cache_t): Rename struct tag from svn_client__ra_cache_s.
  (svn_client__ra_cache_create,
   svn_client__ra_cache_open_session,
   svn_client__ra_cache_release_session): Fix function argument indentation.
* subversion/libsvn_client/ra_cache.c
  (svn_client__ra_cache_t): Rename struct tag from svn_client__ra_cache_s.
  (cached_session_t): Rename struct tag from cached_session_s.

Modified:
    subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.c
    subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.h

Modified: subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.c
URL: http://svn.apache.org/viewvc/subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.c?rev=1656377&r1=1656376&r2=1656377&view=diff
==============================================================================
--- subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.c (original)
+++ subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.c Sun Feb  1 23:46:21
2015
@@ -35,7 +35,7 @@
 #define RCTX_DBG(x) while(0)
 #endif
 
-typedef struct cached_session_s
+typedef struct cached_session_t
 {
   svn_ra_session_t *session;
 
@@ -61,7 +61,7 @@ typedef struct cached_session_s
   apr_off_t progress;
 } cached_session_t;
 
-struct svn_client__ra_cache_s
+struct svn_client__ra_cache_t
 {
   /* Hashtable of cached RA sessions. Keys are RA_SESSION_T and values
    * are CACHED_SESION_T pointers. */

Modified: subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.h
URL: http://svn.apache.org/viewvc/subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.h?rev=1656377&r1=1656376&r2=1656377&view=diff
==============================================================================
--- subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.h (original)
+++ subversion/branches/reuse-ra-session/subversion/libsvn_client/ra_cache.h Sun Feb  1 23:46:21
2015
@@ -21,8 +21,8 @@
  * ====================================================================
  */
 
-#ifndef SVN_LIBSVN_ra_cache_H
-#define SVN_LIBSVN_ra_cache_H
+#ifndef SVN_LIBSVN_CLIENT_RA_CACHE_H
+#define SVN_LIBSVN_CLIENT_RA_CACHE_H
 
 #include <apr_pools.h>
 
@@ -34,13 +34,13 @@
 extern "C" {
 #endif /* __cplusplus */
 
-typedef struct svn_client__ra_cache_s svn_client__ra_cache_t;
+typedef struct svn_client__ra_cache_t svn_client__ra_cache_t;
 
 /* Allocates ra_cache structure in POOL. Will use CONFIG for
    for RA sessions created in this context. */
 svn_client__ra_cache_t *
 svn_client__ra_cache_create(apr_hash_t *config,
-                          apr_pool_t *pool);
+                            apr_pool_t *pool);
 
 /* Open new repository access session to the repository at BASE_URL or
    reuses existing session cached in CTX.
@@ -54,22 +54,22 @@ svn_client__ra_cache_create(apr_hash_t *
    Uses SCRATCH_POOL for temporary allocations. */
 svn_error_t *
 svn_client__ra_cache_open_session(svn_ra_session_t **session_p,
-                                const char **corrected_p,
-                                svn_client__ra_cache_t *ctx,
-                                const char *base_url,
-                                const char *uuid,
-                                svn_ra_callbacks2_t *cbtable,
-                                void *callback_baton,
-                                apr_pool_t *result_pool,
-                                apr_pool_t *scratch_pool);
+                                  const char **corrected_p,
+                                  svn_client__ra_cache_t *ctx,
+                                  const char *base_url,
+                                  const char *uuid,
+                                  svn_ra_callbacks2_t *cbtable,
+                                  void *callback_baton,
+                                  apr_pool_t *result_pool,
+                                  apr_pool_t *scratch_pool);
 
 /* Returns RA SESSION back to CTX. */
 void
 svn_client__ra_cache_release_session(svn_client__ra_cache_t *ctx,
-                                   svn_ra_session_t *session);
+                                     svn_ra_session_t *session);
 
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
 
-#endif /* SVN_LIBSVN_ra_cache_H */
+#endif /* SVN_LIBSVN_CLIENT_RA_CACHE_H */



Mime
View raw message