void cEqObsRotVect::AddObservation ( Pt2dr aDir1, Pt2dr aDir2, double aPds, bool WithD2 ) { AddObservation(PZ1(aDir1),PZ1(aDir2),aPds,WithD2); }
static bool ObserveTarget(AwaServerObserveOperation * operation, const char * clientID, const Target * target, void * context) { bool result = false; if (operation != NULL) { if (target != NULL) { Verbose("Observe %s\n", target->Path); AwaServerObservation * observation = AwaServerObservation_New(clientID, target->Path, ObserveCallback, context); if (observation != NULL) { if (AwaServerObserveOperation_AddObservation(operation, observation) == AwaError_Success) { AddObservation(observation); result = true; } else { Error("AwaServerObserveOperation_AddObservation failed\n"); } } else { Error("AwaServerObservation_New failed\n"); } } else { Error("target is NULL\n"); } } else { Error("operation is NULL\n"); } return result; }