home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / include / pvfs2-hint.h < prev    next >
C/C++ Source or Header  |  2009-02-05  |  1KB  |  58 lines

  1. /*
  2.  * (C) 2001 Clemson University and The University of Chicago
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6.  
  7. #ifndef __PVFS2_HINT_H
  8. #define __PVFS2_HINT_H
  9.  
  10. #include "pvfs2-types.h"
  11.  
  12. #define PVFS_HINT_REQUEST_ID_NAME "pvfs.hint.request_id"
  13. #define PVFS_HINT_CLIENT_ID_NAME  "pvfs.hint.client_id"
  14. #define PVFS_HINT_HANDLE_NAME     "pvfs.hint.handle"
  15. #define PVFS_HINT_OP_ID_NAME      "pvfs.hint.op_id"
  16. #define PVFS_HINT_RANK_NAME       "pvfs.hint.rank"
  17. #define PVFS_HINT_SERVER_ID_NAME  "pvfs.hint.server_id"
  18.  
  19. typedef struct PVFS_hint_s *PVFS_hint;
  20.  
  21. #define PVFS_HINT_NULL NULL
  22.  
  23. int PVFS_hint_add(
  24.     PVFS_hint *hint,
  25.     const char *type,
  26.     int length,
  27.     void *value);
  28.  
  29. int PVFS_hint_replace(
  30.     PVFS_hint *hint,
  31.     const char *type,
  32.     int length,
  33.     void *value);
  34.  
  35. int PVFS_hint_copy(PVFS_hint old_hint, PVFS_hint *new_hint);
  36.  
  37. void PVFS_hint_free(PVFS_hint hint);
  38.  
  39. /* check to see if a hint has already been added */
  40. int PVFS_hint_check(PVFS_hint *hints, const char *type);
  41.  
  42. /*
  43.  * function allows users to specify hints in an environment variable.
  44.  */
  45. int PVFS_hint_import_env(PVFS_hint *out_hint);
  46.  
  47. #endif /* __PVFS2_HINT_H */
  48.  
  49. /*
  50.  * Local variables:
  51.  *  mode: c
  52.  *  c-indent-level: 4
  53.  *  c-basic-offset: 4
  54.  * End:
  55.  *
  56.  * vim: ft=c ts=8 sts=4 sw=4 expandtab
  57.  */
  58.