Browse Source

cmDspBuiltIn.c : Added 'send' input port to FName object.

master
kpl_harpo 10 years ago
parent
commit
102725929c
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      dsp/cmDspBuiltIn.c

+ 7
- 0
dsp/cmDspBuiltIn.c View File

2487
   kDirFnId,
2487
   kDirFnId,
2488
   kPatFnId,
2488
   kPatFnId,
2489
   kValFnId,
2489
   kValFnId,
2490
+  kSendFnId
2490
 };
2491
 };
2491
 
2492
 
2492
 cmDspClass_t _cmFnameDC;
2493
 cmDspClass_t _cmFnameDC;
2510
     { "dir",  kDirFnId,  0, 0, kInDsvFl  | kReqArgDsvFl | kBoolDsvFl, "Dir=true Filename=false" },
2511
     { "dir",  kDirFnId,  0, 0, kInDsvFl  | kReqArgDsvFl | kBoolDsvFl, "Dir=true Filename=false" },
2511
     { "pat",  kPatFnId,  0, 0, kInDsvFl  | kOptArgDsvFl | kStrzDsvFl, "File pattern string (e.g. HTML Files (*.html)\tImage Files (*.{bmp,gif,jpg,png}))" },
2512
     { "pat",  kPatFnId,  0, 0, kInDsvFl  | kOptArgDsvFl | kStrzDsvFl, "File pattern string (e.g. HTML Files (*.html)\tImage Files (*.{bmp,gif,jpg,png}))" },
2512
     { "out",  kValFnId,  0, 0, kOutDsvFl | kOptArgDsvFl | kStrzDsvFl, "Current file or directory name." },
2513
     { "out",  kValFnId,  0, 0, kOutDsvFl | kOptArgDsvFl | kStrzDsvFl, "Current file or directory name." },
2514
+    { "send", kSendFnId, 0, 0, kInDsvFl  | kTypeDsvMask, "Send file name on any msg."},
2515
+
2513
     { NULL, 0, 0, 0, 0 }
2516
     { NULL, 0, 0, 0, 0 }
2514
   };
2517
   };
2515
 
2518
 
2536
 
2539
 
2537
   switch( evt->dstVarId )
2540
   switch( evt->dstVarId )
2538
   {
2541
   {
2542
+    case kSendFnId:
2543
+      cmDspSetStrcz(ctx, inst, kValFnId, cmDspStrcz(inst,kValFnId) );
2544
+      break;
2545
+
2539
     case kDirFnId:
2546
     case kDirFnId:
2540
     case kPatFnId:
2547
     case kPatFnId:
2541
     case kValFnId:
2548
     case kValFnId:

Loading…
Cancel
Save