ctl_app_listener Struct Reference
[Creating a Trading Integration Adapter.]

Listener interface that should be registered to receive notification of tradechannel creation and closing. More...

#include <ctl.h>

List of all members.

Public Attributes

void(* channel_created )(void *context, ctl_provider *provider, ctl_channel *channel)
 Invoked when a tradechannel is created.
void(* channel_closed )(void *context, ctl_provider *provider, ctl_channel *channel)
 Invoked when a tradechannel is closed.


Detailed Description

Listener interface that should be registered to receive notification of tradechannel creation and closing.

You must implement this interface when writing a Trading Adapter.


Member Data Documentation

void(* ctl_app_listener::channel_created)(void *context, ctl_provider *provider, ctl_channel *channel)

Invoked when a tradechannel is created.

Parameters:
context - Your context pointer registered with ctl_create_ds_provider()
provider - The trading provider.
channel - The newly created trade channel.
You should use this callback to call ctl_channel_set_listener() to receive trade notifications on the new channel.

void(* ctl_app_listener::channel_closed)(void *context, ctl_provider *provider, ctl_channel *channel)

Invoked when a tradechannel is closed.

Parameters:
context - Your context pointer registered with ctl_create_ds_provider()
provider - The trading provider.
channel - The trade channel that has been closed.


The documentation for this struct was generated from the following file:
Generated on Fri Aug 14 12:41:23 2015 for Trading API for C by  doxygen 1.5.3