Previous PageTable Of Contents../index.htmlIndexNext Page

gfqInsertOne( )

Description | Example

Symbolic Constant

Initial Search Target

Second Target

Meaning

GFQDIR_QUEUE

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.

GFQDIR_CONFIG

GFAXC

current directory

Locate the config files.

Name:

void gfqInsertOne (char *gfqFileName, GFQRECORD *qrec, int list);

Inputs:

Char *gfqFileName

  • A pointer to the name of the Queue File.
 

GFQRECORD *qrec

  • A pointer to the Queue File record to be inserted.

int list

  • The specified linked list of the Queue File.

Outputs:

None

 

Returns:

GFQSUCCESS

  • The record was added.

GFQFILE_BUSY

  • The Queue File is locked by another task.

GFQFILE_CREATE_ERROR

  • Unable to create the new Queue File.

GFQFILE_INCOMPATIBLE

  • The Queue File version is incompatible with this version of the GDK software.

GFQFILE_NOTFOUND

  • The Queue File was not found.

GFQFILE_OPEN_ERROR

  • Unable to open the Queue File.

GFQRECORD_WRITE_ERROR

  • Unable to create a new queue record.

GFQLIST_NOTFOUND

  • Unable to find the specified list.

Includes:

gfq.h

 

Top Of PageDescription

The gfqInsertOne( ) function adds one record into the desired linked list of the Queue File. It is a general-purpose function that can be used to submit records to any linked list specified by the parameter "link." Table 28 lists the names used with gfqInsertOne( ).

Each linked list in the Queue File is kept sorted, in descending order, by a time stamp and priority. This means that events to be processed "now" are at the end of the linked list and "future" events are at the beginning. A pointer to a record and a linked-list number are passed into this function. If the linked list is out of range, the function returns GFQLIST_NOTFOUND.


Table 28. List Names Used with gfqInsertOne( )

Mnemonic

Meaning

GFQPEND_LIST

Pending List

GFQRECV_LIST

Received List

GFQSENT_LIST

Sent List

GFQCONV_LIST

Conversion List

GFQCTRL_LIST

Control List

GFQCPST_LIST

Control Done List

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