ctx.c

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

C
50
字号
/* ctx.c - xdr routine for coding/decoding a WDB_CTX *//* Copyright 1988-1994 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01d,10jun95,pad Included rpc/rpc.h01c,04apr95,ms  new data types.01b,06nov94,tpr added comments.01a,03oct94,tpr	written.*//*DESCRIPTIONThis module contains the eXternal Data Representation (XDR) routinefor the WDB_CTX structure of the WDB protocol.*//* includes */#include <rpc/rpc.h>#include "wdbP.h"/********************************************************************************* xdr_WDB_CTX - code, decode or free a WDB_CTX structure.** RETURNS:  TRUE if it succeeds, FALSE otherwise.*/BOOL xdr_WDB_CTX    (    XDR *	xdrs,			/* xdr handle */    WDB_CTX *	objp			/* pointer to the WDB_CTX */    )    {    if (!xdr_enum (xdrs, (enum_t *)&objp->contextType))	return (FALSE);    if (!xdr_UINT32 (xdrs, &objp->contextId))	return (FALSE);    return (TRUE);    }

⌨️ 快捷键说明

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