| 1 |
/* @(#)iis.c 19.1 (ESO-DMD) 02/25/03 13:54:49 */ |
| 2 |
/*=========================================================================== |
| 3 |
Copyright (C) 1995 European Southern Observatory (ESO) |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or |
| 6 |
modify it under the terms of the GNU General Public License as |
| 7 |
published by the Free Software Foundation; either version 2 of |
| 8 |
the License, or (at your option) any later version. |
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public |
| 16 |
License along with this program; if not, write to the Free |
| 17 |
Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, |
| 18 |
MA 02139, USA. |
| 19 |
|
| 20 |
Correspondence concerning ESO-MIDAS should be addressed as follows: |
| 21 |
Internet e-mail: [email protected] |
| 22 |
Postal address: European Southern Observatory |
| 23 |
Data Management Division |
| 24 |
Karl-Schwarzschild-Strasse 2 |
| 25 |
D 85748 Garching bei Muenchen |
| 26 |
GERMANY |
| 27 |
===========================================================================*/ |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
/* file IIS.C : contains the following routines |
| 32 |
|
| 33 |
IISSIN_C: Send system info |
| 34 |
|
| 35 |
V 1.0 940802: KB Creation |
| 36 |
|
| 37 |
010515 last modif |
| 38 |
|
| 39 |
*/ |
| 40 |
|
| 41 |
|
| 42 |
extern int oshchdir(); |
| 43 |
|
| 44 |
|
| 45 |
# include <idi.h> |
| 46 |
# include <idistruct.h> |
| 47 |
# include <proto_idi.h> |
| 48 |
|
| 49 |
extern char DATA_PATH[328]; |
| 50 |
|
| 51 |
/* |
| 52 |
|
| 53 |
*/ |
| 54 |
|
| 55 |
/************************************************************************ |
| 56 |
* IISSIN_C routine: send system information |
| 57 |
* * |
| 58 |
* synopsis IISSIN_C (display , flag, cbuf) |
| 59 |
* * |
| 60 |
* int display; input display identifier * |
| 61 |
* int flag; input action flag |
| 62 |
* char *cbuf; input infor depending on `flag' |
| 63 |
************************************************************************/ |
| 64 |
|
| 65 |
int IISSIN_C (display , flag, cbuf) |
| 66 |
|
| 67 |
int display, flag; |
| 68 |
char *cbuf; |
| 69 |
|
| 70 |
{ |
| 71 |
|
| 72 |
int m; |
| 73 |
|
| 74 |
if (flag == 1) |
| 75 |
{ |
| 76 |
m = oshchdir(cbuf); |
| 77 |
} |
| 78 |
else if (flag == 2) |
| 79 |
{ |
| 80 |
strcpy(DATA_PATH,cbuf); |
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
return(II_SUCCESS); |
| 85 |
} |