| libical-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <i-cal-component> enum ICalRestrictionKind; gint i_cal_restriction_compare (ICalRestrictionKind restr,gint count); gint i_cal_restriction_check (ICalComponent *comp);
typedef enum {
I_CAL_RESTRICTION_NONE = ICAL_RESTRICTION_NONE,
I_CAL_RESTRICTION_ZERO = ICAL_RESTRICTION_ZERO,
I_CAL_RESTRICTION_ONE = ICAL_RESTRICTION_ONE,
I_CAL_RESTRICTION_ZEROPLUS = ICAL_RESTRICTION_ZEROPLUS,
I_CAL_RESTRICTION_ONEPLUS = ICAL_RESTRICTION_ONEPLUS,
I_CAL_RESTRICTION_ZEROORONE = ICAL_RESTRICTION_ZEROORONE,
I_CAL_RESTRICTION_ONEEXCLUSIVE = ICAL_RESTRICTION_ONEEXCLUSIVE,
I_CAL_RESTRICTION_ONEMUTUAL = ICAL_RESTRICTION_ONEMUTUAL,
I_CAL_RESTRICTION_UNKNOWN = ICAL_RESTRICTION_UNKNOWN
} ICalRestrictionKind;
gint i_cal_restriction_compare (ICalRestrictionKind restr,gint count);
Compare the kind of restriction and the count to determine whether it is valid.
|
The restriction kind |
|
The number of restrictions |
Returns : |
Whether it is valid or not. -1 indicates invalid or more analysis. 1 indicates pass and 0 or 2+ indicates fail. |
Since 1.0
gint i_cal_restriction_check (ICalComponent *comp);
Check whether the ICalComponent is valid.
|
The component to be checked. |
Returns : |
Whether the comp is valid. |
Since 1.0