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
b66695a6
Commit
b66695a6
authored
Mar 08, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QCom put.allocate added
parent
91002187
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
40 additions
and
15 deletions
+40
-15
java/exe/jpwr_rt_gdh/src/jpwr_rt_qcom.c
java/exe/jpwr_rt_gdh/src/jpwr_rt_qcom.c
+1
-0
remote/exe/rs_remote_qcom/src/rs_remote_qcom.c
remote/exe/rs_remote_qcom/src/rs_remote_qcom.c
+1
-0
remote/lib/remote/src/remote_logg.c
remote/lib/remote/src/remote_logg.c
+1
-0
remote/lib/remote/src/remote_remtrans_utils.c
remote/lib/remote/src/remote_remtrans_utils.c
+1
-0
sev/exe/sev_ini/src/sev_ini.c
sev/exe/sev_ini/src/sev_ini.c
+1
-0
sev/exe/sev_server/src/sev_server.cpp
sev/exe/sev_server/src/sev_server.cpp
+7
-0
src/exe/rt_alimserver/src/rt_alimserver.c
src/exe/rt_alimserver/src/rt_alimserver.c
+1
-0
src/exe/rt_emon/src/rt_emon.c
src/exe/rt_emon/src/rt_emon.c
+5
-4
src/exe/rt_ini/src/rt_ini.c
src/exe/rt_ini/src/rt_ini.c
+14
-11
src/exe/rt_neth/src/rt_neth.c
src/exe/rt_neth/src/rt_neth.c
+1
-0
src/exe/rt_redcom/src/rt_redcom.c
src/exe/rt_redcom/src/rt_redcom.c
+1
-0
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
+5
-0
src/lib/rt/src/rt_mh_appl.c
src/lib/rt/src/rt_mh_appl.c
+1
-0
No files found.
java/exe/jpwr_rt_gdh/src/jpwr_rt_qcom.c
View file @
b66695a6
...
...
@@ -326,6 +326,7 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Qcom_putString
data
=
(
*
env
)
->
GetStringUTFChars
(
env
,
jdata
,
0
);
cstr
=
(
char
*
)
data
;
put
.
data
=
(
char
*
)
data
;
put
.
allocate
=
1
;
put
.
size
=
strlen
(
data
)
+
1
;
put
.
type
.
b
=
qcom_eBtype__
;
put
.
type
.
s
=
qcom_eStype__
;
...
...
remote/exe/rs_remote_qcom/src/rs_remote_qcom.c
View file @
b66695a6
...
...
@@ -174,6 +174,7 @@ unsigned int qcom_send(remnode_item *remnode,
memset
(
&
put
,
0
,
sizeof
(
put
));
put
.
data
=
buf
;
put
.
allocate
=
1
;
put
.
size
=
buf_size
;
put
.
type
.
b
=
remote_cMsgClass
;
put
.
type
.
s
=
remtrans
->
Address
[
0
];
...
...
remote/lib/remote/src/remote_logg.c
View file @
b66695a6
...
...
@@ -59,6 +59,7 @@ pwr_tStatus remote_logg( int identity, char *str, int size)
strncat
(
&
logmsg
[
4
],
str
,
size
+
1
);
put
.
data
=
logmsg
;
put
.
allocate
=
1
;
put
.
size
=
logsize
;
put
.
type
.
b
=
qcom_eBtype__
;
put
.
type
.
s
=
qcom_eStype__
;
...
...
remote/lib/remote/src/remote_remtrans_utils.c
View file @
b66695a6
...
...
@@ -209,6 +209,7 @@ void RemTrans_Logg(remtrans_item *remtrans)
/* Send to Logg-job */
put
.
data
=
dynp
;
put
.
allocate
=
1
;
put
.
size
=
size
;
put
.
type
.
b
=
qcom_eBtype__
;
put
.
type
.
s
=
qcom_eStype__
;
...
...
sev/exe/sev_ini/src/sev_ini.c
View file @
b66695a6
...
...
@@ -188,6 +188,7 @@ static pwr_tStatus stop (
put
.
reply
.
qix
=
0
;
put
.
reply
.
nid
=
0
;
put
.
data
=
data
;
put
.
allocate
=
1
;
put
.
size
=
sizeof
(
data
)
+
1
;
qcom_Put
(
&
sts
,
&
qid
,
&
put
);
...
...
sev/exe/sev_server/src/sev_server.cpp
View file @
b66695a6
...
...
@@ -219,6 +219,7 @@ int sev_server::connect()
msg
->
Type
=
sev_eMsgType_NodeUp
;
put
.
data
=
msg
;
put
.
allocate
=
0
;
if
(
!
qcom_Put
(
&
sts
,
&
tgt
,
&
put
))
{
qcom_Free
(
&
sts
,
put
.
data
);
...
...
@@ -253,6 +254,7 @@ int sev_server::request_items( pwr_tNid nid)
msg
->
Type
=
sev_eMsgType_HistItemsRequest
;
put
.
data
=
msg
;
put
.
allocate
=
0
;
if
(
!
qcom_Put
(
&
sts
,
&
tgt
,
&
put
))
{
qcom_Free
(
&
sts
,
put
.
data
);
...
...
@@ -286,6 +288,7 @@ int sev_server::send_itemlist( qcom_sQid tgt)
put
.
size
=
size
;
put
.
data
=
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
allocate
=
0
;
((
sev_sMsgHistItems
*
)
put
.
data
)
->
Type
=
sev_eMsgType_HistItems
;
...
...
@@ -341,6 +344,7 @@ int sev_server::send_server_status( qcom_sQid tgt)
put
.
size
=
sizeof
(
sev_sMsgServerStatus
);
put
.
data
=
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
allocate
=
0
;
((
sev_sMsgServerStatus
*
)
put
.
data
)
->
Type
=
sev_eMsgType_ServerStatus
;
...
...
@@ -376,6 +380,7 @@ int sev_server::delete_item( qcom_sQid tgt, sev_sMsgHistItemDelete *rmsg)
put
.
size
=
sizeof
(
sev_sMsgHistItemStatus
);
put
.
data
=
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
allocate
=
0
;
m_db
->
delete_item
(
&
sts
,
rmsg
->
Oid
,
rmsg
->
AName
);
...
...
@@ -809,6 +814,7 @@ int sev_server::send_histdata( qcom_sQid tgt, sev_sMsgHistDataGetRequest *rmsg,
msg
=
(
sev_sMsgHistDataGet
*
)
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
data
=
msg
;
put
.
allocate
=
0
;
msg
->
Type
=
sev_eMsgType_HistDataGet
;
msg
->
Oid
=
rmsg
->
Oid
;
...
...
@@ -867,6 +873,7 @@ int sev_server::send_objecthistdata( qcom_sQid tgt, sev_sMsgHistDataGetRequest *
msg
=
(
sev_sMsgHistObjectDataGet
*
)
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
data
=
msg
;
put
.
allocate
=
0
;
msg
->
Type
=
sev_eMsgType_HistObjectDataGet
;
msg
->
Oid
=
rmsg
->
Oid
;
...
...
src/exe/rt_alimserver/src/rt_alimserver.c
View file @
b66695a6
...
...
@@ -346,6 +346,7 @@ int main (int argc, char **argv)
put
.
type
.
s
=
alimsrv_eSubType_Answer
;
put
.
reply
=
myQId
;
put
.
data
=
(
char
*
)
bp
;
put
.
allocate
=
1
;
put
.
size
=
size
;
if
(
!
qcom_Reply
(
&
sts
,
&
get
,
&
put
))
...
...
src/exe/rt_emon/src/rt_emon.c
View file @
b66695a6
...
...
@@ -1060,6 +1060,7 @@ applReply (
put
.
type
.
s
=
mh_eMsg_ApplReply
;
put
.
reply
=
l
.
head
.
qid
;
put
.
size
=
size
;
put
.
allocate
=
0
;
qcom_Reply
(
&
sts
,
get
,
&
put
);
if
(
EVEN
(
sts
))
{
...
...
@@ -1218,7 +1219,7 @@ aSup_exec (
if
(
!
o
->
Action
)
{
o
->
Action
=
TRUE
;
}
if
(
o
->
Supressed
)
{
if
(
o
->
Sup
p
ressed
)
{
if
(
o
->
ReturnCheck
)
{
time_GetTime
(
&
o
->
ReturnTime
);
o
->
ReturnCheck
=
FALSE
;
...
...
@@ -1227,7 +1228,7 @@ aSup_exec (
else
if
(
o
->
DetectSend
)
o
->
DetectSend
=
FALSE
;
}
if
(
o
->
AlarmCheck
&&
o
->
DetectOn
&&
!
o
->
Blocked
&&
!
o
->
Supressed
)
{
if
(
o
->
AlarmCheck
&&
o
->
DetectOn
&&
!
o
->
Blocked
&&
!
o
->
Sup
p
ressed
)
{
if
(
o
->
DetectCheck
)
{
o
->
ActualValue
=
In
;
timerIn
(
sp
,
(
sTimer
*
)
&
o
->
TimerFlag
);
...
...
@@ -1514,7 +1515,7 @@ dSup_exec (
if
(
!
o
->
Action
)
{
o
->
Action
=
TRUE
;
}
if
(
o
->
Supressed
)
{
if
(
o
->
Sup
p
ressed
)
{
if
(
o
->
ReturnCheck
)
{
time_GetTime
(
&
o
->
ReturnTime
);
o
->
ReturnCheck
=
FALSE
;
...
...
@@ -1523,7 +1524,7 @@ dSup_exec (
else
if
(
o
->
DetectSend
)
o
->
DetectSend
=
FALSE
;
}
if
(
o
->
AlarmCheck
&&
o
->
DetectOn
&&
!
o
->
Blocked
&&
!
o
->
Supressed
)
{
if
(
o
->
AlarmCheck
&&
o
->
DetectOn
&&
!
o
->
Blocked
&&
!
o
->
Sup
p
ressed
)
{
if
(
o
->
DetectCheck
)
{
o
->
ActualValue
=
In
;
timerIn
(
sp
,
(
sTimer
*
)
&
o
->
TimerFlag
);
...
...
src/exe/rt_ini/src/rt_ini.c
View file @
b66695a6
...
...
@@ -313,11 +313,13 @@ interactive (
qid
.
qix
=
550715
;
qid
.
nid
=
0
;
put
.
type
.
b
=
10
;
put
.
type
.
s
=
1
;
put
.
reply
=
cp
->
myQ
;
put
.
data
=
bp
;
put
.
size
=
totlen
;
put
.
type
.
b
=
10
;
put
.
type
.
s
=
1
;
put
.
reply
=
cp
->
myQ
;
put
.
data
=
bp
;
put
.
size
=
totlen
;
put
.
allocate
=
1
;
qcom_Put
(
&
sts
,
&
qid
,
&
put
);
while
(
1
)
{
...
...
@@ -382,12 +384,13 @@ stop (
qid
.
qix
=
550715
;
qid
.
nid
=
0
;
put
.
type
.
b
=
11
;
put
.
type
.
s
=
1
;
put
.
reply
.
qix
=
0
;
put
.
reply
.
nid
=
0
;
put
.
data
=
data
;
put
.
size
=
sizeof
(
data
)
+
1
;
put
.
type
.
b
=
11
;
put
.
type
.
s
=
1
;
put
.
reply
.
qix
=
0
;
put
.
reply
.
nid
=
0
;
put
.
data
=
data
;
put
.
size
=
sizeof
(
data
)
+
1
;
put
.
allocate
=
1
;
qcom_Put
(
&
sts
,
&
qid
,
&
put
);
// while (1) {
...
...
src/exe/rt_neth/src/rt_neth.c
View file @
b66695a6
...
...
@@ -864,6 +864,7 @@ nodeUp (
put
.
type
.
s
=
net_eMsg_nodeUp
;
put
.
reply
=
qcom_cNQid
;
put
.
data
=
(
char
*
)
&
nu
;
put
.
allocate
=
1
;
put
.
size
=
sizeof
(
nu
);
qcom_Put
(
&
sts
,
&
qcom_cQnacp
,
&
put
);
...
...
src/exe/rt_redcom/src/rt_redcom.c
View file @
b66695a6
...
...
@@ -2620,6 +2620,7 @@ void send_state_change()
}
put
.
size
=
4
;
put
.
data
=
qcom_Alloc
(
&
sts
,
put
.
size
);
put
.
allocate
=
0
;
qcom_Put
(
&
sts
,
&
qmon_qid
,
&
put
);
...
...
src/exe/rt_sevhistmon/src/rt_sevhistmon.cpp
View file @
b66695a6
...
...
@@ -666,6 +666,7 @@ int rt_sevhistmon::send_data()
put
.
size
=
msize
;
put
.
data
=
msg
;
put
.
allocate
=
0
;
msg
->
Type
=
sev_eMsgType_HistDataStore
;
time_GetTime
(
&
current_time
);
...
...
@@ -813,6 +814,7 @@ bool rt_sevhistmon::send_connect( pwr_tNid nid, pwr_tStatus *sts)
put
.
size
=
sizeof
(
*
msg
);
msg
=
(
sev_sMsgAny
*
)
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
data
=
msg
;
put
.
allocate
=
0
;
msg
->
Type
=
sev_eMsgType_NodeUp
;
...
...
@@ -864,6 +866,7 @@ bool rt_sevhistmon::send_server_status_request( pwr_tNid nid, pwr_tStatus *sts)
put
.
size
=
sizeof
(
*
msg
);
msg
=
(
sev_sMsgAny
*
)
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
data
=
msg
;
put
.
allocate
=
0
;
msg
->
Type
=
sev_eMsgType_NodeUp
;
...
...
@@ -940,6 +943,7 @@ int rt_sevhistmon::send_itemlist( pwr_tNid nid)
put
.
size
=
size
;
put
.
data
=
qcom_Alloc
(
&
lsts
,
put
.
size
);
put
.
allocate
=
0
;
((
sev_sMsgHistItems
*
)
put
.
data
)
->
Type
=
sev_eMsgType_HistItems
;
((
sev_sMsgHistItems
*
)
put
.
data
)
->
Status
=
SEV__SUCCESS
;
...
...
@@ -1262,6 +1266,7 @@ void sev_sevhistevents::evbuf_send()
put
.
size
=
sizeof
(
sev_sMsgEventsStore
)
+
(
num
-
1
)
*
sizeof
(
sev_sEvent
);
put
.
data
=
qcom_Alloc
(
&
sts
,
put
.
size
);
put
.
allocate
=
0
;
((
sev_sMsgEventsStore
*
)
put
.
data
)
->
Type
=
sev_eMsgType_EventsStore
;
((
sev_sMsgEventsStore
*
)
put
.
data
)
->
Oid
=
monitor
->
m_sevhistevents
->
hs_oid
;
...
...
src/lib/rt/src/rt_mh_appl.c
View file @
b66695a6
...
...
@@ -375,6 +375,7 @@ sendAndReceive (
put
.
reply
.
qix
=
0
;
put
.
reply
.
nid
=
0
;
put
.
size
=
size
;
put
.
allocate
=
0
;
get
.
data
=
NULL
;
...
...
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