You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yoshiki Hayashi <yo...@xemacs.org> on 2001/02/24 07:08:35 UTC

[PATCH] svn_fs__txn_id

The lack of this function (and svn_fs__dag_txn_root)
prevents --enable-shared build.

* txn.c (svn_fs__txn_id): New function.

Index: subversion/libsvn_fs/txn.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_fs/txn.c,v
retrieving revision 1.27
diff -u -r1.27 txn.c
--- subversion/libsvn_fs/txn.c	2001/02/13 22:06:33	1.27
+++ subversion/libsvn_fs/txn.c	2001/02/24 06:57:07
@@ -16,6 +16,7 @@
 #include "apr_strings.h"
 #include "apr_pools.h"
 #include "svn_fs.h"
+#include "txn.h"
 #include "fs.h"
 #include "err.h"
 #include "trail.h"
@@ -229,6 +230,11 @@
   return SVN_NO_ERROR;
 }
 
+const char *
+svn_fs__txn_id (svn_fs_txn_t *txn)
+{
+  return txn->id;
+}
 
 
 /* 
Index: subversion/libsvn_fs/txn.h
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_fs/txn.h,v
retrieving revision 1.7
diff -u -r1.7 txn.h
--- subversion/libsvn_fs/txn.h	2001/02/13 16:15:20	1.7
+++ subversion/libsvn_fs/txn.h	2001/02/24 06:57:07
@@ -26,7 +26,7 @@
 
 /* Return a pointer to the ID of TXN.  The return value is live for as
    long as TXN is.  */
-char *svn_fs__txn_id (svn_fs_txn_t *txn);
+const char *svn_fs__txn_id (svn_fs_txn_t *txn);
 
 
 #endif /* SVN_LIBSVN_FS_TXN_H */

-- 
Yoshiki Hayashi