#ifndef RUNTHREDDSBROWSER_H_
#define RUNTHREDDSBROWSER_H_

#include <Python.h> /* make sure Python.h is alway first */
#include <sys/types.h>
#include <stdio.h>

/* 
 * Interface to the FORTRAN function:
 * INTEGER FUNCTION RUN_THREDDS_BROWSER(DATASET_NAME, ERR_WARN_MSG)
 *         CHARACTER*(*) DATASET_NAME, ERR_WARN_MSG
 */
extern int run_thredds_browser_(char dataset_name[], char err_warn_msg[], 
                                int max_len_data_set, int max_len_err_warn_msg);

/* Standard C functions */
extern int   runThreddsBrowser(char datasetName[], char errWarn[]);
extern int   getJavaVersion(char javaExeName[], char errMsg[]);
extern FILE *executableOutput(char *exeArgv[], pid_t *childPidPtr, char errMsg[]);

#endif /* RUNTHREDDSBROWSER_H_ */
