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
91f9f52f
Commit
91f9f52f
authored
Sep 19, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QCom disable auto connect between nodes in a project (refs #117)
parent
29cae5c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
src/wbl/pwrb/src/pwrb_c_busconfig.wb_load
src/wbl/pwrb/src/pwrb_c_busconfig.wb_load
+11
-0
wb/lib/wb/src/wb_lfu.cpp
wb/lib/wb/src/wb_lfu.cpp
+11
-0
No files found.
src/wbl/pwrb/src/pwrb_c_busconfig.wb_load
View file @
91f9f52f
...
...
@@ -93,6 +93,17 @@ SObject pwrb:Class
Attr TypeRef = "pwrs:Type-$UInt32"
EndBody
EndObject
!/**
! Disable the QCom auto connect. The nodes in the project
! will not automatically create QCom links between each other.
! These links can be configured individually for each node with
! FriendNode objects.
!*/
Object QComAutoConnectDisable $Attribute 3
Body SysBody
Attr TypeRef = "pwrb:Type-YesNoEnum"
EndBody
EndObject
EndObject
EndObject
EndSObject
wb/lib/wb/src/wb_lfu.cpp
View file @
91f9f52f
...
...
@@ -702,6 +702,7 @@ pwr_tStatus lfu_SaveDirectoryVolume(
int
path_file_created
=
0
;
pwr_tString80
custom_platform
;
pwr_mOpSys
custom_os
;
pwr_tEnum
qcom_auto_dis
=
0
;
syntax_error
=
0
;
strcpy
(
null_nodename
,
"-"
);
...
...
@@ -1457,6 +1458,12 @@ pwr_tStatus lfu_SaveDirectoryVolume(
if
(
bus_number
==
0
)
continue
;
a
=
sp
->
attribute
(
buso
.
oid
(),
"RtBody"
,
"QComAutoConnectDisable"
);
if
(
!
a
)
return
a
.
sts
();
a
.
value
(
&
qcom_auto_dis
);
if
(
!
a
)
return
a
.
sts
();
// Get all nodeconfig and friendnodes for this bus
vector
<
lfu_nodeconf
>
nodevect
;
int
node_cnt
=
0
;
...
...
@@ -1685,6 +1692,10 @@ pwr_tStatus lfu_SaveDirectoryVolume(
for
(
int
i
=
0
;
i
<
(
int
)
nodevect
.
size
();
i
++
)
{
lfu_nodeconf
nc
=
nodevect
[
i
];
if
(
qcom_auto_dis
==
pwr_eYesNoEnum_Yes
&&
i
!=
idx
)
continue
;
fprintf
(
fp
,
"%s %s %s %d %d %d %d
\n
"
,
nc
.
nodename
,
cdh_VolumeIdToString
(
NULL
,
nc
.
vid
,
0
,
0
),
nc
.
address
,
nc
.
port
,
nc
.
connection
,
int
(
nc
.
qcom_min_resend_time
*
1000
),
...
...
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