static int acquireBundles(AcqWorkArea *work, Object zco, unsigned long senderEngineNbr) { char engineNbrString[21]; char senderEidBuffer[SDRSTRING_BUFSZ]; char *senderEid; isprintf(engineNbrString, sizeof engineNbrString, "%lu", senderEngineNbr); senderEid = senderEidBuffer; getSenderEid(&senderEid, engineNbrString); if (bpBeginAcq(work, 0, senderEid) < 0) { putErrmsg("Can't begin acquisition of bundle(s).", NULL); return -1; } if (bpLoadAcq(work, zco) < 0) { putErrmsg("Can't continue bundle acquisition.", NULL); return -1; } if (bpEndAcq(work) < 0) { putErrmsg("Can't end acquisition of bundle(s).", NULL); return -1; } return 0; }
static int acquireRedBundles(AcqWorkArea *work, Object zco, uvast senderEngineNbr) { if (bpBeginAcq(work, 0, NULL) < 0) { putErrmsg("Can't begin acquisition of bundle(s).", NULL); return -1; } if (bpLoadAcq(work, zco) < 0) { putErrmsg("Can't continue bundle acquisition.", NULL); return -1; } if (bpEndAcq(work) < 0) { putErrmsg("Can't end acquisition of bundle(s).", NULL); return -1; } return 0; }