Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

requesthandler.c File Reference

Implements functionality that processes requests to scan buffers. More...

#include <assert.h>
#include "fret.h"
#include "requesthandler.h"
#include "gramstore.h"
#include "common.h"
#include "scans.h"
#include "gramhash.h"

Include dependency graph for requesthandler.c:


Data Structures

union  RhScanFuncs

Functions

bool doRequest (const Request *const pRequest)
 Process a Request to perform a scan or scans.
bool setProgressCallback (fret_sendProgressFunc pCallback)

Detailed Description

Implements functionality that processes requests to scan buffers.


Function Documentation

bool doRequest const Request *const   pRequest  ) 
 

Process a Request to perform a scan or scans.

Recieves a Request object that describes a scan or scans and utilises scan modules to perform these scans.

Parameters:
pRequest A struct that stores a list of Buffers and Scans.
Returns:
bool Returns FRET_OK if the lists of Buffers and Scans were valid and if all the Scans were performed. Returns FRET_FAIL if there was a problem performing one of the Scans.
Todo:
change name

bool setProgressCallback fret_sendProgressFunc  pCallback  ) 
 

Register a callback function. Function is used to notify client of progress of current scans.


Generated on Thu Jan 19 18:59:24 2006 for FRET by  doxygen 1.4.4