Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtCallbackG(3x) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppReleaseCacheRefs(1)

XtCallbackReleaseCacheRef(1)

XtCallConverter(1)

XtConvertAndStore(1)

 

NAME

XtCallbackReleaseCacheRefList − callback function to release a list of cached values. 

Synopsis

void XtCallbackReleaseCacheRefList(object, client_data, call_data)

      Widget object;
      XtPointer client_data;
      XtPointer call_data;

Inputs

objectSpecifies the object with which the resources are associated. 

client_data
Specifies the conversion cache entries to be released.

call_dataIs ignored. 

Availability

Release 4 and later. 

Description

XtCallbackReleaseCacheRefList() casts its client_data argument to a NULL-terminated array of XtCacheRef and passes this array to XtAppReleaseCacheRefs().  XtAppReleaseCacheRefs() decrements the reference count on the specified objects in the resource conversion cache, and if the count reaches zero on any of them it removes the object from the cache and calls the appropriate destructor procedures.  XtCallbackReleaseCacheReList() is a convenience procedure designed to be registered on the destroy callback list of a widget or object (which is why it has third, unused argument). 

Usage

XtCacheRef values are returned from calls to XtCallConverter().  The higher-level converter function XtConvertAndStore() performs the conversion and automatically registers XtCallbackReleaseCacheRef() on the object’s destroy callback list if necessary.  To release a single XtCacheRef, you can use XtCallbackReleaseCacheRef(). 

Structures

XtCacheRef is an opaque type. 

See Also

XtAppReleaseCacheRefs(1), XtCallbackReleaseCacheRef(1), XtCallConverter(1), XtConvertAndStore(1). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026