BltPacketConsumer.h

Go to the documentation of this file.
00001 /*****************************************************************
00002 |
00003 |   BlueTune - Packet Consumer Interface
00004 |
00005 |   (c) 2002-2006 Gilles Boccon-Gibod
00006 |   Author: Gilles Boccon-Gibod (bok@bok.net)
00007 |
00008  ****************************************************************/
00013 #ifndef _BLT_PACKET_CONSUMER_H_
00014 #define _BLT_PACKET_CONSUMER_H_
00015 
00016 /*----------------------------------------------------------------------
00017 |   includes
00018 +---------------------------------------------------------------------*/
00019 #include "Atomix.h"
00020 #include "BltDefs.h"
00021 #include "BltTypes.h"
00022 #include "BltErrors.h"
00023 #include "BltModule.h"
00024 #include "BltCore.h"
00025 #include "BltMedia.h"
00026 
00027 /*----------------------------------------------------------------------
00028 |   BLT_PacketConsumer Interface
00029 +---------------------------------------------------------------------*/
00030 ATX_DECLARE_INTERFACE(BLT_PacketConsumer)
00031 ATX_BEGIN_INTERFACE_DEFINITION(BLT_PacketConsumer)
00032     BLT_Result (*PutPacket)(BLT_PacketConsumer* self, 
00033                             BLT_MediaPacket*    packet);
00034 ATX_END_INTERFACE_DEFINITION
00035 
00036 /*----------------------------------------------------------------------
00037 |   convenience macros
00038 +---------------------------------------------------------------------*/
00039 #define BLT_PacketConsumer_PutPacket(object, packet) \
00040 ATX_INTERFACE(object)->PutPacket(object, packet)
00041 
00042 #endif /* _BLT_PACKET_CONSUMER_H_ */