
Name: |
int gfdReadStatusMem (CPRECORD *rec, int channel, | |
Inputs: |
int channel |
|
|
int chassis |
|
Outputs: |
CPRECORD *rec |
|
Returns: |
GFD_SUCCESS |
|
|
GFDBAD_STATUS_FILE |
|
|
GFDNO_STATUS_FILE |
|
Includes: |
gfdstatu.h |
|
|
gfdmsg.h |
|
|
gfdipc.h |
|
The gfdReadStatusMem( ) function reads a record from the status table. This high-level status 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