Add ccapi [header-only] lib to includes

This is the open source crypto connector lib
This commit is contained in:
John Colvin committed 2022-06-06 11:57:00 -04:00
1 parent 27310d2829
commit 99c440f568
102 files changed
+33735

No files matched your search

@@ -0,0 +1,22 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
#include "ccapi_cpp/ccapi_event.h"
namespace ccapi {
class Session;
class EventHandler {
public:
virtual ~EventHandler() {}
virtual bool processEvent(const Event& event, Session* session) { return true; }
// An implementation of processEvent should process the specified
// 'event' which originates from the specified 'session' and
// return true to indicate events should continue to be delivered
// or false to terminate dispatching of events.
//
// If the application wishes to process the event further
// after returning from the processEvents() call it must make
// a copy of the Event to ensure the underlying data is not
// freed.
// Note: no exceptions are thrown
};
} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_