[ofa-general] [Patch 2 of 4] uDAPL v2: OFW changes - missing DAT_API defs

Arlin Davis arlin.r.davis at intel.com
Thu Jan 3 11:55:38 PST 2008


Common code -
   Add DAT_API definitions for dat_redirection.h, udat_redirection.h
    
Signed-off by: Stan Smith <stan.smith at intel.com>
Signed-off by: Arlin Davis <ardavis at ichips.intel.com>

diff --git a/dat/include/dat/dat_redirection.h b/dat/include/dat/dat_redirection.h
index 52f1770..ea61eff 100755
--- a/dat/include/dat/dat_redirection.h
+++ b/dat/include/dat/dat_redirection.h
@@ -479,13 +479,13 @@ typedef struct dat_provider DAT_PROVIDER;
  * FUNCTION PROTOTYPES
  ****************************************************************/
 
-typedef DAT_RETURN (*DAT_IA_OPEN_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_IA_OPEN_FUNC) (
 	IN      const DAT_NAME_PTR,	/* provider             */
 	IN      DAT_COUNT,		/* asynch_evd_min_qlen  */
 	INOUT   DAT_EVD_HANDLE *,	/* asynch_evd_handle    */
 	OUT     DAT_IA_HANDLE *);	/* ia_handle            */
 
