* http://dce.felk.cvut.cz
* http://www.ocera.org
*
- * Author: Petr Smolik petr.smolik@wo.cz
+ * Author: Petr Smolik petr@smoliku.cz
* Advisor: Pavel Pisa
* Project Responsible: Zdenek Hanzalek
* --------------------------------------------------------------------
#endif
#include "orte.h"
-ORTEDomain *d;
-char instance2Recv[64];
+#ifdef MAIN_RENAMED
+#define main orte_r_subscriber_besteffort_main
+#define exit return
+#endif
+
+static ORTEDomain *d;
+static char instance2Recv[64];
-void
+static void
recvCallBack(const ORTERecvInfo *info,void *vinstance, void *recvCallBackParam) {
char *instance=(char*)vinstance;
recvCallBack,
NULL,
IPADDRESS_INVALID);
+ if (s == NULL) {
+ printf("ORTESubscriptionCreate failed\n");
+ return 1;
+ }
#ifndef CONFIG_ORTE_RT
while (1)
ORTESleepMs(1000);