本文整理汇总了C++中xdr_pointer函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_pointer函数的具体用法?C++ xdr_pointer怎么用?C++ xdr_pointer使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdr_pointer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xdr_BensonTables
extern void xdr_BensonTables(XDR *stream, char **eleptrp)
{
BensonTables *eleptr;
eleptr = (BensonTables *) eleptrp;
xdr_INT(stream,(char **) &(eleptr->ID));
if(eleptr->ID == NO_STRUCTURE_CODE)
{
eleptr = 0;
return;
}
xdr_NAME(stream,(char **) &(eleptr->Name));
xdr_pointer(stream,
(char **) &(eleptr->SecondOrder),
BensonSecondOrderTableSize,
(xdrproc_t) xdr_BensonSecondOrderTable);
xdr_pointer(stream,
(char **) &(eleptr->BensonTree),
BensonCalculationSize,
(xdrproc_t) xdr_BensonCalculation);
xdr_pointer(stream,
(char **) &(eleptr->Translation),
SetOfBensonAtomTranslationPairsSize,
(xdrproc_t) xdr_SetOfBensonAtomTranslationPairs);
}
示例2: xdr_amq_mount_tree
bool_t
xdr_amq_mount_tree(XDR *xdrs, amq_mount_tree *objp)
{
if (!xdr_amq_string(xdrs, &objp->mt_mountinfo)) {
return (FALSE);
}
if (!xdr_amq_string(xdrs, &objp->mt_directory)) {
return (FALSE);
}
if (!xdr_amq_string(xdrs, &objp->mt_mountpoint)) {
return (FALSE);
}
if (!xdr_amq_string(xdrs, &objp->mt_type)) {
return (FALSE);
}
if (!xdr_time_type(xdrs, &objp->mt_mounttime)) {
return (FALSE);
}
if (!xdr_u_short(xdrs, &objp->mt_mountuid)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->mt_getattr)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->mt_lookup)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->mt_readdir)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->mt_readlink)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->mt_statfs)) {
return (FALSE);
}
if (!xdr_pointer(xdrs, (char **) &objp->mt_next, sizeof(amq_mount_tree), (XDRPROC_T_TYPE) xdr_amq_mount_tree)) {
return (FALSE);
}
if (!xdr_pointer(xdrs, (char **) &objp->mt_child, sizeof(amq_mount_tree), (XDRPROC_T_TYPE) xdr_amq_mount_tree)) {
return (FALSE);
}
return (TRUE);
}
示例3: xdr_cmd_log
bool_t
xdr_cmd_log (XDR *xdrs, cmd_log *objp)
{
register int32_t *buf;
if (!xdr_pointer (xdrs, (char **)&objp->first, sizeof (cmd_log_entry), (xdrproc_t) xdr_cmd_log_entry))
return FALSE;
if (!xdr_pointer (xdrs, (char **)&objp->last, sizeof (cmd_log_entry), (xdrproc_t) xdr_cmd_log_entry))
return FALSE;
return TRUE;
}
示例4: xdr_ypbind_binding
bool_t
xdr_ypbind_binding(XDR *xdrs, ypbind_binding *objp)
{
if (!xdr_pointer(xdrs, (char **)&objp->ypbind_nconf,
sizeof (struct netconfig), xdr_netconfig))
return (FALSE);
if (!xdr_pointer(xdrs, (char **)&objp->ypbind_svcaddr,
sizeof (struct netbuf), xdr_netbuf))
return (FALSE);
if (!xdr_string(xdrs, &objp->ypbind_servername, ~0))
return (FALSE);
if (!xdr_rpcvers(xdrs, &objp->ypbind_hi_vers))
return (FALSE);
return (xdr_rpcvers(xdrs, &objp->ypbind_lo_vers));
}
示例5: xdr_exports
bool_t
xdr_exports (XDR *xdrs, exports *objp)
{
if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct exportnode), (xdrproc_t) xdr_exportnode))
return FALSE;
return TRUE;
}
示例6: smb_posix_grps_helper_xdr
static bool_t
smb_posix_grps_helper_xdr(XDR *xdrs, char **identity)
{
uint32_t pos, len;
uint32_t cnt;
bool_t rc;
if (xdrs->x_op == XDR_DECODE) {
pos = xdr_getpos(xdrs);
if (!xdr_bool(xdrs, &rc))
return (FALSE);
if (!xdr_uint32_t(xdrs, &cnt))
return (FALSE);
rc = xdr_setpos(xdrs, pos);
if (rc == FALSE)
return (FALSE);
} else {
if (*identity == NULL)
return (FALSE);
cnt = ((smb_posix_grps_t *)(uintptr_t)*identity)->pg_ngrps;
}
len = SMB_POSIX_GRPS_SIZE(cnt);
if (!xdr_pointer(xdrs, identity, len, (xdrproc_t)smb_posix_grps_xdr))
return (FALSE);
return (TRUE);
}
示例7: smb_token_xdr
bool_t
smb_token_xdr(XDR *xdrs, smb_token_t *objp)
{
if (!smb_id_xdr(xdrs, &objp->tkn_user))
return (FALSE);
if (!smb_id_xdr(xdrs, &objp->tkn_owner))
return (FALSE);
if (!smb_id_xdr(xdrs, &objp->tkn_primary_grp))
return (FALSE);
if (!smb_ids_xdr(xdrs, &objp->tkn_win_grps))
return (FALSE);
if (!smb_privset_helper_xdr(xdrs, (char **)&objp->tkn_privileges))
return (FALSE);
if (!xdr_string(xdrs, &objp->tkn_account_name, ~0))
return (FALSE);
if (!xdr_string(xdrs, &objp->tkn_domain_name, ~0))
return (FALSE);
if (!xdr_uint32_t(xdrs, &objp->tkn_flags))
return (FALSE);
if (!xdr_uint32_t(xdrs, &objp->tkn_audit_sid))
return (FALSE);
if (!xdr_pointer(xdrs, (char **)&objp->tkn_session_key,
sizeof (smb_session_key_t), (xdrproc_t)smb_session_key_xdr))
return (FALSE);
if (!smb_posix_grps_helper_xdr(xdrs, (char **)&objp->tkn_posix_grps))
return (FALSE);
return (TRUE);
}
示例8: xdr_groups
bool_t
xdr_groups (XDR *xdrs, groups *objp)
{
if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct groupnode), (xdrproc_t) xdr_groupnode))
return FALSE;
return TRUE;
}
示例9: xdr_rpcbs_addrlist
bool_t
xdr_rpcbs_addrlist(XDR *xdrs, rpcbs_addrlist *objp)
{
struct rpcbs_addrlist **pnext;
if (!xdr_u_int32_t(xdrs, &objp->prog)) {
return (FALSE);
}
if (!xdr_u_int32_t(xdrs, &objp->vers)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->success)) {
return (FALSE);
}
if (!xdr_int(xdrs, &objp->failure)) {
return (FALSE);
}
if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
return (FALSE);
}
pnext = &objp->next;
if (!xdr_pointer(xdrs, (char **) pnext,
sizeof (rpcbs_addrlist),
(xdrproc_t)xdr_rpcbs_addrlist)) {
return (FALSE);
}
return (TRUE);
}
示例10: xdr_ex_entryplus3
bool_t
xdr_ex_entryplus3(XDR *xdrs, ex_entryplus3 *objp)
{
register int32_t *buf;
if (!xdr_uint64(xdrs, &objp->fileid)) {
return (FALSE);
}
if (!xdr_filename3(xdrs, &objp->name)) {
return (FALSE);
}
if (!xdr_uint64(xdrs, &objp->cookie)) {
return (FALSE);
}
if (!xdr_ex_post_op_attr(xdrs, &objp->name_attributes)) {
return (FALSE);
}
if (!xdr_post_op_fh3(xdrs, &objp->name_handle)) {
return (FALSE);
}
if (!xdr_pointer(xdrs, (char **)&objp->nextentry, sizeof(ex_entryplus3), (xdrproc_t)xdr_ex_entryplus3)) {
return (FALSE);
}
return (TRUE);
}
示例11: xdr_mountlist
bool_t
xdr_mountlist (XDR *xdrs, mountlist *objp)
{
if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct mountbody), (xdrproc_t) xdr_mountbody))
return FALSE;
return TRUE;
}
示例12: xdr_amq_mount_tree_p
bool_t
xdr_amq_mount_tree_p(XDR *xdrs, amq_mount_tree_p *objp)
{
if (!xdr_pointer(xdrs, (char **) objp, sizeof(amq_mount_tree), (XDRPROC_T_TYPE) xdr_amq_mount_tree)) {
return (FALSE);
}
return (TRUE);
}
示例13: xdr_exports
bool_t
xdr_exports(register XDR *xdrs, exports *objp)
{
if (!xdr_pointer(xdrs, (char **)objp, sizeof (struct exportnode), (xdrproc_t) xdr_exportnode))
return (FALSE);
return (TRUE);
}
示例14: xdr_ypresp_maplist
bool_t
xdr_ypresp_maplist (XDR *xdrs, ypresp_maplist *objp)
{
if (!xdr_ypstat (xdrs, &objp->stat))
return FALSE;
return xdr_pointer (xdrs, (char **) &objp->maps, sizeof (ypmaplist),
(xdrproc_t) xdr_ypmaplist);
}
示例15: xdr_groups
bool_t
xdr_groups(register XDR *xdrs, groups *objp)
{
if (!xdr_pointer(xdrs, (char **)objp, sizeof (struct groupnode), (xdrproc_t) xdr_groupnode))
return (FALSE);
return (TRUE);
}