GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CMX / V2-13-6 > cmx_interface / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

CMX_interfaceCompare.c File Reference

Compare two interface files. More...

#include <stdio.h>
#include <string.h>
#include <CMX_interface_prv.h>

Functions

static unsigned int interfaceCompare (struct _CMX_Hierarchy *hier, struct _CMX_Hierarchy *jier, unsigned int opts, unsigned int wnam, unsigned int wver)
 Compare two nodes in the interface hierarchy.
unsigned int CMX_interfaceCompare (struct _CMX_Interface *ifac, struct _CMX_Interface *jfac, unsigned int opts)
 Compare two interface files.


Detailed Description

Compare two interface files.

CMX_interfaceCompare compares two interace files.

CVS $Id: CMX_interfaceCompare.c,v 1.2 2010/04/22 23:41:29 apw Exp $

Function Documentation

signed int CMX_interfaceCompare ( struct _CMX_Interface ifac,
struct _CMX_Interface jfac,
unsigned int  opts 
)

Compare two interface files.

Parameters:
ifac First interface
jfac Second interface
opts Processing options
CMX_interfaceCompare() compares two interface files, determining whether the second (new) file is a viable derivative of the first (old) file and recommending the level of transition (major, minor or patch) to go from the old to the new.

Return values:
0 Always

References _CMX_Interface::hier, interfaceCompare(), _CMX_Interface::maxnam, and _CMX_Interface::maxver.

static unsigned int interfaceCompare ( struct _CMX_Hierarchy hier,
struct _CMX_Hierarchy jier,
unsigned int  opts,
unsigned int  wnam,
unsigned int  wver 
) [static]

Compare two nodes in the interface hierarchy.

Parameters:
hier First hierarchy node
jier Second hierarchy node
opts Processing options
wnam Width of interface name field
wver Width of interface version field
interfaceCompare() is an internal, recursive routine which does all the work for the CMX_interfaceCompare() routine.

Return values:
0 Always

References CMX_interfaceCollate(), _CMX_Hierarchy::down, _CMX_Instance::global, _CMX_Hierarchy::inst, _CMX_Symbol::name, _CMX_Instance::name, _CMX_Symbol::next, _CMX_Hierarchy::next, _CMX_Instance::parloc, _CMX_Instance::patch, and _CMX_Instance::stem.

Referenced by CMX_interfaceCompare().


Generated on Sat Jul 16 12:03:27 2011 by  doxygen 1.5.8