2019-10-08 06:12:08 +11:00
|
|
|
package interfaces
|
|
|
|
|
|
2020-02-08 09:58:16 +11:00
|
|
|
// CallbackFunc defines the signature of a function required to be provided to the
|
|
|
|
|
// Dispatch function so that the response may be returned
|
|
|
|
|
type CallbackFunc func(string) error
|
|
|
|
|
|
2019-10-08 06:12:08 +11:00
|
|
|
// IPCManager is the event manager interface
|
|
|
|
|
type IPCManager interface {
|
|
|
|
|
BindRenderer(Renderer)
|
2020-02-08 09:58:16 +11:00
|
|
|
Dispatch(message string, f CallbackFunc)
|
2019-10-08 06:12:08 +11:00
|
|
|
Start(eventManager EventManager, bindingManager BindingManager)
|
2019-10-23 14:08:56 +11:00
|
|
|
Shutdown()
|
2019-10-08 06:12:08 +11:00
|
|
|
}
|