wvRpc_xdr.c
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:1k
- /*
- * Please do not edit this file.
- * It was generated using rpcgen.
- */
- #include <rpc/rpc.h>
- #include "wvRpc.h"
- extern void wvSvc (void);
- bool_t
- xdr_taskSpawnRec(xdrs, objp)
- XDR *xdrs;
- taskSpawnRec *objp;
- {
- if (!xdr_string(xdrs, &objp->name, 32)) {
- return (FALSE);
- }
- if (!xdr_u_long(xdrs, &objp->priority)) {
- return (FALSE);
- }
- if (!xdr_u_long(xdrs, &objp->options)) {
- return (FALSE);
- }
- if (!xdr_u_long(xdrs, &objp->stackSize)) {
- return (FALSE);
- }
- if (!xdr_u_long(xdrs, &objp->entry)) {
- return (FALSE);
- }
- if (!xdr_vector(xdrs, (char *)objp->arg, 10, sizeof(u_long), xdr_u_long)) {
- return (FALSE);
- }
- return (TRUE);
- }
- bool_t
- xdr_callFuncRec(xdrs, objp)
- XDR *xdrs;
- callFuncRec *objp;
- {
- if (!xdr_u_long(xdrs, &objp->funcPtr)) {
- return (FALSE);
- }
- if (!xdr_vector(xdrs, (char *)objp->arg, 20, sizeof(u_long), xdr_u_long)) {
- return (FALSE);
- }
- return (TRUE);
- }
- bool_t
- xdr_evtLogRec(xdrs, objp)
- XDR *xdrs;
- evtLogRec *objp;
- {
- if (!xdr_u_long(xdrs, &objp->mode)) {
- return (FALSE);
- }
- if (!xdr_u_long(xdrs, &objp->state)) {
- return (FALSE);
- }
- if (!xdr_u_long(xdrs, &objp->portNo)) {
- return (FALSE);
- }
- return (TRUE);
- }