testexecmgmt/ucc/GenericService/src/GenericStub_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 #include <rpc/rpc.h>
       
    21 #include "GenericStub.h"
       
    22 
       
    23 
       
    24 bool_t
       
    25 xdr_GenericStub_TComponentList(xdrs, objp)
       
    26 	XDR *xdrs;
       
    27 	TComponentList *objp;
       
    28 {
       
    29 	if (!xdr_array(xdrs, (char **)&objp->TComponentList_val, (u_int *)&objp->TComponentList_len, ~0, sizeof(int), (void*)xdr_int)) {
       
    30 		return (FALSE);
       
    31 	}
       
    32 	return (TRUE);
       
    33 }
       
    34 
       
    35 
       
    36 
       
    37 
       
    38 bool_t
       
    39 xdr_GenericStub_TStartupInfo(xdrs, objp)
       
    40 	XDR *xdrs;
       
    41 	TStartupInfo *objp;
       
    42 {
       
    43 	if (!xdr_int(xdrs, &objp->iEmpty)) {
       
    44 		return (FALSE);
       
    45 	}
       
    46 	return (TRUE);
       
    47 }
       
    48 
       
    49 
       
    50 
       
    51 
       
    52 bool_t
       
    53 xdr_GenericStub_TParam(xdrs, objp)
       
    54 	XDR *xdrs;
       
    55 	TParam *objp;
       
    56 {
       
    57 	if (!xdr_vector(xdrs, (char *)objp->iName, MAXPARAMNAMELENGTH, sizeof(char), (void*)xdr_char)) {
       
    58 		return (FALSE);
       
    59 	}
       
    60 	if (!xdr_vector(xdrs, (char *)objp->iValue, MAXPARAMVALUELENGTH, sizeof(char), (void*)xdr_char)) {
       
    61 		return (FALSE);
       
    62 	}
       
    63 	return (TRUE);
       
    64 }
       
    65 
       
    66 
       
    67 
       
    68 
       
    69 bool_t
       
    70 xdr_GenericStub_TCall(xdrs, objp)
       
    71 	XDR *xdrs;
       
    72 	TCall *objp;
       
    73 {
       
    74 	if (!xdr_int(xdrs, &objp->iCallID)) {
       
    75 		return (FALSE);
       
    76 	}
       
    77 	if (!xdr_array(xdrs, (char **)&objp->iParams.iParams_val, (u_int *)&objp->iParams.iParams_len, ~0, sizeof(TParam), (void*)xdr_GenericStub_TParam)) {
       
    78 		return (FALSE);
       
    79 	}
       
    80 	return (TRUE);
       
    81 }
       
    82 
       
    83