Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
3cea4e45
Commit
3cea4e45
authored
Jun 02, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Template for appl-files created
parent
8e6512b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
2 deletions
+65
-2
wb/lib/wb/src/wb_lfu.cpp
wb/lib/wb/src/wb_lfu.cpp
+62
-1
wb/lib/wb/src/wb_lfu.h
wb/lib/wb/src/wb_lfu.h
+3
-1
No files found.
wb/lib/wb/src/wb_lfu.cpp
View file @
3cea4e45
/*
* Proview $Id: wb_lfu.cpp,v 1.1
4 2008-05-16 14:50:31
claes Exp $
* Proview $Id: wb_lfu.cpp,v 1.1
5 2008-06-02 14:57:07
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream.h>
#include <vector>
#if defined OS_VMS
...
...
@@ -1270,6 +1271,9 @@ pwr_tStatus lfu_SaveDirectoryVolume(
scantime
=
0
;
free
(
(
char
*
)
single_scan_ptr
);
lfu_check_appl_file
(
nodename_ptr
,
*
bus_number_ptr
);
/* Find the volumes in this node */
sts
=
ldh_GetChild
(
ldhses
,
nodeobjid
,
&
volobjid
);
while
(
ODD
(
sts
))
{
...
...
@@ -2606,5 +2610,62 @@ pwr_tStatus lfu_ParseDbmsServer( char *server, char *user, char *password,
return
LFU__SUCCESS
;
}
pwr_tStatus
lfu_check_appl_file
(
char
*
nodename
,
int
bus_number
)
{
pwr_tFileName
fname
;
pwr_tTime
t
;
sprintf
(
fname
,
load_cNameAppl
,
load_cDirectory
,
nodename
,
bus_number
);
dcli_translate_filename
(
fname
,
fname
);
if
(
ODD
(
dcli_file_time
(
fname
,
&
t
)))
return
LFU__SUCCESS
;
//strcat( fname, "_template");
//if ( ODD(dcli_file_time( fname, &t)))
// return LFU__SUCCESS;
// Create a template file
ofstream
fp
(
fname
);
if
(
!
fp
)
return
LFU__SUCCESS
;
fp
<<
"#"
<<
endl
<<
"# Startup processes for Proview."
<<
endl
<<
"#"
<<
endl
<<
"#"
<<
endl
<<
"# User applications"
<<
endl
<<
"# id, name, load/noload run/norun, file, prio, debug/nodebug,
\"
arg
\"
"
<<
endl
<<
"#myappl, myappl, noload, run, myappl, 12, nodebug,
\"\"
"
<<
endl
<<
"#"
<<
endl
<<
"# System processes"
<<
endl
<<
"# System processes can be disabled by removing the #"
<<
endl
<<
"#pwr_neth, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_plc, , noload, norun, , , debug,
\"\"
"
<<
endl
<<
"#pwr_alim, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_emon, , noload, norun, , 10, debug,
\"\"
"
<<
endl
<<
"#pwr_tmon, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_qmon, , noload, norun, , 19, debug,
\"\"
"
<<
endl
<<
"#pwr_nacp, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_bck, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_io, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_linksup, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_trend, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_fast, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_remh, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_remlog, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_elog, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_sysmon, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_webmon, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_webmonmh, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_webmonelog, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_opc_server, , noload, norun, , 5, debug,
\"\"
"
<<
endl
<<
"#pwr_statussrv, , noload, norun, , 5, debug,
\"\"
"
<<
endl
;
fp
.
close
();
return
LFU__SUCCESS
;
}
wb/lib/wb/src/wb_lfu.h
View file @
3cea4e45
/*
* Proview $Id: wb_lfu.h,v 1.
8 2008-02-04 13:34:49
claes Exp $
* Proview $Id: wb_lfu.h,v 1.
9 2008-06-02 14:57:07
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -134,6 +134,8 @@ pwr_tStatus lfu_GetVolumeCnf( char *name, pwr_tVid *vid, pwr_tCid *cid, ldh_eVol
pwr_tStatus
lfu_ParseDbmsServer
(
char
*
server
,
char
*
user
,
char
*
passw
,
unsigned
int
*
port
,
char
*
host
);
pwr_tStatus
lfu_check_appl_file
(
char
*
nodename
,
int
bus_number
);
#ifdef __cplusplus
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment