
Name: |
| |
Inputs: |
GFQCHAR *gfqFileName |
|
|
GFQRECORD *pQRec |
|
|
GFQINT Link |
|
|
GFQINT End |
|
|
GFQCHAR *User |
|
Outputs: |
GFQRECORD *pQRec |
|
Returns: |
GFQSUCCESS |
|
|
GFQLIST_NOTFOUND |
|
|
GFQLIST_EOF |
|
|
GFQRECORD_NOTFOUND |
|
Includes: |
gfq.h |
|
The gfqFindFirst( ) function locates the first item in a list using the user ID, and the direction it was passed to determine which record is the first. That record is then read into the buffer pointed to by pQRec.
#include "gfq.h"
#include "gfqpath.h"
int status;
GFQRECORD qrec;
GFQCHAR gfqFileName[GFQFILENAME_SIZE];
int i=0;
if (gfqSearch(GFQDIR_QUEUE, "gfax.$qu", gfqFileName)){
printf("Error getting path to queue file.\n");
exit(1);
}
status = gfqFindFirst(gfqFileName, &qrec, GFQPEND_LIST, GFQLIST_START,"");
if (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);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation