[Pvfs2-cvs] commit by slang in pvfs2/include: pvfs2-hint.h

CVS commit program cvs at parl.clemson.edu
Mon Apr 7 15:02:07 EDT 2008


Update of /projects/cvsroot/pvfs2/include
In directory parlweb1:/tmp/cvs-serv19040/include

Added Files:
      Tag: he-branch
	pvfs2-hint.h 
Log Message:
adding hint header.


--- /dev/null	2004-06-24 14:04:38.000000000 -0400
+++ pvfs2-hint.h	2008-04-07 15:02:07.000000000 -0400
@@ -0,0 +1,48 @@
+/*
+ * (C) 2001 Clemson University and The University of Chicago
+ *
+ * See COPYING in top-level directory.
+ */
+
+#ifndef __PVFS2_HINT_H
+#define __PVFS2_HINT_H
+
+#include "pvfs2-types.h"
+
+#define PINT_HINT_TRANSFER 0x01
+
+#define PVFS_HINT_REQUEST_ID_NAME "pvfs.hint.request_id"
+#define PVFS_HINT_CLIENT_ID_NAME  "pvfs.hint.client_id"
+#define PVFS_HINT_HANDLE_NAME     "pvfs.hint.handle"
+#define PVFS_HINT_OP_ID_NAME      "pvfs.hint.op_id"
+
+typedef struct PVFS_hint_s *PVFS_hint;
+
+#define PVFS_HINT_NULL NULL
+
+int PVFS_hint_add(
+    PVFS_hint *hint,
+    const char *type,
+    int length,
+    void *value);
+
+int PVFS_hint_copy(PVFS_hint old_hint, PVFS_hint *new_hint);
+
+void PVFS_hint_free(PVFS_hint hint);
+
+/*
+ * function allows users to specify hints in an environment variable.
+ */
+int PVFS_hint_import_env(PVFS_hint *out_hint);
+
+#endif /* __PVFS2_HINT_H */
+
+/*
+ * Local variables:
+ *  mode: c
+ *  c-indent-level: 4
+ *  c-basic-offset: 4
+ * End:
+ *
+ * vim: ft=c ts=8 sts=4 sw=4 expandtab
+ */



More information about the Pvfs2-cvs mailing list