* $Id: m_subscriber.c,v 0.0.1.0 2005/01/03
*
* DEBUG: section m_subscriber
- * AUTHOR: Petr Smolik petr.smolik@wo.cz
*
- * ORTE - OCERA Real-Time Ethernet http://www.ocera.org/
+ * -------------------------------------------------------------------
+ * ORTE
+ * Open Real-Time Ethernet
+ *
+ * Copyright (C) 2001-2006
+ * Department of Control Engineering FEE CTU Prague, Czech Republic
+ * http://dce.felk.cvut.cz
+ * http://www.ocera.org
+ *
+ * Author: Petr Smolik petr@smoliku.cz
+ * Advisor: Pavel Pisa
+ * Project Responsible: Zdenek Hanzalek
* --------------------------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
#include "orte.h"
#include <stdio.h>
-ORTEDomain *d = NULL;
-char instance2Recv[64];
+#ifdef MAIN_RENAMED
+#define main orte_schneider_subscriber_main
+#define exit return
+#endif
-int maxDataSize(ORTEGetMaxSizeParam *gms) {
+static ORTEDomain *d = NULL;
+static char instance2Recv[64];
+
+int maxDataSize(ORTEGetMaxSizeParam *gms, int num) {
return gms->max_size;
}
-void
+static void
recvCallBack(const ORTERecvInfo *info,void *vinstance, void *recvCallBackParam) {
char *instance=(char*)vinstance;
}
-void *
+static void *
subscriberCreate(void *arg) {
ORTESubscription *s;
NtpTime deadline,minimumSeparation;
// StringToIPAddress("225.0.0.2")
IPADDRESS_INVALID
);
+ if (s == NULL) {
+ printf("ORTESubscriptionCreate failed\n");
+ }
return arg;
}