client-c  0.8.1
ext_event_listeners_callback.h File Reference

External interface for receiving event listeners responses used by Kaa Event subsystem. Should be implemented to receive the list of available event listeners. See kaa_event_manager_find_event_listeners for further information. More...

#include "../kaa_common.h"
#include "../kaa_error.h"
+ Include dependency graph for ext_event_listeners_callback.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaa_event_listeners_callback_t
 

Typedefs

typedef kaa_error_t(* on_event_listeners_fn )(void *context, const kaa_endpoint_id listeners[], size_t listeners_count)
 Callback for successful event listeners responses. More...
 
typedef kaa_error_t(* on_event_listeners_failed_fn )(void *context)
 Callback for failed event listeners responses. More...
 

Detailed Description

External interface for receiving event listeners responses used by Kaa Event subsystem. Should be implemented to receive the list of available event listeners. See kaa_event_manager_find_event_listeners for further information.

Copyright 2014-2016 CyberVision, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ext_event_listeners_callback.h.

Typedef Documentation

typedef kaa_error_t(* on_event_listeners_failed_fn)(void *context)

Callback for failed event listeners responses.

Parameters
[in]contextCallback's context.
Returns
Error code.

Definition at line 55 of file ext_event_listeners_callback.h.

typedef kaa_error_t(* on_event_listeners_fn)(void *context, const kaa_endpoint_id listeners[], size_t listeners_count)

Callback for successful event listeners responses.

Parameters
[in]contextCallback's context.
[in]listenersList of available event listeners (endpoint ids). This list is a temporary object, don't use it outside of the callback.
[in]listeners_countSize of the listeners list.
Returns
Error code.

Definition at line 45 of file ext_event_listeners_callback.h.