testexecmgmt/ucc/Source/Uccs.v2/ServiceStubs/HostExecuteAsync/hostexecuteasync_xdr.c
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include <rpc/rpc.h>
       
    22 #include "hostexecuteasync.h"
       
    23 
       
    24 
       
    25 bool_t
       
    26 xdr_hostexecuteasync_TComponentList(xdrs, objp)
       
    27 	XDR *xdrs;
       
    28 	TComponentList *objp;
       
    29 {
       
    30 	if (!xdr_array(xdrs, (char **)&objp->TComponentList_val, (u_int *)&objp->TComponentList_len, ~0, sizeof(int), (void*)xdr_int)) {
       
    31 		return (FALSE);
       
    32 	}
       
    33 	return (TRUE);
       
    34 }
       
    35 
       
    36 
       
    37 
       
    38 
       
    39 bool_t
       
    40 xdr_hostexecuteasync_TResult(xdrs, objp)
       
    41 	XDR *xdrs;
       
    42 	TResult *objp;
       
    43 {
       
    44 	if (!xdr_int(xdrs, &objp->iStandardResult)) {
       
    45 		return (FALSE);
       
    46 	}
       
    47 	if (!xdr_int(xdrs, &objp->iExtendedCode)) {
       
    48 		return (FALSE);
       
    49 	}
       
    50 	if (!xdr_int(xdrs, &objp->iSystemError)) {
       
    51 		return (FALSE);
       
    52 	}
       
    53 	return (TRUE);
       
    54 }
       
    55 
       
    56 
       
    57 
       
    58 
       
    59 bool_t
       
    60 xdr_hostexecuteasync_THostExecuteAsyncProcessInfo(xdrs, objp)
       
    61 	XDR *xdrs;
       
    62 	THostExecuteAsyncProcessInfo *objp;
       
    63 {
       
    64 	if (!xdr_int(xdrs, &objp->iErrorCode)) {
       
    65 		return (FALSE);
       
    66 	}
       
    67 	if (!xdr_int(xdrs, &objp->iErrorDetail)) {
       
    68 		return (FALSE);
       
    69 	}
       
    70 	if (!xdr_vector(xdrs, (char *)objp->iCommandLine, MAXCOMMANDLINE, sizeof(char), (void*)xdr_char)) {
       
    71 		return (FALSE);
       
    72 	}
       
    73 	if (!xdr_int(xdrs, &objp->iProcessStatus)) {
       
    74 		return (FALSE);
       
    75 	}
       
    76 	if (!xdr_int(xdrs, &objp->iProcessExitReason)) {
       
    77 		return (FALSE);
       
    78 	}
       
    79 	if (!xdr_int(xdrs, &objp->iExitCode)) {
       
    80 		return (FALSE);
       
    81 	}
       
    82 	return (TRUE);
       
    83 }
       
    84 
       
    85 
       
    86 
       
    87 
       
    88 bool_t
       
    89 xdr_hostexecuteasync_TVarData(xdrs, objp)
       
    90 	XDR *xdrs;
       
    91 	TVarData *objp;
       
    92 {
       
    93 	if (!xdr_bytes(xdrs, (char **)&objp->TVarData_val, (u_int *)&objp->TVarData_len, ~0)) {
       
    94 		return (FALSE);
       
    95 	}
       
    96 	return (TRUE);
       
    97 }
       
    98 
       
    99 
       
   100 
       
   101 
       
   102 bool_t
       
   103 xdr_hostexecuteasync_TStartupInfo(xdrs, objp)
       
   104 	XDR *xdrs;
       
   105 	TStartupInfo *objp;
       
   106 {
       
   107 	if (!xdr_int(xdrs, &objp->iDummy)) {
       
   108 		return (FALSE);
       
   109 	}
       
   110 	return (TRUE);
       
   111 }
       
   112 
       
   113