Previous PageTable Of Contents../index.htmlIndexNext Page

gfqPurgeOne( )

Description | Example

Name:

int gfqPurgeOne (char *gfqFileName, GFQRECORD *qrec);

Inputs:

char *gfqFileName;

  • Pointer to the name of the Queue File.

GFQRECORD *qrec

  • Pointer to the queue record to be purged.

Outputs:

None

 

Returns:

GFQSUCCESS

  • The deletion was successful.

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_ACTIVE

  • The record is active; that is, being processed by another task.

GFQRECORD_KEY_ERROR

  • Key values were changed.

Includes:

gfq.h

 

Top Of PageDescription

The gfqPurgeOne( ) function deletes non-busy records from the Queue File. Before using this function, a queue record must have been successfully read using gfqFindFirst( ) or gfqFindNext( ). Both of these functions determines whether another task has changed the key values of the queue record (linked list, time, or priority). If the key values have been changed, gfqPurgeOne( ) returns the error GFQRECORD_KEY_ERROR. If a queue record is marked BUSY, the function returns the error GFQRECORD_ACTIVE.

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