Index: trunk/Ohana/src/addstar/include/sedstar.h
===================================================================
--- trunk/Ohana/src/addstar/include/sedstar.h	(revision 7693)
+++ trunk/Ohana/src/addstar/include/sedstar.h	(revision 7696)
@@ -1,13 +1,11 @@
+# include "addstar.h"
+# include "kapa.h"
 
-typedef structu {
-  int Nfilter;
-  float *wavecode;
-  float *vegaToAB;
-  int *hashcode;
-  int codeP;
-  int codeM;
-  SEDtableRow **row;
-  int Nrow;
-} SEDtable;
+typedef enum {
+  SED_FIT,
+  SED_REQ,
+  SED_MODEL,
+  SED_SAMPLE,
+} SEDtableModes;
 
 typedef struct {
@@ -24,6 +22,23 @@
 } SEDfit;
 
+typedef struct {
+  int Nfilter;
+  float *wavecode;
+  float *vegaToAB;
+  int *mode;
+  int *hashcode;
+  int *code;
+  int codeP;
+  int codeM;
+  SEDtableRow **row;
+  int Nrow;
+} SEDtable;
+
 SEDtableRow **sort_SEDtable (SEDtableRow *raw, int N);
-int SEDcolorBracket (SEDtableRow **table, int Ntable, float color);
 SEDfit SEDchisq (SEDtableRow *ref, SEDtableRow *data, SEDtableRow *error, int Nfilter);
-
+SEDtable *SEDtableLoad (char *filename);
+int SEDcolorBracket (SEDtable *table, float color);
+int SEDfitInit (SEDtable *table);
+int SEDfitPlot (SEDtable *table, double R, double D, SEDfit *minFit, SEDtableRow *sourceValue, SEDtableRow *sourceError);
+int SEDfitCatalog (Catalog *outcat, Catalog *incat, SEDtable *table);
+void SetLimitsRaw (float *xvec, float *yvec, int Nelements, Graphdata *graphmode);
