OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/ua/ua_data.cpp


File /code/strss7/drivers/ua/ua_data.cpp


//  ==========================================================================
//  
//  @(#) $Id: ua_data.cpp,v 0.8 2002/04/02 08:21:14 brian Exp $
//  
//  --------------------------------------------------------------------------
//  
//  Copyright (C) 2001  OpenSS7 Corporation <http://www.openss7.com>
// 
//  All Rights Reserved.
// 
//  This program is free software; you can redistribute it and/or modify it
//  under the terms of the GNU General Public License as published by the Free
//  Software Foundation; either version 2 of the License, or (at your option)
//  any later version.
// 
//  This program is distributed in the hope that it will be useful, but
//  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
//  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
//  for more details.
// 
//  You should have received a copy of the GNU General Public License along
//  with this program; if not, write to the Free Software Foundation, Inc.,
//  675 Mass Ave, Cambridge, MA 02139, USA.
// 
//  Last Modified $Date: 2002/04/02 08:21:14 $ by $Author: brian $
// 
//  --------------------------------------------------------------------------
// 
//  $Log: ua_data.cpp,v $
//  Revision 0.8  2002/04/02 08:21:14  brian
//  Started Linux 2.4 development branch.
//
//  Revision 0.7  2001/09/09 11:30:25  brian
//  Added files.
//
//  ==========================================================================

static char const ident[] = "$Id: ua_data.cpp,v 0.8 2002/04/02 08:21:14 brian Exp $";

#pragma implementation
#include "ua_data.hh"

pp *pp::list = NULL;

int pp::rd(mblk_t *mp)
{
	switch ( msg->b_datap->db_type )
	{
		case M_DATA:	return this->m_r_data  (mp);
		case M_PROTO:	return this->m_r_proto (mp);
		case M_PCPROTO:	return this->m_r_proto (mp);
		case M_ERROR:	return this->m_r_error (mp);
		case M_FLUSH:	return this->m_r_flush (mp);
		case M_HANGUP:	return this->m_r_hangup(mp);
	}
	return(-EOPNOTSUPP);
}
int pp::wr(mblk_t *mp)
{
	switch ( msg->b_datap->db_type )
	{
		case M_DATA:	return this->m_w_data  (mp);
		case M_PROTO:	return this->m_w_proto (mp);
		case M_PCPROTO:	return this->m_w_proto (mp);
		case M_ERROR:	return this->m_w_error (mp);
		case M_FLUSH:	return this->m_w_flush (mp);
		case M_HANGUP:	return this->m_w_hangup(mp);
	}
	return(-EOPNOTSUPP);
}

int pp::m_r_data(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_r_proto(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_r_error(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_r_flush(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_r_hangup(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}

int pp::m_w_data(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_w_proto(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_w_error(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_w_flush(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}
int pp::m_w_hangup(mblk_t *mp)
{
	(void)mp;
	return(-EOPNOTSUPP);
}



Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/drivers/ua/ua_data.cpp

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: