diff --git a/bindings/event.go b/bindings/event.go index 21a076fa71b3ed921a558fb190679cdedcf1546b..895f347d2539e848b8a58afa98fcd29102b8ff38 100644 --- a/bindings/event.go +++ b/bindings/event.go @@ -7,10 +7,14 @@ package bindings +import ( + "gitlab.com/elixxir/client/api" +) + // RegisterEventCallback records the given function to receive // ReportableEvent objects. It returns the internal index // of the callback so that it can be deleted later. -func (c *Client) RegisterEventCallback(myFunc EventCallbackFunction) int { +func (c *Client) RegisterEventCallback(myFunc api.EventCallbackFunction) int { return c.api.RegisterEventCallback(myFunc) }