home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / cdity / findfiles.lha / FindFile / FFSource.lha / FFAslReq.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-03  |  868 b   |  37 lines

  1. /*****************************************************************************
  2.   FFFileReq.c  -- ASL file requester code for FindFile.
  3.  
  4.   $ID:$
  5.  
  6.   FFAslReq.c
  7.  * Revision 1.1  1993/04/03  02:02:24  RUSS
  8.  * Initial revision
  9.  *
  10.  
  11. *****************************************************************************/
  12.  
  13. #include "FindFile.h"
  14.  
  15. void
  16. DoFileReq( struct controlPanel *cp )
  17. {
  18.   DBf("Starting FR on %s\n", cp->searchPath )
  19.  
  20.   cp->ffFileReq = (struct FileRequester *)AllocAslRequestTags( ASL_FileRequest,
  21.                           ASL_Hail,      (ULONG)"Search Directory:",
  22.                           ASL_Dir,      cp->searchPath,
  23.                           ASL_ExtFlags1, FIL1F_NOFILES,
  24.                           TAG_DONE );
  25.  
  26.   if( AslRequest( cp->ffFileReq, ASL_Window, cp->ffWindow,
  27.                  TAG_DONE ) )
  28.   {
  29.     strncpy( cp->searchPath, cp->ffFileReq->rf_Dir, MAXSTR );
  30.   }
  31.  
  32.   FreeAslRequest( cp->ffFileReq );
  33.   cp->ffFileReq = NULL;
  34.  
  35. }
  36.  
  37.