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
7f3a3efe
Commit
7f3a3efe
authored
Jun 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Messages fileList and fileListR added
parent
9430dfb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
1 deletion
+74
-1
src/lib/rt/src/rt_net.x
src/lib/rt/src/rt_net.x
+74
-1
No files found.
src/lib/rt/src/rt_net.x
View file @
7f3a3efe
#ifdef RPC_HDR
%/*
% * Proview $Id: rt_net.x,v 1.1
2 2007-11-22 15:10:2
3 claes Exp $
% * Proview $Id: rt_net.x,v 1.1
3 2008-06-24 07:14:5
3 claes Exp $
% * Copyright (C) 2005 SSAB Oxelsund AB.
% *
% * This program is free software; you can redistribute it and/or
...
...
@@ -103,6 +103,9 @@ enum net_eMsg {
net_eMsg_serverConnect, /* New server */
net_eMsg_fileList,
net_eMsg_fileListR,
net_eMsg_, /* Not a valid message */
net_eMsg_volumes7, /* Version 7. Internal only */
...
...
@@ -1250,6 +1253,76 @@ struct net_sGetCclass {
#endif
struct net_sFileList {
net_sMessage hdr;
char dir[256];
char pattern[40];
};
#ifdef RPC_HDR
%
%
%typedef struct {
% net_sMessage hdr;/**< Header */
% pwr_tStatus sts;/**< Status */
% pwr_tUInt32 filecnt; /**< Number of files found. */
% char files[1]; /**< List of files */
%} net_sFileListR;
%
%bool_t xdr_net_sFileListR(XDR *xdrs, net_sFileListR *objp);
%
#elif defined RPC_XDR
%
%bool_t
%xdr_net_sFileListR(XDR *xdrs, net_sFileListR *objp)
%{
% int filecnt;
% pwr_tStatus sts;
%
% if (xdrs->x_op == XDR_DECODE) {
% filecnt = (int) ntohl(objp->filecnt);
% sts = (int) ntohl(objp->sts);
% } else {
% filecnt = objp->filecnt;
% sts = objp->sts;
% }
%
% if (!xdr_net_sMessage(xdrs, &objp->hdr)) {
% return (FALSE);
% }
% if (!xdr_pwr_tStatus(xdrs, &objp->sts)) {
% return (FALSE);
% }
%
% if (EVEN(sts)) {
% filecnt = 0;
% if (!xdr_pwr_tUInt32(xdrs, (unsigned int *)&filecnt)) {
% return (FALSE);
% }
% return (TRUE);
% }
%
%
% if (!xdr_pwr_tUInt32(xdrs, &objp->filecnt )) {
% return (FALSE);
% }
% if (!xdr_opaque(xdrs, (char *)objp->files, filecnt * sizeof(pwr_tString40))) {
% return (FALSE);
% }
% return (TRUE);
%
%}
#endif
#ifdef RPC_HDR
%/* Max # of gohs in a cache_fetch_response. The message will not be
% bigger than cvol_cMaxSize bytes. */
...
...
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