[Pvfs2-cvs] commit by mtmoore in pvfs2/src/io/trove/trove-dbpf: dbpf-keyval.h

CVS commit program cvs at parl.clemson.edu
Tue Jul 14 13:24:52 EDT 2009


Update of /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf
In directory parlweb1:/tmp/cvs-serv2757/src/io/trove/trove-dbpf

Added Files:
      Tag: Orange-mtmoore
	dbpf-keyval.h 
Log Message:
Adding files supporting the attribute/value lookup implementation


--- /dev/null	2004-06-24 14:04:38.000000000 -0400
+++ dbpf-keyval.h	2009-07-14 13:24:52.000000000 -0400
@@ -0,0 +1,50 @@
+/*
+ * (C) 2001 Clemson University and The University of Chicago
+ *
+ * See COPYING in top-level directory.
+ */
+
+#ifndef __DBPF_KEYVAL_H__
+#define __DBPF_KEYVAL_H__
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#include "pvfs2-internal.h"
+#include "trove-types.h"
+
+#define DBPF_MAX_KEY_LENGTH PVFS_NAME_MAX
+
+struct dbpf_keyval_db_entry
+{
+    TROVE_handle handle;
+    char key[DBPF_MAX_KEY_LENGTH];
+};
+
+struct dbpf_keyval_db_value
+{
+    char *key;
+    void *value;
+};
+#define DBPF_KEYVAL_DB_ENTRY_TOTAL_SIZE(_size) \
+    (sizeof(TROVE_handle) + _size)
+
+#define DBPF_KEYVAL_DB_ENTRY_KEY_SIZE(_size) \
+    (_size - sizeof(TROVE_handle))
+
+
+#if defined(__cplusplus)
+}
+#endif
+
+/*
+ * Local variables:
+ *  c-indent-level: 4
+ *  c-basic-offset: 4
+ * End:
+ *
+ * vim: ts=8 sts=4 sw=4 expandtab
+ */
+
+#endif



More information about the Pvfs2-cvs mailing list