
Name: |
int gfdReadStatusFile (CPRECORD *rec, int channel, | |
Inputs: |
int channel |
|
int chassis |
| |
Outputs: |
CPRECORD *rec |
|
Returns: |
GFD_SUCCESS |
|
GFDBAD_STATUS_FILE |
| |
GFDNO_STATUS_FILE |
| |
Includes: |
gfdstatu.h |
|
The gfdReadStatusFile( ) function reads one record from the status file. The status file is opened, and the record is read by calling gfdReadStatusFileRecord. The status file is then closed.
#include "gfdstatu.h"
#include "gfdmsg.h"
#include "gfdipc.h"
int channel, numchannel, chassis = 1;
CPRECORD cprec;
for(channel=1; channel<=numchannel; ++channel)
{
if (gfdReadStatusFile (&cprec, channel, chassis) == GFD_SUCCESS)
printf ("channel %d, status = %021x," " name = %32x\n",
cprec.cp_channel,cprec.cp_state, cprec.cp_name);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation