Changeset 5273 for trunk/Ohana/src/libohana/include/ohana.h
- Timestamp:
- Oct 11, 2005, 8:11:57 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana.h
r5237 r5273 87 87 # endif /* FOPEN */ 88 88 89 /* socket / pipe communication buffer */ 90 typedef struct { 91 char *buffer; 92 int Nalloc; 93 int Nreset; 94 int Nblock; 95 int Nbuffer; 96 } IOBuffer; 97 89 98 extern double hypot(); 90 99 … … 143 152 int str_to_radec PROTO((double *ra, double *dec, char *str1, char *str2)); 144 153 154 /* IO Buffer functions */ 155 int InitIOBuffer (IOBuffer *buffer, int Nalloc); 156 int FlushIOBuffer (IOBuffer *buffer); 157 int ReadtoIOBuffer (IOBuffer *buffer, int fd); 158 int EmptyIOBuffer (IOBuffer *buffer, int Nmax, int fd); 159 void FreeIOBuffer (IOBuffer *buffer); 160 161 /* communication functions */ 162 int ExpectMessage (int device, double timeout, IOBuffer *message); 163 int ExpectCommand (int device, int length, double timeout, IOBuffer *buffer); 164 int SendMessage (int device, char *format, ...); 165 int SendCommand (int device, int length, char *format, ...); 166 int SendCommandV (int device, int length, char *format, va_list argp); 167 145 168 /* 146 169 # define F_SETFL 4
Note:
See TracChangeset
for help on using the changeset viewer.
