versadac  1
versadac - Scalable Recorder Firmware
mrp_plat.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : Tools to test mrp stack */
14 /* Component : RPC managment */
15 /* $Workfile:: mrp_plat.h $*/
16 /* $Revision: 2 $*/
17 /* $Date: 10/06/10 17:26 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 
26 #ifndef __MRP_PLAT_H__
27 #define __MRP_PLAT_H__
28 
29 #include "platform.h"
30 
31 #ifdef MRP_SUPPORTED
32  /* To be able adding code flag */
33  #include <winsock2.h>
34  #include <windows.h>
35  #include "types.h"
36  #include "fakeSwitch.h"
37 
38 
39  /*#define MRP_TRACE printf*/
40  #define MRP_TRACE
41 
42 
43  /* Flag for debugging*/
44  #define DECLARE_GLOBAL_FLAG_CODE extern APP_DWORD gdwHandle;\
45  APP_DWORD gdwStatus = 0
46 
47  #define MRP_CHANGE_STATE(newState, old) if(newState != old){ setSmState(gdwHandle , newState, &gdwStatus);}
48  /*#define MRP_CHANGE_STATE(a)*/
49 
50  #define MRP_PRIMARY_PORT_CHANGE setPrimarySecPort(gdwHandle, me->PRM_RPort, me->SEC_RPort, &gdwStatus)
51  /*#define MRP_PRIMARY_PORT_CHANGE*/
52 
53 #endif
54 #endif