-typedef DAT_RETURN (*DAT_IA_OPENV_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_IA_OPENV_FUNC) (
 	IN      const DAT_NAME_PTR,	/* provider             */
 	IN      DAT_COUNT,		/* asynch_evd_min_qlen  */
 	INOUT   DAT_EVD_HANDLE *,	/* asynch_evd_handle    */
@@ -494,11 +494,11 @@ typedef DAT_RETURN (*DAT_IA_OPENV_FUNC) (
 	IN      DAT_UINT32,		/* dat_minor_version number */
 	IN      DAT_BOOLEAN);		/* dat_thread_safety    */
 
-typedef DAT_RETURN (*DAT_IA_CLOSE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_IA_CLOSE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_CLOSE_FLAGS );	/* close_flags          */
 
-typedef DAT_RETURN (*DAT_IA_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_IA_QUERY_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	OUT     DAT_EVD_HANDLE *,	/* async_evd_handle     */
 	IN      DAT_IA_ATTR_MASK,	/* ia_attr_mask         */
@@ -508,32 +508,32 @@ typedef DAT_RETURN (*DAT_IA_QUERY_FUNC) (
 
 /* helper functions */
 
-typedef DAT_RETURN (*DAT_SET_CONSUMER_CONTEXT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SET_CONSUMER_CONTEXT_FUNC) (
 	IN      DAT_HANDLE,		/* dat_handle           */
 	IN      DAT_CONTEXT);		/* context              */
 
-typedef DAT_RETURN (*DAT_GET_CONSUMER_CONTEXT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_GET_CONSUMER_CONTEXT_FUNC) (
 	IN      DAT_HANDLE,		/* dat_handle           */
 	OUT     DAT_CONTEXT * );	/* context              */
 
-typedef DAT_RETURN (*DAT_GET_HANDLE_TYPE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_GET_HANDLE_TYPE_FUNC) (
 	IN      DAT_HANDLE,		/* dat_handle           */
 	OUT     DAT_HANDLE_TYPE * );	/* dat_handle_type       */
 
 /* CR functions */
 
-typedef DAT_RETURN (*DAT_CR_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CR_QUERY_FUNC) (
 	IN      DAT_CR_HANDLE,		/* cr_handle            */
 	IN      DAT_CR_PARAM_MASK,	/* cr_param_mask        */
 	OUT     DAT_CR_PARAM * );	/* cr_param             */
 
-typedef DAT_RETURN (*DAT_CR_ACCEPT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CR_ACCEPT_FUNC) (
 	IN      DAT_CR_HANDLE,		/* cr_handle            */
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_COUNT,		/* private_data_size    */
 	IN      const DAT_PVOID );	/* private_data         */
 
-typedef DAT_RETURN (*DAT_CR_REJECT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CR_REJECT_FUNC) (
 	IN      DAT_CR_HANDLE, 		/* cr_handle            */
 	IN	DAT_COUNT,		/* private_data_size	*/
 	IN	const DAT_PVOID );      /* private_data         */
@@ -542,35 +542,35 @@ typedef DAT_RETURN (*DAT_CR_REJECT_FUNC) (
  * For DAT-1.0 it was only defined for uDAPL.
  */
 
-typedef DAT_RETURN (*DAT_CR_HANDOFF_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CR_HANDOFF_FUNC) (
     IN          DAT_CR_HANDLE,		/* cr_handle            */
     IN          DAT_CONN_QUAL);		/* handoff              */
 
 /* EVD functions */
 
-typedef DAT_RETURN (*DAT_EVD_RESIZE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_RESIZE_FUNC) (
 	IN      DAT_EVD_HANDLE,	       /* evd_handle           */
 	IN      DAT_COUNT );	       /* evd_min_qlen         */
 
-typedef DAT_RETURN (*DAT_EVD_POST_SE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_POST_SE_FUNC) (
 	IN      DAT_EVD_HANDLE,	       /* evd_handle           */
 	IN      const DAT_EVENT * );   /* event                */
 
-typedef DAT_RETURN (*DAT_EVD_DEQUEUE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_DEQUEUE_FUNC) (
 	IN      DAT_EVD_HANDLE,		/* evd_handle           */
 	OUT     DAT_EVENT * );		/* event                */
 
-typedef DAT_RETURN (*DAT_EVD_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_FREE_FUNC) (
 	IN      DAT_EVD_HANDLE );	/* evd_handle           */
 
-typedef DAT_RETURN (*DAT_EVD_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_QUERY_FUNC) (
 	IN      DAT_EVD_HANDLE,		/* evd_handle           */
 	IN      DAT_EVD_PARAM_MASK,	/* evd_param_mask       */
 	OUT     DAT_EVD_PARAM * );	/* evd_param            */
 
 /* EP functions */
 
-typedef DAT_RETURN (*DAT_EP_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_PZ_HANDLE,		/* pz_handle            */
 	IN      DAT_EVD_HANDLE,		/* recv_completion_evd_handle */
@@ -579,7 +579,7 @@ typedef DAT_RETURN (*DAT_EP_CREATE_FUNC) (
 	IN      const DAT_EP_ATTR *,	/* ep_attributes        */
 	OUT     DAT_EP_HANDLE * );	/* ep_handle            */
 
-typedef DAT_RETURN (*DAT_EP_CREATE_WITH_SRQ_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_CREATE_WITH_SRQ_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_PZ_HANDLE,		/* pz_handle            */
 	IN      DAT_EVD_HANDLE,		/* recv_completion_evd_handle */
@@ -589,17 +589,17 @@ typedef DAT_RETURN (*DAT_EP_CREATE_WITH_SRQ_FUNC) (
 	IN      const DAT_EP_ATTR *,	/* ep_attributes        */
 	OUT     DAT_EP_HANDLE * );	/* ep_handle            */
 
-typedef DAT_RETURN (*DAT_EP_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_QUERY_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_EP_PARAM_MASK,	/* ep_param_mask        */
 	OUT     DAT_EP_PARAM * );	/* ep_param             */
 
-typedef DAT_RETURN (*DAT_EP_MODIFY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_MODIFY_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_EP_PARAM_MASK,	/* ep_param_mask        */
 	IN      const DAT_EP_PARAM * ); /* ep_param             */
 
-typedef DAT_RETURN (*DAT_EP_CONNECT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_CONNECT_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_IA_ADDRESS_PTR,	/* remote_ia_address    */
 	IN      DAT_CONN_QUAL,		/* remote_conn_qual     */
@@ -609,14 +609,14 @@ typedef DAT_RETURN (*DAT_EP_CONNECT_FUNC) (
 	IN      DAT_QOS,		/* quality_of_service   */
 	IN      DAT_CONNECT_FLAGS );	/* connect_flags        */
 
-typedef DAT_RETURN (*DAT_EP_COMMON_CONNECT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_COMMON_CONNECT_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_IA_ADDRESS_PTR,	/* remote_ia_address    */
 	IN      DAT_TIMEOUT,		/* timeout              */
 	IN      DAT_COUNT,		/* private_data_size    */
 	IN      const DAT_PVOID	);	/* private_data         */
 
-typedef DAT_RETURN (*DAT_EP_DUP_CONNECT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_DUP_CONNECT_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_EP_HANDLE,		/* ep_dup_handle        */
 	IN      DAT_TIMEOUT,		/* timeout              */
@@ -624,18 +624,18 @@ typedef DAT_RETURN (*DAT_EP_DUP_CONNECT_FUNC) (
 	IN      const DAT_PVOID,	/* private_data         */
 	IN      DAT_QOS);		/* quality_of_service   */
 
-typedef DAT_RETURN (*DAT_EP_DISCONNECT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_DISCONNECT_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_CLOSE_FLAGS );	/* close_flags          */
 
-typedef DAT_RETURN (*DAT_EP_POST_SEND_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_POST_SEND_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_COUNT,		/* num_segments         */
 	IN      DAT_LMR_TRIPLET *,	/* local_iov            */
 	IN      DAT_DTO_COOKIE,		/* user_cookie          */
 	IN      DAT_COMPLETION_FLAGS ); /* completion_flags     */
 
-typedef DAT_RETURN (*DAT_EP_POST_SEND_WITH_INVALIDATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_POST_SEND_WITH_INVALIDATE_FUNC) (
 	IN      DAT_EP_HANDLE,          /* ep_handle            */
 	IN      DAT_COUNT,              /* num_segments         */
 	IN      DAT_LMR_TRIPLET *,      /* local_iov            */
@@ -644,14 +644,14 @@ typedef DAT_RETURN (*DAT_EP_POST_SEND_WITH_INVALIDATE_FUNC) (
 	IN      DAT_BOOLEAN, /* invalidate_flag */
 	IN      DAT_RMR_CONTEXT ); /* RMR context */
 
-typedef DAT_RETURN (*DAT_EP_POST_RECV_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_POST_RECV_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_COUNT,		/* num_segments         */
 	IN      DAT_LMR_TRIPLET *,	/* local_iov            */
 	IN      DAT_DTO_COOKIE,		/* user_cookie          */
 	IN      DAT_COMPLETION_FLAGS ); /* completion_flags     */
 
-typedef DAT_RETURN (*DAT_EP_POST_RDMA_READ_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_POST_RDMA_READ_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_COUNT,		/* num_segments         */
 	IN      DAT_LMR_TRIPLET *,	/* local_iov            */
@@ -659,14 +659,14 @@ typedef DAT_RETURN (*DAT_EP_POST_RDMA_READ_FUNC) (
 	IN      const DAT_RMR_TRIPLET *,/* remote_iov           */
 	IN      DAT_COMPLETION_FLAGS ); /* completion_flags     */
 
-typedef DAT_RETURN (*DAT_EP_POST_RDMA_READ_TO_RMR_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_POST_RDMA_READ_TO_RMR_FUNC) (
 	IN      DAT_EP_HANDLE,          /* ep_handle            */
 	IN      const DAT_RMR_TRIPLET *,        /* local_iov            */
 	IN      DAT_DTO_COOKIE,         /* user_cookie          */
 	IN      const DAT_RMR_TRIPLET *,/* remote_iov           */
 	IN      DAT_COMPLETION_FLAGS ); /* completion_flags     */
 
-typedef DAT_RETURN (*DAT_EP_POST_RDMA_WRITE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_POST_RDMA_WRITE_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_COUNT,		/* num_segments         */
 	IN      DAT_LMR_TRIPLET *,	/* local_iov            */
@@ -674,59 +674,59 @@ typedef DAT_RETURN (*DAT_EP_POST_RDMA_WRITE_FUNC) (
 	IN      const DAT_RMR_TRIPLET *,/* remote_iov           */
 	IN      DAT_COMPLETION_FLAGS ); /* completion_flags     */
 
-typedef DAT_RETURN (*DAT_EP_GET_STATUS_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_GET_STATUS_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	OUT     DAT_EP_STATE *,		/* ep_state             */
 	OUT     DAT_BOOLEAN *,		/* recv_idle            */
 	OUT     DAT_BOOLEAN * );	/* request_idle         */
 
-typedef DAT_RETURN (*DAT_EP_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_FREE_FUNC) (
 	IN      DAT_EP_HANDLE);		/* ep_handle            */
 
-typedef DAT_RETURN (*DAT_EP_RESET_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_RESET_FUNC) (
 	IN      DAT_EP_HANDLE);		/* ep_handle            */
 
-typedef DAT_RETURN (*DAT_EP_RECV_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_RECV_QUERY_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	OUT     DAT_COUNT *,		/* nbufs_allocated      */
 	OUT     DAT_COUNT *);		/* bufs_alloc_span      */
 
-typedef DAT_RETURN (*DAT_EP_SET_WATERMARK_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EP_SET_WATERMARK_FUNC) (
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_COUNT,		/* ep_soft_high_watermark*/
 	IN      DAT_COUNT );		/* ep_hard_high_watermark*/
 
 /* LMR functions */
 
-typedef DAT_RETURN (*DAT_LMR_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_LMR_FREE_FUNC) (
 	IN      DAT_LMR_HANDLE );	/* lmr_handle           */
 
-typedef DAT_RETURN (*DAT_LMR_SYNC_RDMA_READ_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_LMR_SYNC_RDMA_READ_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      const DAT_LMR_TRIPLET *,/* local segments       */
 	IN      DAT_VLEN );		/* num_segments         */
 
-typedef DAT_RETURN (*DAT_LMR_SYNC_RDMA_WRITE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_LMR_SYNC_RDMA_WRITE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      const DAT_LMR_TRIPLET *, /* local_segments      */
 	IN      DAT_VLEN );		/* num_segments         */
 
 /* RMR functions */
 
-typedef DAT_RETURN (*DAT_RMR_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RMR_CREATE_FUNC) (
 	IN      DAT_PZ_HANDLE,		/* pz_handle            */
 	OUT     DAT_RMR_HANDLE *);	/* rmr_handle           */
 
-typedef DAT_RETURN (*DAT_RMR_CREATE_FOR_EP_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RMR_CREATE_FOR_EP_FUNC) (
 	IN      DAT_PZ_HANDLE,		/* pz_handle            */
 	OUT     DAT_RMR_HANDLE *);	/* rmr_handle           */
 
-typedef DAT_RETURN (*DAT_RMR_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RMR_QUERY_FUNC) (
 	IN      DAT_RMR_HANDLE,		/* rmr_handle           */
 	IN      DAT_RMR_PARAM_MASK,	/* rmr_param_mask       */
 	OUT     DAT_RMR_PARAM *);	/* rmr_param            */
 
-typedef DAT_RETURN (*DAT_RMR_BIND_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RMR_BIND_FUNC) (
 	IN      DAT_RMR_HANDLE,		/* rmr_handle           */
 	IN      DAT_LMR_HANDLE,		/* lmr_handle           */
 	IN      const DAT_LMR_TRIPLET *,/* lmr_triplet          */
@@ -737,119 +737,119 @@ typedef DAT_RETURN (*DAT_RMR_BIND_FUNC) (
 	IN      DAT_COMPLETION_FLAGS,	/* completion_flags     */
 	OUT     DAT_RMR_CONTEXT * );	/* context              */
 
-typedef DAT_RETURN (*DAT_RMR_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RMR_FREE_FUNC) (
 	IN      DAT_RMR_HANDLE);	/* rmr_handle           */
 
 /* PSP functions */
 
-typedef DAT_RETURN (*DAT_PSP_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PSP_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_CONN_QUAL,		/* conn_qual            */
 	IN      DAT_EVD_HANDLE,		/* evd_handle           */
 	IN      DAT_PSP_FLAGS,		/* psp_flags            */
 	OUT     DAT_PSP_HANDLE * );	/* psp_handle           */
 
-typedef DAT_RETURN (*DAT_PSP_CREATE_ANY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PSP_CREATE_ANY_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	OUT     DAT_CONN_QUAL *,	/* conn_qual            */
 	IN      DAT_EVD_HANDLE,		/* evd_handle           */
 	IN      DAT_PSP_FLAGS,		/* psp_flags            */
 	OUT     DAT_PSP_HANDLE * );	/* psp_handle           */
 
-typedef DAT_RETURN (*DAT_PSP_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PSP_QUERY_FUNC) (
 	IN      DAT_PSP_HANDLE, 	/* psp_handle           */
 	IN      DAT_PSP_PARAM_MASK,	/* psp_param_mask       */
 	OUT     DAT_PSP_PARAM * );	/* psp_param            */
 
-typedef DAT_RETURN (*DAT_PSP_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PSP_FREE_FUNC) (
 	IN      DAT_PSP_HANDLE );	/* psp_handle           */
 
 /* RSP functions */
 
-typedef DAT_RETURN (*DAT_RSP_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RSP_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_CONN_QUAL,		/* conn_qual            */
 	IN      DAT_EP_HANDLE,		/* ep_handle            */
 	IN      DAT_EVD_HANDLE,		/* evd_handle           */
 	OUT     DAT_RSP_HANDLE * );	/* rsp_handle           */
 
-typedef DAT_RETURN (*DAT_RSP_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RSP_QUERY_FUNC) (
 	IN      DAT_RSP_HANDLE,		/* rsp_handle           */
 	IN      DAT_RSP_PARAM_MASK,	/* rsp_param_mask       */
 	OUT     DAT_RSP_PARAM * );	/* rsp_param           */
 
-typedef DAT_RETURN (*DAT_RSP_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_RSP_FREE_FUNC) (
 	IN      DAT_RSP_HANDLE );	/* rsp_handle           */
 
 	/* CSP functions functions - DAT 2.0 */
 
-typedef DAT_RETURN (*DAT_CSP_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CSP_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,          /* ia_handle */
 	IN      DAT_COMM *,             /* communicator */
 	IN      DAT_IA_ADDRESS_PTR,     /* address */
 	IN      DAT_EVD_HANDLE,         /* evd_handle */
 	OUT     DAT_CSP_HANDLE * );     /* csp_handle           */
 
-typedef DAT_RETURN (*DAT_CSP_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CSP_QUERY_FUNC) (
 	IN      DAT_CSP_HANDLE,         /* csp_handle           */
 	IN      DAT_CSP_PARAM_MASK,     /* csp_param_mask       */
 	OUT     DAT_CSP_PARAM * );      /* csp_param            */
 
-typedef DAT_RETURN (*DAT_CSP_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CSP_FREE_FUNC) (
 	IN      DAT_CSP_HANDLE );       /* csp_handle           */
 
 /* PZ functions */
 
-typedef DAT_RETURN (*DAT_PZ_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PZ_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	OUT     DAT_PZ_HANDLE * );	/* pz_handle            */
 
-typedef DAT_RETURN (*DAT_PZ_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PZ_QUERY_FUNC) (
 	IN      DAT_PZ_HANDLE,		/* pz_handle            */
 	IN      DAT_PZ_PARAM_MASK,	/* pz_param_mask        */
 	OUT     DAT_PZ_PARAM *);	/* pz_param             */
 
-typedef DAT_RETURN (*DAT_PZ_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_PZ_FREE_FUNC) (
 	IN      DAT_PZ_HANDLE );	/* pz_handle            */
 
 /* SRQ functions */
 
-typedef DAT_RETURN (*DAT_SRQ_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SRQ_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_PZ_HANDLE,		/* pz_handle            */
 	IN      DAT_SRQ_ATTR *,		/* srq_attributes       */
 	OUT     DAT_SRQ_HANDLE *);	/* srq_handle           */
 
-typedef DAT_RETURN (*DAT_SRQ_SET_LW_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SRQ_SET_LW_FUNC) (
 	IN      DAT_SRQ_HANDLE,		/* srq_handle           */
 	IN      DAT_COUNT );		/* srq_low_watermark    */
 
-typedef DAT_RETURN (*DAT_SRQ_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SRQ_FREE_FUNC) (
 	IN      DAT_SRQ_HANDLE);	/* srq_handle           */
 
-typedef DAT_RETURN (*DAT_SRQ_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SRQ_QUERY_FUNC) (
 	IN      DAT_SRQ_HANDLE,		/* srq_handle           */
 	IN      DAT_SRQ_PARAM_MASK,	/* srq_param_mask       */
 	OUT     DAT_SRQ_PARAM *);	/* srq_param            */
 
-typedef DAT_RETURN (*DAT_SRQ_RESIZE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SRQ_RESIZE_FUNC) (
 	IN      DAT_SRQ_HANDLE,		/* srq_handle           */
 	IN      DAT_COUNT );		/* srq_queue_length     */
 
-typedef DAT_RETURN (*DAT_SRQ_POST_RECV_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_SRQ_POST_RECV_FUNC) (
 	IN      DAT_SRQ_HANDLE,		/* srq_handle           */
 	IN      DAT_COUNT,		/* num_segments         */
 	IN      DAT_LMR_TRIPLET *,	/* local_iov            */
 	IN      DAT_DTO_COOKIE );	/* user_cookie          */
 
-typedef DAT_RETURN (*DAT_IA_HA_RELATED_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_IA_HA_RELATED_FUNC) (
 	IN	DAT_IA_HANDLE, /* ia_handle            */
 	IN const DAT_NAME_PTR, /* provider             */
 	OUT	DAT_BOOLEAN *);		/* answer */
 
 #ifdef DAT_EXTENSIONS	
 #include <stdarg.h>
-typedef DAT_RETURN (*DAT_HANDLE_EXTENDEDOP_FUNC)(
+typedef DAT_RETURN (DAT_API *DAT_HANDLE_EXTENDEDOP_FUNC)(
 	IN	DAT_HANDLE,		/* handle */
 	IN	DAT_EXTENDED_OP,	/* extended op */
 	IN	va_list);		/* argument list */
diff --git a/dat/include/dat/udat_redirection.h b/dat/include/dat/udat_redirection.h
index 4a7b11e..d73f9bd 100755
--- a/dat/include/dat/udat_redirection.h
+++ b/dat/include/dat/udat_redirection.h
@@ -154,7 +154,7 @@
  *
  ****************************************************************/
 
-typedef DAT_RETURN (*DAT_LMR_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_LMR_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_MEM_TYPE,		/* mem_type             */
 	IN      DAT_REGION_DESCRIPTION, /* region_description   */
@@ -168,72 +168,72 @@ typedef DAT_RETURN (*DAT_LMR_CREATE_FUNC) (
 	OUT     DAT_VLEN *,		/* registered_length    */
 	OUT     DAT_VADDR * );		/* registered_address   */
 
-typedef DAT_RETURN (*DAT_LMR_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_LMR_QUERY_FUNC) (
 	IN      DAT_LMR_HANDLE,		/* lmr_handle           */
 	IN      DAT_LMR_PARAM_MASK,	/* lmr_param_mask       */
 	OUT     DAT_LMR_PARAM *);	/* lmr_param            */
 
 /* Event functions */
 
-typedef DAT_RETURN (*DAT_EVD_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_CREATE_FUNC) (
 	IN      DAT_IA_HANDLE,		/* ia_handle            */
 	IN      DAT_COUNT,		/* evd_min_qlen         */
 	IN      DAT_CNO_HANDLE,		/* cno_handle           */
 	IN      DAT_EVD_FLAGS,		/* evd_flags            */
 	OUT     DAT_EVD_HANDLE * );	/* evd_handle           */
 
-typedef DAT_RETURN (*DAT_EVD_MODIFY_CNO_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_MODIFY_CNO_FUNC) (
 	IN      DAT_EVD_HANDLE,		/* evd_handle           */
 	IN      DAT_CNO_HANDLE);	/* cno_handle           */
 
-typedef DAT_RETURN (*DAT_CNO_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_CREATE_FUNC) (
 	IN 	DAT_IA_HANDLE,		/* ia_handle            */
 	IN 	DAT_OS_WAIT_PROXY_AGENT,/* agent                */
 	OUT 	DAT_CNO_HANDLE *);	/* cno_handle           */
 
-typedef DAT_RETURN (*DAT_CNO_FD_CREATE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_FD_CREATE_FUNC) (
 	IN 	DAT_IA_HANDLE,		/* ia_handle            */
 	OUT	DAT_FD *,		/* file_descriptor	*/
 	OUT 	DAT_CNO_HANDLE *);	/* cno_handle           */
 
-typedef DAT_RETURN (*DAT_CNO_TRIGGER_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_TRIGGER_FUNC) (
 	IN      DAT_CNO_HANDLE,          /* cno_handle          */
 	OUT     DAT_EVD_HANDLE *);	/* trigger */
 
-typedef DAT_RETURN (*DAT_CNO_MODIFY_AGENT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_MODIFY_AGENT_FUNC) (
 	IN 	DAT_CNO_HANDLE,		 /* cno_handle          */
 	IN 	DAT_OS_WAIT_PROXY_AGENT);/* agent               */
 
-typedef DAT_RETURN (*DAT_CNO_QUERY_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_QUERY_FUNC) (
 	IN      DAT_CNO_HANDLE,		/* cno_handle           */
 	IN      DAT_CNO_PARAM_MASK,	/* cno_param_mask       */
 	OUT     DAT_CNO_PARAM * );	/* cno_param            */
 
-typedef DAT_RETURN (*DAT_CNO_FREE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_FREE_FUNC) (
 	IN DAT_CNO_HANDLE);		/* cno_handle           */
 
-typedef DAT_RETURN (*DAT_CNO_WAIT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_CNO_WAIT_FUNC) (
 	IN  	DAT_CNO_HANDLE,		/* cno_handle           */
 	IN  	DAT_TIMEOUT,		/* timeout              */
 	OUT 	DAT_EVD_HANDLE *);	/* evd_handle           */
 
-typedef DAT_RETURN (*DAT_EVD_ENABLE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_ENABLE_FUNC) (
 	IN      DAT_EVD_HANDLE);	/* evd_handle           */
 
-typedef DAT_RETURN (*DAT_EVD_WAIT_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_WAIT_FUNC) (
 	IN  	DAT_EVD_HANDLE,		/* evd_handle           */
 	IN  	DAT_TIMEOUT,		/* Timeout              */
 	IN  	DAT_COUNT,		/* Threshold            */
 	OUT 	DAT_EVENT *,		/* event                */
 	OUT 	DAT_COUNT * );		/* N more events        */
 
-typedef DAT_RETURN (*DAT_EVD_DISABLE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_DISABLE_FUNC) (
 	IN      DAT_EVD_HANDLE);	/* evd_handle           */
 
-typedef DAT_RETURN (*DAT_EVD_SET_UNWAITABLE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_SET_UNWAITABLE_FUNC) (
 	IN      DAT_EVD_HANDLE);        /* evd_handle           */
 
-typedef DAT_RETURN (*DAT_EVD_CLEAR_UNWAITABLE_FUNC) (
+typedef DAT_RETURN (DAT_API *DAT_EVD_CLEAR_UNWAITABLE_FUNC) (
 	IN DAT_EVD_HANDLE);		/* evd_handle           */
 
 
@@ -333,20 +333,20 @@ struct dat_provider
     DAT_SRQ_SET_LW_FUNC                 srq_set_lw_func;
 
 	/* DAT 2.0 functions */
-	DAT_CSP_CREATE_FUNC                 csp_create_func;
-	DAT_CSP_QUERY_FUNC                  csp_query_func;
-	DAT_CSP_FREE_FUNC                   csp_free_func;
+    DAT_CSP_CREATE_FUNC                 csp_create_func;
+    DAT_CSP_QUERY_FUNC                  csp_query_func;
+    DAT_CSP_FREE_FUNC                   csp_free_func;
 	
-	DAT_EP_COMMON_CONNECT_FUNC		ep_common_connect_func;
+    DAT_EP_COMMON_CONNECT_FUNC	        ep_common_connect_func;
 
-	DAT_RMR_CREATE_FOR_EP_FUNC		rmr_create_for_ep_func;
-	DAT_EP_POST_SEND_WITH_INVALIDATE_FUNC	ep_post_send_with_invalidate_func;
-	DAT_EP_POST_RDMA_READ_TO_RMR_FUNC	ep_post_rdma_read_to_rmr_func;
+    DAT_RMR_CREATE_FOR_EP_FUNC	        rmr_create_for_ep_func;
+    DAT_EP_POST_SEND_WITH_INVALIDATE_FUNC ep_post_send_with_invalidate_func;
+    DAT_EP_POST_RDMA_READ_TO_RMR_FUNC   ep_post_rdma_read_to_rmr_func;
 
-	DAT_CNO_FD_CREATE_FUNC			cno_fd_create_func;
-	DAT_CNO_TRIGGER_FUNC			cno_trigger_func;
+    DAT_CNO_FD_CREATE_FUNC		cno_fd_create_func;
+    DAT_CNO_TRIGGER_FUNC		cno_trigger_func;
 
-	DAT_IA_HA_RELATED_FUNC			ia_ha_related_func;
+    DAT_IA_HA_RELATED_FUNC		ia_ha_related_func;
 
 #ifdef DAT_EXTENSIONS
     DAT_HANDLE_EXTENDEDOP_FUNC		handle_extendedop_func;




More information about the general mailing list