@@ -291,7 +291,7 @@ static bool oxcical_tzdefinition_to_binary(
291291 return false ;
292292 for (size_t i = 0 ; i < ptz_definition->crules ; ++i)
293293 ptz_definition->prules [i].flags = tzrule_flags;
294- if (ext_push.p_tzdef (*ptz_definition) != EXT_ERR_SUCCESS )
294+ if (ext_push.p_tzdef (*ptz_definition) != pack_result::ok )
295295 return false ;
296296 pbin->cb = ext_push.m_offset ;
297297 return true ;
@@ -303,7 +303,7 @@ static bool oxcical_timezonestruct_to_binary(
303303 EXT_PUSH ext_push;
304304
305305 if (!ext_push.init (pbin->pb , 256 , 0 ) ||
306- ext_push.p_tzstruct (*ptzstruct) != EXT_ERR_SUCCESS )
306+ ext_push.p_tzstruct (*ptzstruct) != pack_result::ok )
307307 return false ;
308308 pbin->cb = ext_push.m_offset ;
309309 return true ;
@@ -1127,7 +1127,7 @@ static bool oxcical_parse_uid(const ical_component &main_event,
11271127 if (strncasecmp (pvalue, EncodedGlobalId_hex, 32 ) == 0 &&
11281128 decode_hex_binary (pvalue, tmp_buff, std::size (tmp_buff))) {
11291129 ext_pull.init (tmp_buff, tmp_len / 2 , alloc, 0 );
1130- if (ext_pull.g_goid (&globalobjectid) == EXT_ERR_SUCCESS &&
1130+ if (ext_pull.g_goid (&globalobjectid) == pack_result::ok &&
11311131 ext_pull.m_offset == tmp_len / 2 ) {
11321132 if (globalobjectid.year < 1601 || globalobjectid.year > 4500 ||
11331133 globalobjectid.month > 12 || 0 == globalobjectid.month ||
@@ -1155,7 +1155,7 @@ static bool oxcical_parse_uid(const ical_component &main_event,
11551155 memcpy (globalobjectid.data .pb + 12 , pvalue, tmp_len);
11561156 MAKE_GLOBALOBJID:
11571157 if (!ext_push.init (tmp_buff, 1024 , 0 ) ||
1158- ext_push.p_goid (globalobjectid) != EXT_ERR_SUCCESS )
1158+ ext_push.p_goid (globalobjectid) != pack_result::ok )
11591159 return false ;
11601160 tmp_bin.cb = ext_push.m_offset ;
11611161 tmp_bin.pc = tmp_buff;
@@ -1169,7 +1169,7 @@ static bool oxcical_parse_uid(const ical_component &main_event,
11691169 globalobjectid.month = 0 ;
11701170 globalobjectid.day = 0 ;
11711171 if (!ext_push.init (tmp_buff, 1024 , 0 ) ||
1172- ext_push.p_goid (globalobjectid) != EXT_ERR_SUCCESS )
1172+ ext_push.p_goid (globalobjectid) != pack_result::ok )
11731173 return false ;
11741174 tmp_bin.cb = ext_push.m_offset ;
11751175 tmp_bin.pc = tmp_buff;
@@ -1528,7 +1528,7 @@ static bool oxcical_parse_appointment_recurrence(APPOINTMENT_RECUR_PAT *apr,
15281528 EXT_PUSH ext_push;
15291529
15301530 if (!ext_push.init (nullptr , 0 , EXT_FLAG_UTF16) ||
1531- ext_push.p_apptrecpat (*apr) != EXT_ERR_SUCCESS )
1531+ ext_push.p_apptrecpat (*apr) != pack_result::ok )
15321532 return false ;
15331533 tmp_bin.cb = ext_push.m_offset ;
15341534 tmp_bin.pb = ext_push.m_udata ;
@@ -3114,7 +3114,7 @@ static const char *oxcical_export_uid(const MESSAGE_CONTENT &msg,
31143114 EXT_PULL ext_pull;
31153115
31163116 ext_pull.init (bin->pb , bin->cb , alloc, 0 );
3117- if (ext_pull.g_goid (&goid) != EXT_ERR_SUCCESS )
3117+ if (ext_pull.g_goid (&goid) != pack_result::ok )
31183118 return " E-2215: PidLidGlobalObjectId contents not recognized" ;
31193119 if (goid.data .pb != nullptr && goid.data .cb >= 12 &&
31203120 memcmp (goid.data .pb , ThirdPartyGlobalId, 12 ) == 0 ) {
@@ -3133,7 +3133,7 @@ static const char *oxcical_export_uid(const MESSAGE_CONTENT &msg,
31333133 goid.month = 0 ;
31343134 goid.day = 0 ;
31353135 if (!ext_push.init (buf, sizeof (buf), 0 ) ||
3136- ext_push.p_goid (goid) != EXT_ERR_SUCCESS )
3136+ ext_push.p_goid (goid) != pack_result::ok )
31373137 return " E-2223" ;
31383138 if (!encode_hex_binary (buf, ext_push.m_offset ,
31393139 buf1, sizeof (buf1)))
@@ -3148,9 +3148,9 @@ static const char *oxcical_export_uid(const MESSAGE_CONTENT &msg,
31483148 goid.data .pc = buf1;
31493149 EXT_PUSH ext_push;
31503150 if (!ext_push.init (buf1, 16 , 0 ) ||
3151- ext_push.p_guid (GUID::random_new ()) != EXT_ERR_SUCCESS ||
3151+ ext_push.p_guid (GUID::random_new ()) != pack_result::ok ||
31523152 !ext_push.init (buf, std::size (buf), 0 ) ||
3153- ext_push.p_goid (goid) != EXT_ERR_SUCCESS )
3153+ ext_push.p_goid (goid) != pack_result::ok )
31543154 return " E-2224" ;
31553155 if (!encode_hex_binary (buf, ext_push.m_offset , buf1,
31563156 sizeof (buf1)))
@@ -3216,7 +3216,7 @@ static const char *oxcical_export_recid(const MESSAGE_CONTENT &msg,
32163216 GLOBALOBJECTID globalobjectid;
32173217
32183218 ext_pull.init (bin->pb , bin->cb , alloc, 0 );
3219- if (ext_pull.g_goid (&globalobjectid) != EXT_ERR_SUCCESS )
3219+ if (ext_pull.g_goid (&globalobjectid) != pack_result::ok )
32203220 return " E-2218: PidLidGlobalObjectId contents not recognized" ;
32213221 itime.year = globalobjectid.year ;
32223222 itime.month = globalobjectid.month ;
@@ -3479,7 +3479,7 @@ static std::string oxcical_export_internal(const char *method, const char *tzid,
34793479 if (bin != nullptr ) {
34803480 EXT_PULL ext_pull;
34813481 ext_pull.init (bin->pb , bin->cb , alloc, EXT_FLAG_UTF16);
3482- if (ext_pull.g_apptrecpat (&apprecurr) != EXT_ERR_SUCCESS )
3482+ if (ext_pull.g_apptrecpat (&apprecurr) != pack_result::ok )
34833483 return " E-2204: PidLidAppointmentRecur contents not recognized" ;
34843484 b_recurrence = true ;
34853485 }
@@ -3512,7 +3512,7 @@ static std::string oxcical_export_internal(const char *method, const char *tzid,
35123512 TIMEZONESTRUCT tz_struct;
35133513
35143514 ext_pull.init (bin->pb , bin->cb , alloc, 0 );
3515- if (ext_pull.g_tzdef (&tz_definition) != EXT_ERR_SUCCESS )
3515+ if (ext_pull.g_tzdef (&tz_definition) != pack_result::ok )
35163516 return " E-2207: PidLidAppointmentTimeZoneDefinitionRecur contents not recognized" ;
35173517 tzid = tz_definition.keyname ;
35183518 oxcical_convert_to_tzstruct (&tz_definition, &tz_struct);
@@ -3531,7 +3531,7 @@ static std::string oxcical_export_internal(const char *method, const char *tzid,
35313531 TIMEZONESTRUCT tz_struct;
35323532
35333533 ext_pull.init (bin->pb , bin->cb , alloc, 0 );
3534- if (ext_pull.g_tzdef (&tz_definition) != EXT_ERR_SUCCESS )
3534+ if (ext_pull.g_tzdef (&tz_definition) != pack_result::ok )
35353535 return " E-2209: PidLidAppointmentTimeZoneDefinitionEndDisplay contents not recognized" ;
35363536 tzid = tz_definition.keyname ;
35373537 oxcical_convert_to_tzstruct (&tz_definition, &tz_struct);
@@ -3551,7 +3551,7 @@ static std::string oxcical_export_internal(const char *method, const char *tzid,
35513551 TIMEZONESTRUCT tz_struct;
35523552
35533553 ext_pull.init (bin->pb , bin->cb , alloc, 0 );
3554- if (ext_pull.g_tzstruct (&tz_struct) != EXT_ERR_SUCCESS ) {
3554+ if (ext_pull.g_tzstruct (&tz_struct) != pack_result::ok ) {
35553555 mlog (LV_ERR, " E-2205: %s: PidLidTimeZoneStruct contents not recognized so TZ won't be exported" , log_id);
35563556 } else {
35573557 ptz_component = oxcical_export_timezone (
0 commit comments