source: trunk/include/earthworm_simple_funcs.h @ 5054

Revision 5020, 5.3 KB checked in by paulf, 5 years ago (diff)

added prototype for GetKeyWithDefault?()

  • 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.10  2009/12/14 19:21:39  scott
10 *     Added threading & recovery from bad reconfigure to startstop
11 *
12 *     Revision 1.9  2007/11/12 21:27:36  paulf
13 *     fixed logit so that addslash is now ew_addslash
14 *
15 *     Revision 1.8  2007/07/20 13:30:29  paulf
16 *     added OpenDir and GetNextFileName
17 *
18 *     Revision 1.7  2006/05/19 20:01:07  dietz
19 *     Added one more argument to SendMail() prototype (for "From" field)
20 *
21 *     Revision 1.6  2006/04/05 19:30:19  stefan
22 *     logit fix for log file slash
23 *
24 *     Revision 1.5  2004/07/29 17:33:53  dietz
25 *     Added prototypes for Get*Name() functions in getutil.c
26 *
27 *     Revision 1.4  2003/07/31 21:12:31  davidk
28 *     added get_prog_name2() prototype.
29 *
30 *     Revision 1.3  2002/06/06 19:34:50  lucky
31 *     Added geo_to_km_deg
32 *
33 *     Revision 1.2  2001/07/01 21:59:42  davidk
34 *     Added prototype for geo_to_km() from libsrc/util/geo_to_km.c
35 *
36 *     Revision 1.1  2001/04/06 21:03:30  davidk
37 *     Initial revision
38 *
39 *
40 ************************************************************/
41
42#ifndef EARTHWORM_SIMPLE_FUNCS_H
43# define EARTHWORM_SIMPLE_FUNCS_H
44
45/* DO NOT PUT ANY #includes in this file!!!! */
46
47/* This file contains prototypes for earthworm libsrc
48   functions that are simple and require no special
49   type definitions.  If you have more complex functions
50   (semaphores, threads, mutexes, sockets, etc.) you should
51   put them in earthworm_complex_funcs.h
52
53   Note, please try to keep functions from the same object
54   together in one section of one file.  So all of the logit.c
55   stuff should go together.
56   Davidk 2001/04/06
57*************************************************************/
58
59/* Prototypes for Earthworm utility functions
60 ********************************************/
61long  GetKey  ( char * );                   /* getutil.c    sys-independent  */
62long  GetKeyWithDefault  ( char *, long );  /* getutil.c    sys-independent  */
63int   GetInst ( char *, unsigned char * );  /* getutil.c    sys-independent  */
64int   GetModId( char *, unsigned char * );  /* getutil.c    sys-independent  */
65int   GetType ( char *, unsigned char * );  /* getutil.c    sys-independent  */
66int   GetLocalInst( unsigned char * );      /* getutil.c    sys-independent  */
67char *GetKeyName  ( long );                 /* getutil.c    sys-independent  */
68char *GetInstName ( unsigned char );        /* getutil.c    sys-independent  */
69char *GetModIdName( unsigned char );        /* getutil.c    sys-independent  */
70char *GetTypeName ( unsigned char );        /* getutil.c    sys-independent  */
71char *GetLocalInstName( void );             /* getutil.c    sys-independent  */
72void  GetUtil_LoadTable( void );            /* getutil.c    sys-independent  */
73int   GetUtil_LoadTableCore( int );         /* getutil.c    sys-independent  */
74
75void logit_init( char *, short, int, int ); /* logit.c      sys-independent  */
76void ew_addslash (char *);                                      /* logit.c      appends platform-
77                                                                                                                        specific directory
78                                                                                                                        slash to string  */
79void html_logit( char *, char *, ... );     /* logit.c      sys-independent  */
80void logit( char *, char *, ... );          /* logit.c      sys-independent  */
81int  get_prog_name( char *, char * );       /* logit.c      DEPRECATED!!!!!  */
82int  get_prog_name2( char *, char *, int ); /* logit.c      sys-independent  */
83
84
85int SendMail( char [][60], int, char *, char *, 
86              char *, char *, char *, char *, char * );   
87
88/* System-dependent stuff goes here
89   ********************************/
90
91int  copyfile( char *, char *, char *, char *, char *, char *, char * );
92                                            /* copyfile.c   system-dependent */
93
94int  chdir_ew( char * );                    /* dirops_ew.c  system-dependent */
95int  CreateDir( char * );                   /* dirops_ew.c  system-dependent */
96int  RecursiveCreateDir( char * );          /* dirops_ew.c  system-dependent */
97int  GetFileName( char * );                 /* dirops_ew.c  system-dependent */
98int  OpenDir( char * );                     /* dirops_ew.c  system-dependent */
99int  GetNextFileName( char * );             /* dirops_ew.c  system-dependent */
100int  rename_ew( char *, char * );           /* dirops_ew.c  system-dependent */
101
102int  GetDiskAvail( unsigned * );            /* getavail.c   system-dependent */
103
104int  getsysname_ew( char *, int );          /* getsysname_ew.c sys-dependent */
105
106int SendPage( char * );                     /* sendpage.c   system-dependent */
107
108void sleep_ew( unsigned );                  /* sleep_ew.c   system-dependent */
109
110
111int  pipe_init ( char *, unsigned long );   /* pipe.c       system-dependent */
112int  pipe_put  ( char *, int );             /* pipe.c       system-dependent */
113int  pipe_get  ( char *, int, int * );      /* pipe.c       system-dependent */
114void pipe_close( void );                    /* pipe.c       system-dependent */
115
116/* from geo_to_km.c */
117int geo_to_km (double lat1, double lon1, double lat2, double lon2,
118              double* dist, double* azm);
119int geo_to_km_deg (double lat1, double lon1, double lat2, double lon2,
120              double* dist, double *xdeg, double* azm);
121
122#endif /* EARTHWORM_SIMPLE_FUNCS_H */
Note: See TracBrowser for help on using the repository browser.