]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/liborte/RTPSUtils.c
orte 0.3.2 release
[orte.git] / orte / liborte / RTPSUtils.c
index 607e11911f68db35cd8026bd6f311a6c9dcb0ca3..d214640748ba6038f3b6ad4a303882cded9eee85 100644 (file)
@@ -2,9 +2,19 @@
  *  $Id: RTPSUtils.c,v 0.0.0.1          2003/09/13 
  *
  *  DEBUG:  section 50          Utils
- *  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.smolik@wo.cz             
+ *  Advisor:            Pavel Pisa                                   
+ *  Project Responsible: Zdenek Hanzalek                              
  *  --------------------------------------------------------------------
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -19,7 +29,7 @@
  *  
  */ 
 
-#include "orte.h"
+#include "orte_all.h"
 
 /**********************************************************************************/
 int gavl_cmp_ntp_time(const NtpTime *a,const NtpTime *b) {
@@ -49,12 +59,6 @@ gavl_cmp_guid(const GUID_RTPS *a, const GUID_RTPS *b) {
 /**********************************************************************************/
 int 
 gavl_cmp_str(const char *const *a,const char *const *b) {
-  return strcmp(*a,*b);
-}
-/**********************************************************************************/
-int 
-getMaxMessageLength(ORTEDomain *d) {
-  return d->domainProp.wireProp.metaBytesPerPacket-d->mbSend.cdrStream.length-
-         RTPS_HEADER_LENGTH-20;
+  return strcmp((const char *)*a, (const char*)*b);
 }