source: trunk/include/earthworm_simple_funcs.h @ 2164

Revision 2164, 4.6 KB checked in by dietz, 14 years ago (diff)

Added one more argument to SendMail?() prototype (for "From" field)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2 *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
3 *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
4 *
5 *    $Id$
6 *
7 *    Revision history:
8 *     $Log$
9 *     Revision 1.7  2006/05/19 20:01:07  dietz
10 *     Added one more argument to SendMail() prototype (for "From" field)
11 *
12 *     Revision 1.6  2006/04/05 19:30:19  stefan
13 *     logit fix for log file slash
14 *
15 *     Revision 1.5  2004/07/29 17:33:53  dietz
16 *     Added prototypes for Get*Name() functions in getutil.c
17 *
18 *     Revision 1.4  2003/07/31 21:12:31  davidk
19 *     added get_prog_name2() prototype.
20 *
21 *     Revision 1.3  2002/06/06 19:34:50  lucky
22 *     Added geo_to_km_deg
23 *
24 *     Revision 1.2  2001/07/01 21:59:42  davidk
25 *     Added prototype for geo_to_km() from libsrc/util/geo_to_km.c
26 *
27 *     Revision 1.1  2001/04/06 21:03:30  davidk
28 *     Initial revision
29 *
30 *
31 ************************************************************/
32
33#ifndef EARTHWORM_SIMPLE_FUNCS_H
34# define EARTHWORM_SIMPLE_FUNCS_H
35
36/* DO NOT PUT ANY #includes in this file!!!! */
37
38/* This file contains prototypes for earthworm libsrc
39   functions that are simple and require no special
40   type definitions.  If you have more complex functions
41   (semaphores, threads, mutexes, sockets, etc.) you should
42   put them in earthworm_complex_funcs.h
43
44   Note, please try to keep functions from the same object
45   together in one section of one file.  So all of the logit.c
46   stuff should go together.
47   Davidk 2001/04/06
48*************************************************************/
49
50/* Prototypes for Earthworm utility functions
51 ********************************************/
52long  GetKey  ( char * );                   /* getutil.c    sys-independent  */
53int   GetInst ( char *, unsigned char * );  /* getutil.c    sys-independent  */
54int   GetModId( char *, unsigned char * );  /* getutil.c    sys-independent  */
55int   GetType ( char *, unsigned char * );  /* getutil.c    sys-independent  */
56int   GetLocalInst( unsigned char * );      /* getutil.c    sys-independent  */
57char *GetKeyName  ( long );                 /* getutil.c    sys-independent  */
58char *GetInstName ( unsigned char );        /* getutil.c    sys-independent  */
59char *GetModIdName( unsigned char );        /* getutil.c    sys-independent  */
60char *GetTypeName ( unsigned char );        /* getutil.c    sys-independent  */
61char *GetLocalInstName( void );             /* getutil.c    sys-independent  */
62void  GetUtil_LoadTable( void );            /* getutil.c    sys-independent  */
63
64void logit_init( char *, short, int, int ); /* logit.c      sys-independent  */
65void addslash (char *);                                         /* logit.c      appends platform-
66                                                                                                                        specific directory
67                                                                                                                        slash to string  */
68void html_logit( char *, char *, ... );     /* logit.c      sys-independent  */
69void logit( char *, char *, ... );          /* logit.c      sys-independent  */
70int  get_prog_name( char *, char * );       /* logit.c      DEPRECATED!!!!!  */
71int  get_prog_name2( char *, char *, int ); /* logit.c      sys-independent  */
72
73
74int SendMail( char [][60], int, char *, char *, 
75              char *, char *, char *, char *, char * );   
76
77/* System-dependent stuff goes here
78   ********************************/
79
80int  copyfile( char *, char *, char *, char *, char *, char *, char * );
81                                            /* copyfile.c   system-dependent */
82
83int  chdir_ew( char * );                    /* dirops_ew.c  system-dependent */
84int  CreateDir( char * );                   /* dirops_ew.c  system-dependent */
85int  RecursiveCreateDir( char * );          /* dirops_ew.c  system-dependent */
86int  GetFileName( char * );                 /* dirops_ew.c  system-dependent */
87int  rename_ew( char *, char * );           /* dirops_ew.c  system-dependent */
88
89int  GetDiskAvail( unsigned * );            /* getavail.c   system-dependent */
90
91int  getsysname_ew( char *, int );          /* getsysname_ew.c sys-dependent */
92
93int SendPage( char * );                     /* sendpage.c   system-dependent */
94
95void sleep_ew( unsigned );                  /* sleep_ew.c   system-dependent */
96
97
98int  pipe_init ( char *, unsigned long );   /* pipe.c       system-dependent */
99int  pipe_put  ( char *, int );             /* pipe.c       system-dependent */
100int  pipe_get  ( char *, int, int * );      /* pipe.c       system-dependent */
101void pipe_close( void );                    /* pipe.c       system-dependent */
102
103/* from geo_to_km.c */
104int geo_to_km (double lat1, double lon1, double lat2, double lon2,
105              double* dist, double* azm);
106int geo_to_km_deg (double lat1, double lon1, double lat2, double lon2,
107              double* dist, double *xdeg, double* azm);
108
109#endif /* EARTHWORM_SIMPLE_FUNCS_H */
Note: See TracBrowser for help on using the repository browser.