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 info.status=NEED_DATA;
34 info.type=pp->typeName;
35 info.senderGUID=cstWriter->objectEntryOID->guid;
36 cstWriter->objectEntryOID->sendCallBack(&info,
37 cstWriter->objectEntryOID->instance,
38 cstWriter->objectEntryOID->callBackParam);
39 CSTWriterTryDestroyBestEffortIssue(cstWriter);
40 if (cstWriter->csChangesCounter<pp->sendQueueSize) {
41 ORTEPublicationSendLocked(cstWriter);
44 cstWriter->objectEntryOID->objectEntryAID,
45 &cstWriter->objectEntryOID->sendCallBackDelayTimer,
47 "PublicationCallBackTimer",
48 PublicationCallBackTimer,
51 &cstWriter->objectEntryOID->sendCallBackDelay);