Previous PageTable Of Contents../index.htmlIndexNext Page

gfqPurgeAll( )

Description | Example

Name:

int gfqPurgeAll (char *gfqFileName, GFQRECORD *qrec, int list, char *user);

Inputs:

char *gfqFileName

  • A pointer to the name of the Queue File.

GFQRECORD *qrec

  • A pointer to the queue record.

int list

  • A linked list in the Queue File.

char *user

  • A pointer to a user's identification.

Outputs:

None

 

Returns:

GFQSUCCESS

  • The purge was executed.

GFQFILE_BUSY

  • The Queue File is locked by another task.

GFQFILE_CREATE_ERROR

  • Unable to create the 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; i.e., being processed by another task.

GFQLIST_NOTFOUND

  • The list is not a valid Queue File List.

Includes:

gfq.h

 

Top Of PageDescription

The gfqPurgeAll( ) function purges from one of the Queue Files lists all records for a specific user that are not active or BUSY. If the user is NULL or "", all records on the list that are not busy are purged. If the purge succeeds, the function returns GFQSUCCESS, even when the list had no records.

To make disk space available, gfqPurgeAll( ) also automatically shrinks the Queue File to its minimum size of 78 bytes, leaving only the Queue File header, but under two conditions:

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