blob: 48a30f25d089f875a27ab0e98c87641f02186d57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* websuemf.c -- GoAhead Micro Embedded Management Framework
*
* Copyright (c) Go Ahead Software Inc., 1995-1999. All Rights Reserved.
*
* See the file "license.txt" for usage and redistribution license requirements
*/
/********************************** Description *******************************/
/*
* This modules provides compatibility with the full GoAhead EMF.
*/
/*********************************** Includes *********************************/
#include "wsIntrn.h"
/************************************* Code ***********************************/
/*
* Evaluate a script
*/
int scriptEval(int engine, char_t* cmd, char_t** result, int chan)
{
int ejid;
if (engine == EMF_SCRIPT_EJSCRIPT) {
ejid = (int) chan;
if (ejEval(ejid, cmd, NULL) ) {
return 0;
} else {
return -1;
}
}
return -1;
}
/******************************************************************************/
|