Beispiel #1
0
int32_t vrs_send_layer_unset_value(const uint8_t session_id,
		const uint8_t prio,
		const uint32_t node_id,
		const uint16_t layer_id,
		const uint32_t item_id)
{
	struct Generic_Cmd *layer_unset_value_cmd = v_layer_unset_value_create(node_id, layer_id, item_id);
	return vc_send_command(session_id, prio, layer_unset_value_cmd);
}
Beispiel #2
0
/**
 * \brief This function send unset layer value to the client
 */
int vs_layer_send_unset_value(struct VSEntitySubscriber *layer_subscriber,
		struct VSNode *node,
		struct VSLayer *layer,
		struct VSLayerValue *value)
{
	struct Generic_Cmd *unset_value_cmd;

	unset_value_cmd = v_layer_unset_value_create(node->id, layer->id, value->id);

	return v_out_queue_push_tail(layer_subscriber->node_sub->session->out_queue,
			layer_subscriber->node_sub->prio,
			unset_value_cmd);
}