From 102725929c0b483a745d35aee25a021d199d4574 Mon Sep 17 00:00:00 2001 From: kpl_harpo Date: Mon, 17 Mar 2014 11:55:55 -0400 Subject: [PATCH] cmDspBuiltIn.c : Added 'send' input port to FName object. --- dsp/cmDspBuiltIn.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dsp/cmDspBuiltIn.c b/dsp/cmDspBuiltIn.c index 2deea98..f1128ae 100644 --- a/dsp/cmDspBuiltIn.c +++ b/dsp/cmDspBuiltIn.c @@ -2487,6 +2487,7 @@ enum kDirFnId, kPatFnId, kValFnId, + kSendFnId }; cmDspClass_t _cmFnameDC; @@ -2510,6 +2511,8 @@ cmDspInst_t* _cmDspFnameAlloc(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned { "dir", kDirFnId, 0, 0, kInDsvFl | kReqArgDsvFl | kBoolDsvFl, "Dir=true Filename=false" }, { "pat", kPatFnId, 0, 0, kInDsvFl | kOptArgDsvFl | kStrzDsvFl, "File pattern string (e.g. HTML Files (*.html)\tImage Files (*.{bmp,gif,jpg,png}))" }, { "out", kValFnId, 0, 0, kOutDsvFl | kOptArgDsvFl | kStrzDsvFl, "Current file or directory name." }, + { "send", kSendFnId, 0, 0, kInDsvFl | kTypeDsvMask, "Send file name on any msg."}, + { NULL, 0, 0, 0, 0 } }; @@ -2536,6 +2539,10 @@ cmDspRC_t _cmDspFnameRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t* switch( evt->dstVarId ) { + case kSendFnId: + cmDspSetStrcz(ctx, inst, kValFnId, cmDspStrcz(inst,kValFnId) ); + break; + case kDirFnId: case kPatFnId: case kValFnId: