/*---------------------------------------------------------------------------*/ /*- -*/ /*- (c) Copyright 1992,1993,1994 by G & A Technical Software, Inc., -*/ /*- 28 Research Drive, Hampton, Virginia, 23666. -*/ /*- -*/ /*- All Rights Reserved. No part of this software or publication may be -*/ /*- reproduced, stored in a retrieval system, or transmitted, in any form -*/ /*- or by any means, electronic, mechanical, photocopying, recording, or -*/ /*- otherwise without the prior written permission of G & A Technical -*/ /*- Software, Inc. -*/ /*- -*/ /*---------------------------------------------------------------------------*/ /*- *- Filename: dataset_routines.h *- *- Purpose: *- *- Author: John Burton *- *- Date: 5/31/94 *- */ /*---------------------------------------------------------------------------*/ /*- *- Modification History: *- *- $Log: s3_dataset_routines.h,v $ * Revision 2.1 1994/07/08 17:47:00 jcburt * Updated typedefs, defines and function protypes to allow recursive * parsing of pct files. Enabled use of sub-PDT files and scoping of * datasets. Datasets used in a pct must be defined either in the * associated pdt file or the pdt file associated with the direct * ancestors of the current pct file. * * Revision 2.0.0.1 1994/06/28 18:48:27 jcburt * S3 Version 2.0 Initial Source * *- */ /*---------------------------------------------------------------------------*/ /*- *- Revision Control Information: *- *- $Id: s3_dataset_routines.h,v 2.1 1994/07/08 17:47:00 jcburt Exp $ *- $Revision: 2.1 $ *- */ /*---------------------------------------------------------------------------*/ typedef struct temp { char *name; int type; int (*function)(); int NDS; } ststr; extern int get_eol(int nargs, DataSet **dl); extern int get_eoi(int nargs, DataSet **dl); extern int set_eol(int nargs, DataSet **dl); extern int set_eoi(int nargs, DataSet **dl); extern int resize1(int nargs, DataSet **dl); extern int resize2(int nargs, DataSet **dl); extern int resize3(int nargs, DataSet **dl); extern int incr(int nargs, DataSet **dl); extern int dse(int nargs, DataSet **dl); extern int decr(int nargs, DataSet **dl); extern int if_then_else(int nargs, DataSet **dl); extern int dsz (int nargs, DataSet **dl); extern int ise (int nargs, DataSet **dl); extern int get_element1(int nargs, DataSet **dl); extern int get_element2(int nargs, DataSet **dl); extern int read_control_file(int nargs, DataSet **dl); extern void call_system(int nargs, DataSet **dl); extern void copy_file(int nargs, DataSet **dl); #ifdef _HAVE_IDL_RPC extern void initialize_idl_server(int nargs, DataSet **dl); extern void send_dataset_to_idl(int nargs, DataSet **dl); extern void send_command_to_idl(int nargs, DataSet **dl); extern void shutdown_idl_server(int nargs, DataSet **dl); #endif ststr ds_routines[] = { "get_eol", DFUNC, (int (*)())get_eol, UNDEFINED, "get_eoi", DFUNC, (int (*)())get_eoi, UNDEFINED, "set_eol", DFUNC, (int (*)())set_eol, UNDEFINED, "set_eoi", DFUNC, (int (*)())set_eoi, UNDEFINED, "resize1", DFUNC, (int (*)())resize1, UNDEFINED, "resize2", DFUNC, (int (*)())resize2, UNDEFINED, "resize3", DFUNC, (int (*)())resize3, UNDEFINED, "incr", DFUNC, (int (*)())incr, UNDEFINED, "decr", DFUNC, (int (*)())decr, UNDEFINED, "if_then_else", DFUNC, (int (*)())if_then_else, UNDEFINED, "dsz", DFUNC, (int (*)())dsz, UNDEFINED, "ise", DFUNC, (int (*)())ise, UNDEFINED, "dse", DFUNC, (int (*)())dse, UNDEFINED, "get_element1", DFUNC, (int (*)())get_element1, UNDEFINED, "get_element2", DFUNC, (int (*)())get_element2, UNDEFINED, "read_control_file", DFUNC, (int (*)())read_control_file, UNDEFINED, #ifdef _HAVE_IDL_RPC "initialize_idl_server", DSUBR, (int (*)())initialize_idl_server, UNDEFINED, "send_dataset_to_idl", DSUBR, (int (*)())send_dataset_to_idl, UNDEFINED, "send_command_to_idl", DSUBR, (int (*)())send_command_to_idl, UNDEFINED, "shutdown_idl_server", DSUBR, (int (*)())shutdown_idl_server, UNDEFINED, #endif "call_system", DSUBR, (int (*)())call_system, UNDEFINED, "copy_file", DSUBR, (int (*)())copy_file, UNDEFINED };