/* astronomy headers */
%include "psAstrometry.h"
%include "psAstronomyErrors.h"
%include "psCoord.h"

%include "psMetadata.h"
%extend psMetadataItem {
    const char *get_STR(void) {
       if (self->type != PS_META_STR) {
	  return NULL;
       } else {
	  return self->data.V;
       }
    }
}

%apply unsigned int *OUTPUT { unsigned int *nFail }; /* for psMetadataParseConfig */
%include "psMetadataIO.h"
%clear psU32 *nFail;

%include "psPhotometry.h"
%include "psTime.h"

