Skip to content
Snippets Groups Projects
Commit bb4f49d7 authored by Steven Murray's avatar Steven Murray
Browse files

Moved rmc_marshall_element() into its own object file

parent 1f94ff16
Branches
Tags
No related merge requests found
/*
* Copyright (C) 2001 by CERN/IT/PDP/DM
* All rights reserved
*/
#ifndef _RMC_MARSHALL_ELEMENT_H
#define _RMC_MARSHALL_ELEMENT_H 1
#include "h/smc_struct.h"
int rmc_marshall_element (char **const sbpp, const struct smc_element_info *const element_info);
#endif
/*
* Copyright (C) 2001-2002 by CERN/IT/PDP/DM
* All rights reserved
*/
#include "h/marshall.h"
#include "h/rmc_marshall_element.h"
int rmc_marshall_element (
char **const sbpp,
const struct smc_element_info *const element_info)
{
char *sbp = *sbpp;
marshall_WORD (sbp, element_info->element_address);
marshall_BYTE (sbp, element_info->element_type);
marshall_BYTE (sbp, element_info->state);
marshall_BYTE (sbp, element_info->asc);
marshall_BYTE (sbp, element_info->ascq);
marshall_BYTE (sbp, element_info->flags);
marshall_WORD (sbp, element_info->source_address);
marshall_STRING (sbp, element_info->name);
*sbpp = sbp;
return (0);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment