Previous PageTable Of Contents../index.htmlIndexNext Page

gfdReadStatusFileHeader( )

Description | Example

Name:

int gfdReadStatusFileHeader (int fid,
struct cp_status_header_s header)

Inputs:

int fid

  • The file handle returned by gfdOpenStatusFile.

Outputs:

struct cp_status_header_s header

  • Pointer to the data structure maintained in memory that holds the status table.

Returns:

GFD_SUCCESS

  • The status record was successfully read.

GFDBAD_STATUS_FILE

  • The status file is corrupted.

GFDNO_STATUS_FILE

  • The status file could not be found.

Includes:

gfdstatu.h

 

gfdmsg.h

gfdipc.h

  • gfdipc.h requires that the file gfdmsg.h be included first.

Top Of PageDescription

The gfdReadStatusFileHeader( ) function reads version, size, and date information from a status file.

One field in the status-file header shows the number of fax channels active in the chassis. Also in the header file is a cp_status_header data-structure definition for a header of a status file. Table 41 lists the fields in a status-file header. A data structure for the status table is in GFDSTATU.H, which is the header file for status functions included in GDK. This structure follows:


Table 41. Fields in the Status-File Header

Data Type

Field Name

Description

int

cp_status_version

Version of the status file.

int

cp_header_size

Size of the header in bytes.

int

cp_record_size

Allocated size for each fax channel.

int

cp_max_channel

Number of fax channels active in the chassis.

time_t

cp_last_update

Time of last update.

Top Of PageExample


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2000, Dialogic Corporation
All rights reserved
This page generated January, 2002