2 * $Id: ORTEPublicationTimer.c,v 0.0.0.1 2003/12/15
4 * DEBUG: section 32 Publication Timer
5 * AUTHOR: Petr Smolik petr.smolik@wo.cz
7 * ORTE - OCERA Real-Time Ethernet http://www.ocera.org/
8 * --------------------------------------------------------------------
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
24 /*****************************************************************************/
26 PublicationCallBackTimer(ORTEDomain *d,void *vcstWriter) {
27 CSTWriter *cstWriter=(CSTWriter*)vcstWriter;
31 pp=(ORTEPublProp*)cstWriter->objectEntryOID->attributes;
32 CSTWriterTryDestroyBestEffortIssue(cstWriter);
34 if (cstWriter->csChangesCounter<pp->sendQueueSize) {
35 info.status=NEED_DATA;
37 info.type=pp->typeName;
38 info.senderGUID=cstWriter->objectEntryOID->guid;
39 cstWriter->objectEntryOID->sendCallBack(&info,
40 cstWriter->objectEntryOID->instance,
41 cstWriter->objectEntryOID->callBackParam);
42 ORTEPublicationSendLocked(cstWriter,NULL);
46 cstWriter->objectEntryOID->objectEntryAID,
47 &cstWriter->objectEntryOID->sendCallBackDelayTimer,
49 "PublicationCallBackTimer",
50 PublicationCallBackTimer,
53 &cstWriter->objectEntryOID->sendCallBackDelay);