/*****************************************************************************
  FFFileReq.c  -- ASL file requester code for FindFile.

  $ID:$

  FFAslReq.c
 * Revision 1.1  1993/04/03  02:02:24  RUSS
 * Initial revision
 *

*****************************************************************************/

#include "FindFile.h"

void
DoFileReq( struct controlPanel *cp )
{
  DBf("Starting FR on %s\n", cp->searchPath )

  cp->ffFileReq = (struct FileRequester *)AllocAslRequestTags( ASL_FileRequest,
					      ASL_Hail,      (ULONG)"Search Directory:",
					      ASL_Dir,	  cp->searchPath,
					      ASL_ExtFlags1, FIL1F_NOFILES,
					      TAG_DONE );

  if( AslRequest( cp->ffFileReq, ASL_Window, cp->ffWindow,
				 TAG_DONE ) )
  {
    strncpy( cp->searchPath, cp->ffFileReq->rf_Dir, MAXSTR );
  }

  FreeAslRequest( cp->ffFileReq );
  cp->ffFileReq = NULL;

}

