/******************************************************************************/
/*                 Copyright C 1998-2002 Broadcom Corporation                 */
/*                                                                            */
/* This material is the confidential trade secret and proprietary information */
/* of Broadcom Corporation.  It may not be reproduced, used, sold or          */
/* transferred to any third party without the prior written consent of        */
/* Broadcom Corporation.   All rights reserved.                               */
/******************************************************************************/
/*   FileName        : bcm_lineObject.c                                       */
/*   Purpose         : Wraper for line object for standalone work             */
/*   Limitations     : None                                                   */
/*   Author          : Emmanuel Hanssens                                      */
/*   Creation Date   : 04-Apr-2002                                            */
/*   History         : Compiled by RCS                                        */
/******************************************************************************/
/*   $Id: bcm_lineObject.c,v 1.2 2003/02/21 08:53:52 hanssens Exp $  */
/******************************************************************************/

#include <string.h>
#include "bcm_lineObject.h"

/* line objects (global) */
LineObject lineObjects[NB_LINES];

/* {{{ initLineObject */
void initLineObject(uint8 lineId, DevObject *devPtr)
{
  LineObject *linePtr = getLinePtr(lineId);

  memset(linePtr, 0, sizeof(LineObject));
  
  linePtr->lineId = lineId;
  linePtr->devPtr = devPtr;
  
  /* set default line state */
  linePtr->lineState     = LINE_STATE_NOT_CONFIG;
}
/* }}} */
