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
6836cdbd
Commit
6836cdbd
authored
Oct 17, 2019
by
Claes Sjofors
Committed by
Claes Sjöfors
Mar 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xdr function prototypes corrected
parent
147a070b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
92 deletions
+37
-92
src/lib/rt/src/rt_mh_net.c
src/lib/rt/src/rt_mh_net.c
+1
-1
src/lib/rt/src/rt_mh_net.x
src/lib/rt/src/rt_mh_net.x
+6
-16
src/lib/rt/src/rt_net.c
src/lib/rt/src/rt_net.c
+2
-2
src/lib/rt/src/rt_net.x
src/lib/rt/src/rt_net.x
+28
-73
No files found.
src/lib/rt/src/rt_mh_net.c
View file @
6836cdbd
...
@@ -111,7 +111,7 @@ pwr_tStatus mh_NetXdrMessage(XDR* xdrs, int subtype, mh_sHead* hp)
...
@@ -111,7 +111,7 @@ pwr_tStatus mh_NetXdrMessage(XDR* xdrs, int subtype, mh_sHead* hp)
case
mh_eMsg_OutunitHello
:
case
mh_eMsg_OutunitHello
:
break
;
break
;
case
mh_eMsg_OutunitInfo
:
case
mh_eMsg_OutunitInfo
:
if
(
!
xdr_mh_sOutunitInfo
(
xdrs
,
hp
+
1
))
if
(
!
xdr_mh_sOutunitInfo
(
xdrs
,
(
mh_sOutunitInfo
*
)(
hp
+
1
)
))
return
MH__XDRFAILED
;
return
MH__XDRFAILED
;
break
;
break
;
case
mh_eMsg_OutunitSync
:
case
mh_eMsg_OutunitSync
:
...
...
src/lib/rt/src/rt_mh_net.x
View file @
6836cdbd
...
@@ -257,13 +257,10 @@ struct mh_sDSupInfo {
...
@@ -257,13 +257,10 @@ struct mh_sDSupInfo {
%};
%};
%
%
%typedef struct mh_uSupInfo mh_uSupInfo;
%typedef struct mh_uSupInfo mh_uSupInfo;
%bool_t xdr_mh_uSupInfo();
%bool_t xdr_mh_uSupInfo(
XDR *xdrs, mh_uSupInfo *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%bool_t
%bool_t xdr_mh_uSupInfo(XDR *xdrs, mh_uSupInfo *objp)
%xdr_mh_uSupInfo(xdrs, objp)
% XDR *xdrs;
% mh_uSupInfo *objp;
%{
%{
% int SupType;
% int SupType;
%
%
...
@@ -410,14 +407,11 @@ struct mh_sOutunitAlarmReq {
...
@@ -410,14 +407,11 @@ struct mh_sOutunitAlarmReq {
%};
%};
%typedef struct mh_sOutunitInfo mh_sOutunitInfo;
%typedef struct mh_sOutunitInfo mh_sOutunitInfo;
%
%
%bool_t xdr_mh_sOutunitInfo();
%bool_t xdr_mh_sOutunitInfo(
XDR *xdrs, mh_sOutunitInfo *op
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_mh_sOutunitInfo(XDR *xdrs, mh_sOutunitInfo *op)
%xdr_mh_sOutunitInfo(xdrs, op)
% XDR *xdrs;
% mh_sOutunitInfo *op;
%{
%{
% int selSize;
% int selSize;
% int i;
% int i;
...
@@ -492,15 +486,11 @@ struct mh_sAlarmSts {
...
@@ -492,15 +486,11 @@ struct mh_sAlarmSts {
% mh_sAlarmSts Sts[1]; /* Specifications (dynamic) */
% mh_sAlarmSts Sts[1]; /* Specifications (dynamic) */
%} mh_sAlarmStatus;
%} mh_sAlarmStatus;
%
%
%bool_t
%bool_t xdr_mh_sAlarmStatus(XDR *xdrs, mh_sAlarmStatus *objp);
%xdr_mh_sAlarmStatus();
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_mh_sAlarmStatus(XDR *xdrs, mh_sAlarmStatus *objp)
%xdr_mh_sAlarmStatus(xdrs, objp)
% XDR *xdrs;
% mh_sAlarmStatus *objp;
%{
%{
% int count;
% int count;
%
%
...
...
src/lib/rt/src/rt_net.c
View file @
6836cdbd
...
@@ -174,7 +174,7 @@ static pwr_tBoolean ConvertPut(
...
@@ -174,7 +174,7 @@ static pwr_tBoolean ConvertPut(
*/
*/
if
(
put
->
type
.
s
==
(
qcom_eStype
)
net_eMsg_volumes7
)
{
if
(
put
->
type
.
s
==
(
qcom_eStype
)
net_eMsg_volumes7
)
{
put
->
type
.
s
=
net_eMsg_volumes
;
put
->
type
.
s
=
net_eMsg_volumes
;
fXdr
=
xdr_net_sVolumes7
;
fXdr
=
(
tFuncXdr
)
xdr_net_sVolumes7
;
}
else
{
}
else
{
if
((
int
)
put
->
type
.
s
<=
(
int
)
net_eMsg__
if
((
int
)
put
->
type
.
s
<=
(
int
)
net_eMsg__
||
(
int
)
put
->
type
.
s
>=
(
int
)
net_eMsg_
)
||
(
int
)
put
->
type
.
s
>=
(
int
)
net_eMsg_
)
...
@@ -228,7 +228,7 @@ static pwr_tBoolean ConvertGet(pwr_tStatus* sts, qcom_sGet* get, void* data)
...
@@ -228,7 +228,7 @@ static pwr_tBoolean ConvertGet(pwr_tStatus* sts, qcom_sGet* get, void* data)
if
(
netver
==
7
)
{
if
(
netver
==
7
)
{
get
->
type
.
s
=
net_eMsg_volumes7
;
get
->
type
.
s
=
net_eMsg_volumes7
;
fXdr
=
xdr_net_sVolumes7
;
fXdr
=
(
tFuncXdr
)
xdr_net_sVolumes7
;
}
}
}
}
...
...
src/lib/rt/src/rt_net.x
View file @
6836cdbd
...
@@ -294,15 +294,11 @@ struct net_sSubSpec {
...
@@ -294,15 +294,11 @@ struct net_sSubSpec {
% net_sSubSpec spec[1]; /* Specifications (dynamic) */
% net_sSubSpec spec[1]; /* Specifications (dynamic) */
%} net_sSubAdd;
%} net_sSubAdd;
%
%
%bool_t
%bool_t xdr_net_sSubAdd(XDR *xdrs, net_sSubAdd *objp);
%xdr_net_sSubAdd();
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sSubAdd(XDR *xdrs, net_sSubAdd *objp)
%xdr_net_sSubAdd(xdrs, objp)
% XDR *xdrs;
% net_sSubAdd *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -336,15 +332,11 @@ struct net_sSubSpec {
...
@@ -336,15 +332,11 @@ struct net_sSubSpec {
% pwr_tSubid sid[1] pwr_dPacked; /* Subscription to remove */
% pwr_tSubid sid[1] pwr_dPacked; /* Subscription to remove */
%} net_sSubRemove;
%} net_sSubRemove;
%
%
%bool_t
%bool_t xdr_net_sSubRemove(XDR *xdrs, net_sSubRemove *objp);
%xdr_net_sSubRemove();
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sSubRemove(XDR *xdrs, net_sSubRemove *objp)
%xdr_net_sSubRemove(xdrs, objp)
% XDR *xdrs;
% net_sSubRemove *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -376,15 +368,11 @@ struct net_sSubSpec {
...
@@ -376,15 +368,11 @@ struct net_sSubSpec {
% pwr_tUInt32 size pwr_dPacked; /* Size of data */
% pwr_tUInt32 size pwr_dPacked; /* Size of data */
% char data[1]; /* Dynamic */
% char data[1]; /* Dynamic */
%} net_sSubData;
%} net_sSubData;
%bool_t xdr_net_sSubData();
%bool_t xdr_net_sSubData(
XDR *xdrs, net_sSubData *objp, int *offset
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sSubData(XDR *xdrs, net_sSubData *objp, int *offset)
%xdr_net_sSubData(xdrs, objp, offset)
% XDR *xdrs;
% net_sSubData *objp;
% int *offset;
%{
%{
% int size;
% int size;
%
%
...
@@ -423,14 +411,11 @@ struct net_sSubSpec {
...
@@ -423,14 +411,11 @@ struct net_sSubSpec {
% net_sSubData subdata[1]; /* Dynamic */
% net_sSubData subdata[1]; /* Dynamic */
%} net_sSubMessage;
%} net_sSubMessage;
%
%
%bool_t xdr_net_sSubMessage();
%bool_t xdr_net_sSubMessage(
XDR *xdrs, net_sSubMessage *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sSubMessage(XDR *xdrs, net_sSubMessage *objp)
%xdr_net_sSubMessage(xdrs, objp)
% XDR *xdrs;
% net_sSubMessage *objp;
%{
%{
% int count;
% int count;
% int offset;
% int offset;
...
@@ -472,14 +457,11 @@ struct net_sSanEntry {
...
@@ -472,14 +457,11 @@ struct net_sSanEntry {
% net_sSanEntry sane[1] pwr_dPacked;
% net_sSanEntry sane[1] pwr_dPacked;
%} net_sSanAdd;
%} net_sSanAdd;
%
%
%bool_t xdr_net_sSanAdd();
%bool_t xdr_net_sSanAdd(
XDR *xdrs, net_sSanAdd *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sSanAdd(XDR *xdrs, net_sSanAdd *objp)
%xdr_net_sSanAdd(xdrs, objp)
% XDR *xdrs;
% net_sSanAdd *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -516,13 +498,10 @@ struct net_sSanEntry {
...
@@ -516,13 +498,10 @@ struct net_sSanEntry {
% pwr_tSubid sid[1] pwr_dPacked; /* Subscriptions to remove (dynamic) */
% pwr_tSubid sid[1] pwr_dPacked; /* Subscriptions to remove (dynamic) */
%} net_sSanRemove;
%} net_sSanRemove;
%
%
%bool_t xdr_net_sSanRemove();
%bool_t xdr_net_sSanRemove(
XDR *xdrs, net_sSanRemove *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%bool_t
%bool_t xdr_net_sSanRemove(XDR *xdrs, net_sSanRemove *objp)
%xdr_net_sSanRemove(xdrs, objp)
% XDR *xdrs;
% net_sSanRemove *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -571,12 +550,9 @@ struct net_sSanData {
...
@@ -571,12 +550,9 @@ struct net_sSanData {
% net_sSanData data[1] pwr_dPacked; /* Dynamic */
% net_sSanData data[1] pwr_dPacked; /* Dynamic */
%} net_sSanUpdate;
%} net_sSanUpdate;
%
%
%bool_t xdr_net_sSanUpdate();
%bool_t xdr_net_sSanUpdate(
XDR *xdrs, net_sSanUpdate *objp
);
#elif defined RPC_XDR
#elif defined RPC_XDR
%bool_t
%bool_t xdr_net_sSanUpdate(XDR *xdrs, net_sSanUpdate *objp)
%xdr_net_sSanUpdate(xdrs, objp)
% XDR *xdrs;
% net_sSanUpdate *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -611,12 +587,9 @@ struct net_sSanData {
...
@@ -611,12 +587,9 @@ struct net_sSanData {
% char name[1]; /* name buffer */
% char name[1]; /* name buffer */
%} net_sNameToObject;
%} net_sNameToObject;
%
%
%bool_t xdr_net_sNameToObject();
%bool_t xdr_net_sNameToObject(
XDR *xdrs, net_sNameToObject *objp
);
#elif defined RPC_XDR
#elif defined RPC_XDR
%bool_t
%bool_t xdr_net_sNameToObject(XDR *xdrs, net_sNameToObject *objp)
%xdr_net_sNameToObject(xdrs, objp)
% XDR *xdrs;
% net_sNameToObject *objp;
%{
%{
% int len;
% int len;
%
%
...
@@ -732,14 +705,11 @@ struct net_sGobject {
...
@@ -732,14 +705,11 @@ struct net_sGobject {
% net_sGobject g[1] pwr_dPacked; /* Array of object headers */
% net_sGobject g[1] pwr_dPacked; /* Array of object headers */
%} net_sObjectR;
%} net_sObjectR;
%
%
%bool_t xdr_net_sObjectR();
%bool_t xdr_net_sObjectR(
XDR *xdrs, net_sObjectR *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sObjectR(XDR *xdrs, net_sObjectR *objp)
%xdr_net_sObjectR(xdrs, objp)
% XDR *xdrs;
% net_sObjectR *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -783,14 +753,11 @@ struct net_sGetObjectInfo {
...
@@ -783,14 +753,11 @@ struct net_sGetObjectInfo {
% char info[1]; /* Data requested. */
% char info[1]; /* Data requested. */
%} net_sGetObjectInfoR;
%} net_sGetObjectInfoR;
%
%
%bool_t xdr_net_sGetObjectInfoR();
%bool_t xdr_net_sGetObjectInfoR(
XDR *xdrs, net_sGetObjectInfoR *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sGetObjectInfoR(XDR *xdrs, net_sGetObjectInfoR *objp)
%xdr_net_sGetObjectInfoR(xdrs, objp)
% XDR *xdrs;
% net_sGetObjectInfoR *objp;
%{
%{
% int size;
% int size;
%
%
...
@@ -828,14 +795,11 @@ struct net_sGetObjectInfo {
...
@@ -828,14 +795,11 @@ struct net_sGetObjectInfo {
% char info[1]; /* Data to write (size bytes) */
% char info[1]; /* Data to write (size bytes) */
%} net_sSetObjectInfo;
%} net_sSetObjectInfo;
%
%
%bool_t xdr_net_sSetObjectInfo();
%bool_t xdr_net_sSetObjectInfo(
XDR *xdrs, net_sSetObjectInfo *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sSetObjectInfo(XDR *xdrs, net_sSetObjectInfo *objp)
%xdr_net_sSetObjectInfo(xdrs, objp)
% XDR *xdrs;
% net_sSetObjectInfo *objp;
%{
%{
% int size;
% int size;
%
%
...
@@ -954,7 +918,7 @@ struct net_sGvolume7 {
...
@@ -954,7 +918,7 @@ struct net_sGvolume7 {
% net_sGvolume g[1] pwr_dPacked; /* Array of volume headers */
% net_sGvolume g[1] pwr_dPacked; /* Array of volume headers */
%} net_sVolumes;
%} net_sVolumes;
%
%
%bool_t xdr_net_sVolumes();
%bool_t xdr_net_sVolumes(
XDR *xdrs, net_sVolumes *objp
);
%
%
%typedef struct {
%typedef struct {
% net_sMessage hdr pwr_dPacked; /* Header */
% net_sMessage hdr pwr_dPacked; /* Header */
...
@@ -963,14 +927,11 @@ struct net_sGvolume7 {
...
@@ -963,14 +927,11 @@ struct net_sGvolume7 {
% net_sGvolume7 g[1] pwr_dPacked; /* Array of volume headers */
% net_sGvolume7 g[1] pwr_dPacked; /* Array of volume headers */
%} net_sVolumes7;
%} net_sVolumes7;
%
%
%bool_t xdr_net_sVolumes7();
%bool_t xdr_net_sVolumes7(
XDR *xdrs, net_sVolumes7 *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sVolumes(XDR *xdrs, net_sVolumes *objp)
%xdr_net_sVolumes(xdrs, objp)
% XDR *xdrs;
% net_sVolumes *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -995,10 +956,7 @@ struct net_sGvolume7 {
...
@@ -995,10 +956,7 @@ struct net_sGvolume7 {
%}
%}
%
%
%
%
%bool_t
%bool_t xdr_net_sVolumes7(XDR *xdrs, net_sVolumes7 *objp)
%xdr_net_sVolumes7(xdrs, objp)
% XDR *xdrs;
% net_sVolumes *objp;
%{
%{
% int count;
% int count;
%
%
...
@@ -1035,14 +993,11 @@ struct net_sMount {
...
@@ -1035,14 +993,11 @@ struct net_sMount {
% net_sMount mount[1] pwr_dPacked;/* Array of mount requests */
% net_sMount mount[1] pwr_dPacked;/* Array of mount requests */
%} net_sVolumesR;
%} net_sVolumesR;
%
%
%bool_t xdr_net_sVolumesR();
%bool_t xdr_net_sVolumesR(
XDR *xdrs, net_sVolumesR *objp
);
%
%
#elif defined RPC_XDR
#elif defined RPC_XDR
%
%
%bool_t
%bool_t xdr_net_sVolumesR(XDR *xdrs, net_sVolumesR *objp)
%xdr_net_sVolumesR(xdrs, objp)
% XDR *xdrs;
% net_sVolumesR *objp;
%{
%{
% int count;
% int count;
%
%
...
...
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