C API for BALTECH SDK

§ brp_add_layer()

BRP_LIB brp_errcode brp_add_layer ( brp_protocol  composite_protocol,
brp_layer_id  layer_id 
)

Adds a protocol layer without assigning a protocol to it.

If the specified protocol layer was already added BRP_ERR_EXISTING_LAYER be returned, otherwise the layer will be added at the top of the protocol stack.

To assign a specific protocol to the new layer use brp_set_layer().

Parameters
composite_protocolcomposite where layer shall be retrieved
layer_ididentification of layer (see BRP_LAYERID_*, i.e. BRP_LAYERID_BRP)