Index: trunk/psModules/src/objects/pmSourceInternal.h
===================================================================
--- trunk/psModules/src/objects/pmSourceInternal.h	(revision 41392)
+++ trunk/psModules/src/objects/pmSourceInternal.h	(revision 41393)
@@ -34,4 +34,27 @@
 # define SIGN(X)  (((X) == 0) ? 0 : ((fabs((double)(X))) / (X)))
 
+/**
+ * this structure defines the parameters to describe a ghost
+ */
+typedef struct {
+    psPlane *srcFP;			///< location in FPA coords of the source star
+    psPlane *FP;			///< location in FPA coords of the ghost center
+    psPlane *chip;			///< location in chip coords of the ghost center
+    double Mag;				///< instrumental magnitude of source star
+    psEllipseAxes inner;		///< inner elliptical annulus boundary
+    psEllipseAxes outer;		///< outer elliptical annulus boundary
+} pmSourceGhost;
+
+pmSourceGhost     *pmSourceGhostAlloc (void);
+
+pmChip           *pmSourceFindChip (double *xChip, double *yChip, pmFPA *fpa, double xFPA, double yFPA);
+bool 		  pmSourceChipBounds (pmFPA *fpa);
+bool              pmSourceFindChipInXrange (pmFPA *fpa, int nChip, double xFPA, double yFPA);
+bool              pmSourceFindChipInYrange (pmFPA *fpa, int nChip, double xFPA, double yFPA);
+bool 		  pmSourceFindChipYedges (double *yFPAs, double *yFPAe, pmFPA *fpa, int nChip);
+bool 		  pmSourceFindChipXedges (double *yFPAs, double *yFPAe, pmFPA *fpa, int nChip);
+bool 		  pmSourceFPAtoChip (double *xChip, double *yChip, pmFPA *fpa, int nChip, double xFPA, double yFPA);
+bool              pmSourceExtractFreeChipBounds(void);
+
 
 #endif
