Main Page Class Hierarchy Compound List File List Compound Members File Members

# earthworm_simple_funcs.h

Go to the documentation of this file.

    00001 /*
    00002  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
    00003  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
    00004  *
    00005  *    $Id: earthworm__simple__funcs_8h-source.html,v 1.1 2006/05/19 16:55:01 paulf Exp $
    00006  *
    00007  *    Revision history:
    00008  *     $Log: earthworm__simple__funcs_8h-source.html,v $
    00008  *     Revision 1.1  2006/05/19 16:55:01  paulf
    00008  *     first inclusion
    00008  *
    00009  *     Revision 1.2  2001/07/01 21:59:42  davidk
    00010  *     Added prototype for geo_to_km() from libsrc/util/geo_to_km.c
    00011  *
    00012  *     Revision 1.1  2001/04/06 21:03:30  davidk
    00013  *     Initial revision
    00014  *
    00015  *
    00016  ************************************************************/
    00017
    00018 #ifndef EARTHWORM_SIMPLE_FUNCS_H
    00019 # define EARTHWORM_SIMPLE_FUNCS_H
    00020
    00021 /* DO NOT PUT ANY #includes in this file!!!! */
    00022
    00023 /* This file contains prototypes for earthworm libsrc
    00024    functions that are simple and require no special
    00025    type definitions.  If you have more complex functions
    00026    (semaphores, threads, mutexes, sockets, etc.) you should
    00027    put them in earthworm_complex_funcs.h
    00028
    00029    Note, please try to keep functions from the same object
    00030    together in one section of one file.  So all of the logit.c
    00031    stuff should go together.
    00032    Davidk 2001/04/06
    00033 *************************************************************/
    00034
    00035 /* Prototypes for Earthworm utility functions
    00036  ********************************************/
    00037 long GetKey  ( char * );                    /* getutil.c    sys-independent  */
    00038 int  GetInst ( char *, unsigned char * );   /* getutil.c    sys-independent  */
    00039 int  GetModId( char *, unsigned char * );   /* getutil.c    sys-independent  */
    00040 int  GetType ( char *, unsigned char * );   /* getutil.c    sys-independent  */
    00041 int  GetLocalInst( unsigned char * );       /* getutil.c    sys-independent  */
    00042 void GetUtil_LoadTable( void );             /* getutil.c    sys-independent  */
    00043
    00044 void logit_init( char *, short, int, int ); /* logit.c      sys-independent  */
    00045 void html_logit( char *, char *, ... );     /* logit.c      sys-independent  */
    00046 void logit( char *, char *, ... );          /* logit.c      sys-independent  */
    00047 int  get_prog_name( char *, char * );       /* logit.c      sys-independent  */
    00048
    00049 int SendMail( char [][60], int, char *, char *,
    00050                      char *, char *, char *, char * );
    00051
    00052 /* System-dependent stuff goes here
    00053    ********************************/
    00054
    00055 int  copyfile( char *, char *, char *, char *, char *, char *, char * );
    00056                                             /* copyfile.c   system-dependent */
    00057
    00058 int  chdir_ew( char * );                    /* dirops_ew.c  system-dependent */
    00059 int  CreateDir( char * );                   /* dirops_ew.c  system-dependent */
    00060 int  RecursiveCreateDir( char * );          /* dirops_ew.c  system-dependent */
    00061 int  GetFileName( char * );                 /* dirops_ew.c  system-dependent */
    00062 int  rename_ew( char *, char * );           /* dirops_ew.c  system-dependent */
    00063
    00064 int  GetDiskAvail( unsigned * );            /* getavail.c   system-dependent */
    00065
    00066 int  getsysname_ew( char *, int );          /* getsysname_ew.c sys-dependent */
    00067
    00068 int SendPage( char * );                     /* sendpage.c   system-dependent */
    00069
    00070 void sleep_ew( unsigned );                  /* sleep_ew.c   system-dependent */
    00071
    00072
    00073 int  pipe_init ( char *, unsigned long );   /* pipe.c       system-dependent */
    00074 int  pipe_put  ( char *, int );             /* pipe.c       system-dependent */
    00075 int  pipe_get  ( char *, int, int * );      /* pipe.c       system-dependent */
    00076 void pipe_close( void );                    /* pipe.c       system-dependent */
    00077
    00078 /* from geo_to_km.c */
    00079 int geo_to_km(double lat1, double lon1, double lat2, double lon2,
    00080               double* dist, double* azm);
    00081
    00082 int geo_to_km_deg( double lat1, double lon1, double lat2, double lon2
    00083                  , double *dist, double *xdeg, double *azm );
    00084
    00085 #endif /* EARTHWORM_SIMPLE_FUNCS_H */