
Name: |
int gfqPurgeOne (char *gfqFileName, GFQRECORD *qrec); | |
Inputs: |
char *gfqFileName; |
|
|
GFQRECORD *qrec |
|
Outputs: |
None |
|
Returns: |
GFQSUCCESS |
|
|
GFQFILE_BUSY |
|
|
GFQFILE_CREATE_ERROR |
|
|
GFQFILE_INCOMPATIBLE |
|
|
GFQFILE_NOTFOUND |
|
|
GFQFILE_OPEN_ERROR |
|
|
GFQRECORD_ACTIVE |
|
|
GFQRECORD_KEY_ERROR |
|
Includes: |
gfq.h |
|
The gfqPurgeOne( ) function deletes non-busy records from the Queue File. Before using this function, a queue record must have been successfully read using gfqFindFirst( ) or gfqFindNext( ). Both of these functions determines whether another task has changed the key values of the queue record (linked list, time, or priority). If the key values have been changed, gfqPurgeOne( ) returns the error GFQRECORD_KEY_ERROR. If a queue record is marked BUSY, the function returns the error GFQRECORD_ACTIVE.
#include "gfq.h" GFQRECORD qrec; char gfqFileName[GFQFILENAME_SIZE]; int status; strcpy (gfqFileName, "c:\\fax\\gfax.$qu"); if ((status = gfqFindFirst (gfqFileName, &qrec, GFQPEND_LIST, GFQLIST_START,"")) == GFQSUCCESS) if (qrec->user_id == "DELETE_ME") return (gfqPurgeOne (gfqFileName, &qrec));
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation