appletcomponent.c

Go to the documentation of this file.
00001 
00002 /*  $Id: appletcomponent.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #include "appletdefs.h"
00008 #include "appletcomponent.h"
00009 
00010 
00011 void checkComponentInstance (ComponentInstance *instance) {
00012     
00013     /*
00014     if the instance disappears, disable our connection with the
00015     component by setting the instance to 0.
00016     */
00017     
00018     ComponentInstance x = *instance;
00019     
00020     if (x != 0) {
00021     
00022         if (GetComponentVersion (x) == badComponentInstance) /*no longer valid*/
00023             x = 0;
00024         }
00025         
00026     *instance = x;
00027     } /*checkComponentInstance*/

Generated on Wed May 31 18:19:40 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6