keep obsolete file in samba4 source directory.
[kai/samba-autobuild/.git] / source4 / lib / appweb / ejs-2.0 / ejs / system / ejsSystemApp.c
1 /*
2  *      @file   ejsSystemApp.c
3  *      @brief  App class
4  */
5 /********************************** Copyright *********************************/
6 /*
7  *      Copyright (c) Mbedthis Software Inc, 2005-2006. All Rights Reserved.
8  */
9 /********************************** Includes **********************************/
10
11 #include        "ejs.h"
12
13 /************************************ Code ************************************/
14
15 int ejsDefineAppClass(Ejs *ep)
16 {
17         EjsVar  *appClass;
18
19         appClass =  ejsDefineClass(ep, "System.App", "Object", 0);
20         if (appClass == 0) {
21                 return MPR_ERR_CANT_INITIALIZE;
22         }
23
24         /*
25          *      Define properties 
26          */
27         ejsSetPropertyToString(ep, appClass, "name", BLD_PRODUCT);
28         ejsSetPropertyToString(ep, appClass, "title", BLD_NAME);
29         ejsSetPropertyToString(ep, appClass, "version", BLD_VERSION);
30
31         /*
32          *      Command line arguments
33          */
34         ejsSetPropertyToNull(ep, appClass, "args");
35
36         return ejsObjHasErrors(appClass) ? MPR_ERR_CANT_INITIALIZE : 0;
37 }
38
39 /******************************************************************************/
40
41 /*
42  * Local variables:
43  * tab-width: 4
44  * c-basic-offset: 4
45  * End:
46  * vim:tw=78
47  * vim600: sw=4 ts=4 fdm=marker
48  * vim<600: sw=4 ts=4
49  */