/* * ======== processAsync ======== * This is the async stub implementation for the process method */ static XDAS_Int32 processAsync(IAUDDEC_Handle h, XDM_BufDesc *inBufs, XDM_BufDesc *outBufs, IAUDDEC_InArgs *inArgs, IAUDDEC_OutArgs *outArgs) { XDAS_Int32 retVal; _AUDDEC_Msg *msg; VISA_Handle visa = (VISA_Handle)h; retVal = marshallMsg(h, inBufs, outBufs, inArgs, outArgs, &msg); if (retVal != IAUDDEC_EOK) { return (retVal); } /* send the message to the skeleton without waiting for completion */ retVal = VISA_callAsync(visa, (VISA_Msg *)&msg); return (retVal); }
/* * ======== processAsync ======== * This is the async stub-implementation for the process method */ static XDAS_Int32 processAsync(IVIDDEC2BACK_Handle h, XDM_Context *context, IVIDDEC2_OutArgs *outArgs) { XDAS_Int32 retVal; _VIDDEC2BACK_Msg *msg; VISA_Handle visa = (VISA_Handle)h; retVal = marshallMsg(h, context, outArgs, &msg); if (retVal != IVIDDEC2_EOK) { return retVal; } /* send the message to the skeleton and wait for completion */ retVal = VISA_callAsync(visa, (VISA_Msg *)&msg); return (retVal); }
/* * ======== processAsync ======== * This is the async stub implementation for the process method */ static XDAS_Int32 processAsync(IVIDENC1_Handle h, IVIDEO1_BufDescIn *inBufs, XDM_BufDesc *outBufs, IVIDENC1_InArgs *inArgs, IVIDENC1_OutArgs *outArgs) { XDAS_Int32 retVal; _VIDENC1_Msg *msg; VISA_Handle visa = (VISA_Handle)h; retVal = marshallMsg(h, inBufs, outBufs, inArgs, outArgs, &msg); if (retVal != IVIDENC1_EOK) { return retVal; } /* send the message to the skeleton and wait for completion */ retVal = VISA_callAsync(visa, (VISA_Msg *)&msg); return retVal; }
/* * ======== process ======== * This is the sync stub implementation for the process method */ static XDAS_Int32 process(IVIDDEC2_Handle h, XDM1_BufDesc *inBufs, XDM_BufDesc *outBufs, IVIDDEC2_InArgs *inArgs, IVIDDEC2_OutArgs *outArgs) { XDAS_Int32 retVal; _VIDDEC2_Msg *msg; VISA_Handle visa = (VISA_Handle)h; retVal = marshallMsg(h, inBufs, outBufs, inArgs, outArgs, &msg); if (retVal != IVIDDEC2_EOK) { return (retVal); } /* send the message to the skeleton and wait for completion */ retVal = VISA_call(visa, (VISA_Msg *)&msg); /* Regardless of return value, unmarshall outArgs. */ retVal = unmarshallMsg(h, inBufs, outBufs, inArgs, outArgs, msg, retVal); return (retVal); }