Commit 30f0f252 authored by claes's avatar claes

SevNodeConfig object added

parent 3d2edf23
......@@ -424,6 +424,7 @@ topobjects ProjectNavigatorW2
class $System
class NodeConfig
class FriendNodeConfig
class SevNodeConfig
class BusConfig
}
......@@ -452,6 +453,7 @@ palette ProjectNavigatorPalette
class NodeConfig
class $NodeHier
class RootVolumeLoad
class SevNodeConfig
class SharedVolumeLoad
class SubVolumeLoad
class $System
......
/*
* Proview $Id: wb_c_sevnodeconfig.cpp,v 1.1 2008-09-05 09:06:56 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
/* wb_c_sevnodeconfig.c -- work bench methods of the SevNodeConfig class. */
#include <string.h>
#include "wb_pwrs.h"
#include "wb_pwrs_msg.h"
#include "wb_ldh.h"
#include "pwr_baseclasses.h"
static pwr_tStatus PostCreate (
ldh_tSesContext Session,
pwr_tObjid Object,
pwr_tObjid Father,
pwr_tClassId Class
) {
pwr_tObjid poid;
pwr_tClassId cid;
pwr_tStatus sts;
pwr_tMask comp;
comp = pwr_mDistrComponentMask_UserDatabase |
// pwr_mDistrComponentMask_LoadFiles |
// pwr_mDistrComponentMask_ApplFile |
// pwr_mDistrComponentMask_XttHelpFile |
// pwr_mDistrComponentMask_RHostFiles |
pwr_mDistrComponentMask_AuthorizedKeysFile;
sts = ldh_ClassNameToId(Session, &cid, "Distribute");
sts = ldh_CreateObject(Session, &poid, "Distribute", cid, Object, ldh_eDest_IntoLast);
if ( ODD(sts))
sts = ldh_SetObjectPar( Session, poid, "DevBody", "Components", (char *)&comp,
sizeof(comp));
return PWRS__SUCCESS;
}
pwr_dExport pwr_BindMethods(SevNodeConfig) = {
pwr_BindMethod(PostCreate),
pwr_NullMethod
};
/*
* Proview $Id: wb_i_base_methods.cpp,v 1.2 2007-01-30 07:13:02 claes Exp $
* Proview $Id: wb_i_base_methods.cpp,v 1.3 2008-09-05 09:06:56 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -56,6 +56,7 @@ pwr_dImport pwr_BindMethods(WebHandler);
pwr_dImport pwr_BindMethods(PlcProcess);
pwr_dImport pwr_BindMethods(PlcThread);
pwr_dImport pwr_BindMethods(NodeConfig);
pwr_dImport pwr_BindMethods(SevNodeConfig);
pwr_dImport pwr_BindMethods(Application);
pwr_dExport pwr_BindClasses(Base) = {
......@@ -94,6 +95,7 @@ pwr_dExport pwr_BindClasses(Base) = {
pwr_BindClass(PlcProcess),
pwr_BindClass(PlcThread),
pwr_BindClass(NodeConfig),
pwr_BindClass(SevNodeConfig),
pwr_BindClass(Application),
pwr_NullClass
};
......
......@@ -33,4 +33,5 @@ WebHandler
PlcProcess
PlcThread
NodeConfig
SevNodeConfig
Application
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment