
Name: |
int gfqSearch (int ft, char *fn, char *fullfn); | |
Inputs: |
int ft |
|
|
char *fn |
|
Outputs: |
char *fullfn |
|
Returns: |
GFQSUCCESS |
|
|
GFQPATH_NOT_SET |
|
|
GFQPATH_INVALID |
|
|
GFQPATH_NO_FILE |
|
|
GFQPATH_BAD_TYPE |
|
Includes: |
gfq.h |
|
|
gfqpath.h |
|
The gfqSearch( ) function returns a fully qualified filename. It verifies that a file of the given name and type does exist. It is used to locate existing GDK files, such as the Queue File and configuration files.
The environment variables for gfqSearch( ) are listed in
Table 31. The symbolic constants used in this function are in the gfqpath.h file.
Table 31. Environment Variables for gfqSearch( )
Symbolic Constant |
Initial Search Target |
Second Target |
Meaning |
GFAXQ |
GFAX |
Locate the Queue File. | |
GFQDIR_UTILITY |
GFAXU |
GFAX |
Locate the utility programs. |
GFQDIR_SEND |
GFAXS |
current directory |
Locate the send files. |
GFQDIR_RECEIVE |
GFAXR |
current directory |
Locate the received files. |
GFQDIR_LOG |
GFAXL |
GFAX |
Locate the log files. |
GFAXC |
GFAX |
Locate the configuration files. |
#include "gfq.h"
#include "gfqpath.h"
char path[64];
if ((status = gfqSearch (GFQDIR_QUEUE, "gfax.$qu", path)) == GFQSUCCESS)
{
printf ("Queue file path is %s\n", path);
}
else
{
printf ("gfqSearch failed, status = %d\n", status);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation