
Name: |
int gfdReadStatusMem (CPRECORD *rec, | |
Inputs: |
int channel |
|
int chassis |
| |
Outputs: |
CPRECORD *rec |
|
Returns: |
GFD_SUCCESS |
|
GFDBAD_STATUS_FILE |
| |
GFDNO_STATUS_FILE |
| |
Includes: |
gfdstatu.h |
|
The gfdReadStatusMem( ) function reads one record from the status table. The status table is opened, and the record is read by calling gfdReadStatusMemRecord. The status table is closed without further function calls.
#include "gfdstatu.h"
#include "gfdmsg.h"
#include "gfdipc.h"
int channel, numchannel, chassis = 1;
CPRECORD cprec;
numchannel = gfdGetMemNumChannel(chassis);
for(channel = 1; channel <= numchannel; ++channel)
{
if (gfdReadStatusMem (&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