#include <rpc/types.h>
#include <rpc/xdr.h>
#include <stdlib.h>
#include "rcs_defs.hh"
#include "rpc_msg.hh"
#include "cms.hh"
Include dependency graph for rpc_msg.cc:
Go to the source code of this file.
Functions | |
bool_t RCS_EXPORT RCS_PASCAL | xdr_RPC_READ_REQUEST (XDR RCS_FAR *xdrsp, RPC_READ_REQUEST RCS_FAR *buf) |
bool_t RCS_EXPORT RCS_PASCAL | xdr_RPC_WRITE_REQUEST (XDR RCS_FAR *xdrsp, RPC_WRITE_REQUEST RCS_FAR *buf) |
bool_t RCS_EXPORT RCS_PASCAL | xdr_RPC_READ_REPLY (XDR RCS_FAR *xdrsp, RPC_READ_REPLY RCS_FAR *buf) |
bool_t RCS_EXPORT RCS_PASCAL | xdr_RPC_WRITE_REPLY (XDR RCS_FAR *xdrsp, RPC_WRITE_REPLY RCS_FAR *buf) |
|
Definition at line 30 of file rpc_msg.cc. 00031 { 00032 bool_t catch_it; 00033 if ((NULL == buf) || (NULL == xdrsp)) 00034 { 00035 return FALSE; 00036 } 00037 catch_it = xdr_long (xdrsp, &buf->buffer_number); 00038 catch_it = xdr_int (xdrsp, &buf->access_type); 00039 catch_it = xdr_long (xdrsp, &buf->last_id_read); 00040 return (catch_it); 00041 } |
|
Definition at line 44 of file rpc_msg.cc. 00045 { 00046 bool_t catch_it; 00047 if ((NULL == buf) || (NULL == xdrsp)) 00048 { 00049 return FALSE; 00050 } 00051 catch_it = xdr_long (xdrsp, &buf->buffer_number); 00052 catch_it = xdr_int (xdrsp, &buf->access_type); 00053 catch_it = xdr_int (xdrsp, &buf->size); 00054 if (NULL == buf->data) 00055 { 00056 buf->data = malloc (buf->size); 00057 } 00058 catch_it = xdr_opaque (xdrsp, (char *) buf->data, buf->size); 00059 return catch_it; 00060 } |
|
Definition at line 63 of file rpc_msg.cc. 00064 { 00065 bool_t catch_it; 00066 if ((NULL == buf) || (NULL == xdrsp)) 00067 { 00068 return FALSE; 00069 } 00070 catch_it = xdr_int (xdrsp, &buf->status); 00071 catch_it = xdr_int (xdrsp, &buf->size); 00072 catch_it = xdr_long (xdrsp, &buf->write_id); 00073 catch_it = xdr_long (xdrsp, &buf->was_read); 00074 if (0 < buf->size) 00075 { 00076 if (NULL == buf->data) 00077 { 00078 buf->data = malloc (buf->size); 00079 } 00080 catch_it = xdr_opaque (xdrsp, (char *) buf->data, buf->size); 00081 } 00082 return (catch_it); 00083 } |
|
Definition at line 86 of file rpc_msg.cc. |