
Name: |
| |
Inputs: |
GFQCHAR *gfqFileName |
|
|
GFQRECORD *pQRec |
|
|
GFQINT Direction |
|
|
GFQCHAR *User |
|
Outputs: |
None |
|
Returns: |
GFQSUCCESS |
|
|
GFQLIST_NOTFOUND |
|
|
GFQLIST_EOF |
|
|
GFQRECORD_NOT_FOUND |
|
|
GFQRECORD_KEY_ERROR |
|
|
GFQRECORD_INV_READ_DIR |
|
Includes: |
gfq.h |
|
The gfqFindNext( ) function reads the next record in the specified direction, verifies the record passed in from the application has not changed, then it finds the next record in a list. Using the User parameter will limit the search of valid records.
#include "gfq.h"
#include "gfqpath.h"
int status;
GFQRECORD qrec;
GFQCHAR gfqFileName[GFQFILENAME_SIZE];
int i=0;
if (gfqSearch(GFQDIR_QUEUE, "qfax.$qu", gfqFileName)){
printf("Error getting path to queue file.\n");
exit(1);
}
status = gfqFindFirst(gfqFileName, &qrec, GFQPEND_LIST, GFQLIST_START,"");
while (status == GFQSUCCESS){
printf("Record %d on Pending list\n", ++i);
printf("\t Phone = %s\n", qrec.phone_no);
printf("\t Send file = %s\n", qrec.fn_send);
status = gfqFindNext(gfqFileName, &qrec, GFQREAD_FWD,"");
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation