- Modifed many modules using histmem to work also with histmemsec - Extended tasker with task names and task groups - There is a new taskobj which allows to list tasks and to interact with them. - Task now supports running Tcl functions as tasks - There is a new experimental sctcomtask module which allows to define communication tasks against a scriptcontext. This is a new feature which should facilitate writing sequential scripts using asynchronous communication. - A fix to make spss7 work when there are no switches - ORION support for single X. TRICS measures crystals hanging down, ORION standing up SKIPPED: psi/ease.c psi/faverage.c psi/jvlprot.c psi/make_gen psi/pardef.c psi/polterwrite.c psi/psi.c psi/sinq.c psi/spss7.c
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
#ifndef SCRIPTCONTEXT_H
|
|
#define SCRIPTCONTEXT_H
|
|
|
|
#include "sics.h"
|
|
#include "devser.h"
|
|
|
|
/* \brief an sct controller
|
|
*/
|
|
typedef struct SctController SctController;
|
|
|
|
/** \brief queue node action to a controller
|
|
*
|
|
* \param controller the controller
|
|
* \param node the node
|
|
* \param prio the priority
|
|
* \param action the initial state
|
|
* \param con an optional connection to be used by the action scripts
|
|
*/
|
|
void SctQueueNode(SctController * controller, Hdb * node,
|
|
DevPrio prio, char *action, SConnection * con);
|
|
|
|
/** \brief call a script and configure the sct command to be used
|
|
* in connection with the given node and controller
|
|
*
|
|
* \param con the connection
|
|
* \param script a tcl script
|
|
* \param the node to which the sct command
|
|
* \return 0 when this was a new action, > 0 when an action was overwritten
|
|
*/
|
|
int SctCallInContext(SConnection * con, char *script, Hdb * node,
|
|
SctController * controller, char **resPtr);
|
|
/**
|
|
* test the controller verbose flag
|
|
* \param c The SctController to test
|
|
* \return 1 for verbose, 0 for silent
|
|
*/
|
|
int SctVerbose(SctController * c);
|
|
/**
|
|
* retrieve the device serializer
|
|
* \param data A pointer to a SICSObject representing a SctController
|
|
* \param A pointer the the device serializer
|
|
*/
|
|
DevSer *SctGetDevser(void *data);
|
|
#endif
|