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
Hide 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)
case
mh_eMsg_OutunitHello
:
break
;
case
mh_eMsg_OutunitInfo
:
if
(
!
xdr_mh_sOutunitInfo
(
xdrs
,
hp
+
1
))
if
(
!
xdr_mh_sOutunitInfo
(
xdrs
,
(
mh_sOutunitInfo
*
)(
hp
+
1
)
))
return
MH__XDRFAILED
;
break
;
case
mh_eMsg_OutunitSync
:
...
...
src/lib/rt/src/rt_mh_net.x
View file @
6836cdbd
...
...
@@ -257,13 +257,10 @@ struct mh_sDSupInfo {
%};
%
%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
%bool_t
%xdr_mh_uSupInfo(xdrs, objp)
% XDR *xdrs;
% mh_uSupInfo *objp;
%bool_t xdr_mh_uSupInfo(XDR *xdrs, mh_uSupInfo *objp)
%{
% int SupType;
%
...
...
@@ -410,14 +407,11 @@ struct mh_sOutunitAlarmReq {
%};
%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
%
%bool_t
%xdr_mh_sOutunitInfo(xdrs, op)
% XDR *xdrs;
% mh_sOutunitInfo *op;
%bool_t xdr_mh_sOutunitInfo(XDR *xdrs, mh_sOutunitInfo *op)
%{
% int selSize;
% int i;
...
...
@@ -492,15 +486,11 @@ struct mh_sAlarmSts {
% mh_sAlarmSts Sts[1]; /* Specifications (dynamic) */
%} mh_sAlarmStatus;
%
%bool_t
%xdr_mh_sAlarmStatus();
%bool_t xdr_mh_sAlarmStatus(XDR *xdrs, mh_sAlarmStatus *objp);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_mh_sAlarmStatus(xdrs, objp)
% XDR *xdrs;
% mh_sAlarmStatus *objp;
%bool_t xdr_mh_sAlarmStatus(XDR *xdrs, mh_sAlarmStatus *objp)
%{
% int count;
%
...
...
src/lib/rt/src/rt_net.c
View file @
6836cdbd
...
...
@@ -174,7 +174,7 @@ static pwr_tBoolean ConvertPut(
*/
if
(
put
->
type
.
s
==
(
qcom_eStype
)
net_eMsg_volumes7
)
{
put
->
type
.
s
=
net_eMsg_volumes
;
fXdr
=
xdr_net_sVolumes7
;
fXdr
=
(
tFuncXdr
)
xdr_net_sVolumes7
;
}
else
{
if
((
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)
if
(
netver
==
7
)
{
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 {
% net_sSubSpec spec[1]; /* Specifications (dynamic) */
%} net_sSubAdd;
%
%bool_t
%xdr_net_sSubAdd();
%bool_t xdr_net_sSubAdd(XDR *xdrs, net_sSubAdd *objp);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sSubAdd(xdrs, objp)
% XDR *xdrs;
% net_sSubAdd *objp;
%bool_t xdr_net_sSubAdd(XDR *xdrs, net_sSubAdd *objp)
%{
% int count;
%
...
...
@@ -336,15 +332,11 @@ struct net_sSubSpec {
% pwr_tSubid sid[1] pwr_dPacked; /* Subscription to remove */
%} net_sSubRemove;
%
%bool_t
%xdr_net_sSubRemove();
%bool_t xdr_net_sSubRemove(XDR *xdrs, net_sSubRemove *objp);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sSubRemove(xdrs, objp)
% XDR *xdrs;
% net_sSubRemove *objp;
%bool_t xdr_net_sSubRemove(XDR *xdrs, net_sSubRemove *objp)
%{
% int count;
%
...
...
@@ -376,15 +368,11 @@ struct net_sSubSpec {
% pwr_tUInt32 size pwr_dPacked; /* Size of data */
% char data[1]; /* Dynamic */
%} net_sSubData;
%bool_t xdr_net_sSubData();
%bool_t xdr_net_sSubData(
XDR *xdrs, net_sSubData *objp, int *offset
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sSubData(xdrs, objp, offset)
% XDR *xdrs;
% net_sSubData *objp;
% int *offset;
%bool_t xdr_net_sSubData(XDR *xdrs, net_sSubData *objp, int *offset)
%{
% int size;
%
...
...
@@ -423,14 +411,11 @@ struct net_sSubSpec {
% net_sSubData subdata[1]; /* Dynamic */
%} net_sSubMessage;
%
%bool_t xdr_net_sSubMessage();
%bool_t xdr_net_sSubMessage(
XDR *xdrs, net_sSubMessage *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sSubMessage(xdrs, objp)
% XDR *xdrs;
% net_sSubMessage *objp;
%bool_t xdr_net_sSubMessage(XDR *xdrs, net_sSubMessage *objp)
%{
% int count;
% int offset;
...
...
@@ -472,14 +457,11 @@ struct net_sSanEntry {
% net_sSanEntry sane[1] pwr_dPacked;
%} net_sSanAdd;
%
%bool_t xdr_net_sSanAdd();
%bool_t xdr_net_sSanAdd(
XDR *xdrs, net_sSanAdd *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sSanAdd(xdrs, objp)
% XDR *xdrs;
% net_sSanAdd *objp;
%bool_t xdr_net_sSanAdd(XDR *xdrs, net_sSanAdd *objp)
%{
% int count;
%
...
...
@@ -516,13 +498,10 @@ struct net_sSanEntry {
% pwr_tSubid sid[1] pwr_dPacked; /* Subscriptions to remove (dynamic) */
%} net_sSanRemove;
%
%bool_t xdr_net_sSanRemove();
%bool_t xdr_net_sSanRemove(
XDR *xdrs, net_sSanRemove *objp
);
%
#elif defined RPC_XDR
%bool_t
%xdr_net_sSanRemove(xdrs, objp)
% XDR *xdrs;
% net_sSanRemove *objp;
%bool_t xdr_net_sSanRemove(XDR *xdrs, net_sSanRemove *objp)
%{
% int count;
%
...
...
@@ -571,12 +550,9 @@ struct net_sSanData {
% net_sSanData data[1] pwr_dPacked; /* Dynamic */
%} net_sSanUpdate;
%
%bool_t xdr_net_sSanUpdate();
%bool_t xdr_net_sSanUpdate(
XDR *xdrs, net_sSanUpdate *objp
);
#elif defined RPC_XDR
%bool_t
%xdr_net_sSanUpdate(xdrs, objp)
% XDR *xdrs;
% net_sSanUpdate *objp;
%bool_t xdr_net_sSanUpdate(XDR *xdrs, net_sSanUpdate *objp)
%{
% int count;
%
...
...
@@ -611,12 +587,9 @@ struct net_sSanData {
% char name[1]; /* name buffer */
%} net_sNameToObject;
%
%bool_t xdr_net_sNameToObject();
%bool_t xdr_net_sNameToObject(
XDR *xdrs, net_sNameToObject *objp
);
#elif defined RPC_XDR
%bool_t
%xdr_net_sNameToObject(xdrs, objp)
% XDR *xdrs;
% net_sNameToObject *objp;
%bool_t xdr_net_sNameToObject(XDR *xdrs, net_sNameToObject *objp)
%{
% int len;
%
...
...
@@ -732,14 +705,11 @@ struct net_sGobject {
% net_sGobject g[1] pwr_dPacked; /* Array of object headers */
%} net_sObjectR;
%
%bool_t xdr_net_sObjectR();
%bool_t xdr_net_sObjectR(
XDR *xdrs, net_sObjectR *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sObjectR(xdrs, objp)
% XDR *xdrs;
% net_sObjectR *objp;
%bool_t xdr_net_sObjectR(XDR *xdrs, net_sObjectR *objp)
%{
% int count;
%
...
...
@@ -783,14 +753,11 @@ struct net_sGetObjectInfo {
% char info[1]; /* Data requested. */
%} net_sGetObjectInfoR;
%
%bool_t xdr_net_sGetObjectInfoR();
%bool_t xdr_net_sGetObjectInfoR(
XDR *xdrs, net_sGetObjectInfoR *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sGetObjectInfoR(xdrs, objp)
% XDR *xdrs;
% net_sGetObjectInfoR *objp;
%bool_t xdr_net_sGetObjectInfoR(XDR *xdrs, net_sGetObjectInfoR *objp)
%{
% int size;
%
...
...
@@ -828,14 +795,11 @@ struct net_sGetObjectInfo {
% char info[1]; /* Data to write (size bytes) */
%} net_sSetObjectInfo;
%
%bool_t xdr_net_sSetObjectInfo();
%bool_t xdr_net_sSetObjectInfo(
XDR *xdrs, net_sSetObjectInfo *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sSetObjectInfo(xdrs, objp)
% XDR *xdrs;
% net_sSetObjectInfo *objp;
%bool_t xdr_net_sSetObjectInfo(XDR *xdrs, net_sSetObjectInfo *objp)
%{
% int size;
%
...
...
@@ -954,7 +918,7 @@ struct net_sGvolume7 {
% net_sGvolume g[1] pwr_dPacked; /* Array of volume headers */
%} net_sVolumes;
%
%bool_t xdr_net_sVolumes();
%bool_t xdr_net_sVolumes(
XDR *xdrs, net_sVolumes *objp
);
%
%typedef struct {
% net_sMessage hdr pwr_dPacked; /* Header */
...
...
@@ -963,14 +927,11 @@ struct net_sGvolume7 {
% net_sGvolume7 g[1] pwr_dPacked; /* Array of volume headers */
%} net_sVolumes7;
%
%bool_t xdr_net_sVolumes7();
%bool_t xdr_net_sVolumes7(
XDR *xdrs, net_sVolumes7 *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sVolumes(xdrs, objp)
% XDR *xdrs;
% net_sVolumes *objp;
%bool_t xdr_net_sVolumes(XDR *xdrs, net_sVolumes *objp)
%{
% int count;
%
...
...
@@ -995,10 +956,7 @@ struct net_sGvolume7 {
%}
%
%
%bool_t
%xdr_net_sVolumes7(xdrs, objp)
% XDR *xdrs;
% net_sVolumes *objp;
%bool_t xdr_net_sVolumes7(XDR *xdrs, net_sVolumes7 *objp)
%{
% int count;
%
...
...
@@ -1035,14 +993,11 @@ struct net_sMount {
% net_sMount mount[1] pwr_dPacked;/* Array of mount requests */
%} net_sVolumesR;
%
%bool_t xdr_net_sVolumesR();
%bool_t xdr_net_sVolumesR(
XDR *xdrs, net_sVolumesR *objp
);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sVolumesR(xdrs, objp)
% XDR *xdrs;
% net_sVolumesR *objp;
%bool_t xdr_net_sVolumesR(XDR *xdrs, net_sVolumesR *objp)
%{
% 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