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 / src / io / flow / flowproto-support.h < prev    next >
C/C++ Source or Header  |  2004-12-07  |  1KB  |  51 lines

  1. /*
  2.  * (C) 2001 Clemson University and The University of Chicago
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6.  
  7. /* This header contains information that is only relevant to flow
  8.  * protocols
  9.  */
  10.  
  11. #ifndef __FLOWPROTO_SUPPORT_H
  12. #define __FLOWPROTO_SUPPORT_H
  13.  
  14. #include "src/io/flow/flow.h"
  15.  
  16. /* flow protocol interface */
  17. struct flowproto_ops
  18. {
  19.     char *flowproto_name;
  20.     int (*flowproto_initialize) (int flowproto_id);
  21.     int (*flowproto_finalize) (void);
  22.     int (*flowproto_getinfo) (flow_descriptor * flow_d,
  23.                   int option,
  24.                   void *parameter);
  25.     int (*flowproto_setinfo) (flow_descriptor * flow_d,
  26.                   int option,
  27.                   void *parameter);
  28.     int (*flowproto_post) (flow_descriptor * flow_d);
  29.     int (*flowproto_cancel) (flow_descriptor * flow_d);
  30. };
  31.  
  32. /* used to query protocols to determine which endpoint pairs are
  33.  * supported 
  34.  */
  35. struct flowproto_type_support
  36. {
  37.     int src_endpoint_id;
  38.     int dest_endpoint_id;
  39. };
  40.  
  41. #endif /* __FLOWPROTO_SUPPORT_H */
  42.  
  43. /*
  44.  * Local variables:
  45.  *  c-indent-level: 4
  46.  *  c-basic-offset: 4
  47.  * End:
  48.  *
  49.  * vim: ts=8 sts=4 sw=4 expandtab
  50.  */
  51.