ComponentAlarm.from_component


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.34" ) ]
public ComponentAlarm.from_component (Component component)

Creates a new ComponentAlarm, filled with values from component, which should be of kind i_cal_valarm_component.

The function returns null when it is not of the expected kind. Free the structure with e_cal_component_alarm_free, when no longer needed.

Parameters:

component

an Component of kind i_cal_valarm_component

Returns:

a newly allocated ComponentAlarm