/usr/include/libecap/adapter/xaction.h is in libecap3-dev 1.0.1-3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /* (C) 2008 The Measurement Factory */
#ifndef ECAP__ADAPTER_XACTION_H
#define ECAP__ADAPTER_XACTION_H
#include <libecap/common/area.h>
#include <libecap/common/options.h>
namespace libecap {
namespace adapter {
// adapter transaction is responsible for adapting a single message
// it is created by adapter::Service::makeXaction and destroyed by
// the host either before calling start() or after calling stop()
class Xaction: public Options {
public:
virtual ~Xaction() {}
// lifecycle
virtual void start() = 0;
virtual void stop() = 0;
virtual void resume();
// adapted body transmission control
virtual void abDiscard() = 0; // host will not look at ab at all
virtual void abMake() = 0; // host may look at ab
virtual void abMakeMore() = 0; // host must have more ab
virtual void abStopMaking() = 0; // host no longer needs ab
virtual void abPause() {} // ignored by default
virtual void abResume() {} // ignored iff abPause is
// adapted body content extraction and consumption
virtual Area abContent(size_type offset, size_type size) = 0;
virtual void abContentShift(size_type size) = 0; // first size bytes
// virgin body state notification
virtual void noteVbContentDone(bool atEnd) = 0; // successful or not
virtual void noteVbContentAvailable() = 0;
};
} // namespace adapter
} // namespace libecap
#endif
|