⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regs.c

📁 VXWORKS源代码
💻 C
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -