Ignore:
Timestamp:
Jan 8, 2012, 5:12:00 PM (12 years ago)
Author:
cecile
Message:

abnormal structure in network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vis_dev/vis-2.3/src/debug/debugAbnormal.c

    r36 r40  
    114114        }
    115115}
     116 Ntk_NetworkAddApplInfo(ntk, DBG_NETWORK_APPL_KEY,
     117 (Ntk_ApplInfoFreeFn) Dbg_AbnormalFreeCallback,
     118 (void *) abnormal);
    116119}
    117120/**Function********************************************************************
     
    157160         FREE(abn);
    158161}       
     162/**Function********************************************************************
     163
     164  Synopsis    [Call-back function to free an abnormal structure.]
     165
     166  Description [This function will be stored in the network together with the
     167  pointer to the structure. Whenever the network deletes the partitioning
     168  information, this function is called and it will deallocate the abnormal and
     169  the information attached to it.]
     170
     171  SideEffects []
     172
     173  SeeAlso     [Ntk_NetworkAddApplInfo]
     174
     175******************************************************************************/
     176void
     177Dbg_AbnormalFreeCallback(
     178   void *data)
     179{
     180  Dbg_DebugAbnormalFree((Dbg_Abnormal_t *) data);
     181} /* End of Part_PartitionFreeCallback */
    159182
    160183
     
    227250        return abnormal->abnormal;
    228251}
    229 
     252/**Function********************************************************************
     253 
     254  Synopsis    [returns the abnormal structure]
     255
     256  Description [returns the abnormal structure associated to the network]
     257
     258  SideEffects []
     259
     260  SeeAlso     []
     261
     262******************************************************************************/
     263Dbg_Abnormal_t * Dbg_NetworkReadAbnormal(Ntk_Network_t * network)
     264{
     265        Dbg_Abnormal_t * abn = (Dbg_Abnormal_t *) Ntk_NetworkReadApplInfo(network, DBG_NETWORK_APPL_KEY);
     266
     267        return abn;
     268}
Note: See TracChangeset for help on using the changeset viewer.