regs.c

来自「the vxworks system kernel souce packeg.t」· C语言 代码 · 共 76 行

C
76
字号
/* regs.c - xdr filters for WDB_REG_READ_DESC and WDB_REG_WRITE_DESC structures *//* Copyright 1988-1994 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01c,10jun95,pad Included rpc/rpc.h01b,04apr95,ms  new data types.01a,20jan95,ms	written.*//*DESCRIPTIONThis module contains the eXternal Data Representation (XDR) routinefor the WDB_REG_READ_DESC and WDB_REG_READ_DESC structures of the WDB protocol.*//* includes */#include <rpc/rpc.h>#include "wdbP.h"/********************************************************************************* xdr_WDB_REG_READ_DESC - code, decode or free the WDB_REG_READ_DESC structure. ** RETURNS: TRUE if it succeeds, FALSE otherwise.*/BOOL xdr_WDB_REG_READ_DESC    (    XDR *		xdrs,    WDB_REG_READ_DESC *	objp    )    {    if (!xdr_enum (xdrs, (enum_t *)&objp->regSetType))	return (FALSE);    if (!xdr_WDB_CTX (xdrs, &objp->context))	return (FALSE);    if (!xdr_WDB_MEM_REGION (xdrs, &objp->memRegion))	return (FALSE);    return (TRUE);    }/********************************************************************************* xdr_WDB_REG_WRITE_DESC - code, decode or free the WDB_REG_WRITE_DESC structure. ** RETURNS: TRUE if it succeeds, FALSE otherwise.*/BOOL xdr_WDB_REG_WRITE_DESC    (    XDR *		xdrs,    WDB_REG_WRITE_DESC *	objp    )    {    if (!xdr_enum (xdrs, (enum_t *)&objp->regSetType))	return (FALSE);    if (!xdr_WDB_CTX (xdrs, &objp->context))	return (FALSE);    if (!xdr_WDB_MEM_XFER (xdrs, &objp->memXfer))	return (FALSE);    return (TRUE);    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?