enum MAPISTATUS SPropTagArray_add(TALLOC_CTX *, struct SPropTagArray *, enum MAPITAGS);
enum MAPISTATUS SPropTagArray_delete(TALLOC_CTX *, struct SPropTagArray *, uint32_t);
enum MAPISTATUS SPropTagArray_find(struct SPropTagArray, enum MAPITAGS, uint32_t *);
-const void *get_SPropValue(struct SPropValue *, uint32_t);
+const void *get_SPropValue(struct SPropValue *, enum MAPITAGS);
struct SPropValue *get_SPropValue_SRowSet(struct SRowSet *, uint32_t);
const void *get_SPropValue_SRowSet_data(struct SRowSet *, uint32_t);
-enum MAPISTATUS set_default_error_SPropValue_SRow(struct SRow *, uint32_t, void *);
+enum MAPISTATUS set_default_error_SPropValue_SRow(struct SRow *, enum MAPITAGS, void *);
struct SPropValue *get_SPropValue_SRow(struct SRow *, uint32_t);
const void *get_SPropValue_SRow_data(struct SRow *, uint32_t);
const void *find_SPropValue_data(struct SRow *, uint32_t);
const void *get_mapi_SPropValue_data(struct mapi_SPropValue *);
const void *get_SPropValue_data(struct SPropValue *);
bool set_SPropValue_proptag(struct SPropValue *, enum MAPITAGS, const void *);
-struct SPropValue *add_SPropValue(TALLOC_CTX *, struct SPropValue *, uint32_t *, uint32_t, const void *);
+struct SPropValue *add_SPropValue(TALLOC_CTX *, struct SPropValue *, uint32_t *, enum MAPITAGS, const void *);
struct mapi_SPropValue *add_mapi_SPropValue(TALLOC_CTX *, struct mapi_SPropValue *, uint16_t *, uint32_t, const void *);
bool set_SPropValue(struct SPropValue *, const void *);
uint32_t get_mapi_property_size(struct mapi_SPropValue *);
void mapi_SPropValue_array_named(mapi_object_t *, struct mapi_SPropValue_array *);
enum MAPISTATUS get_mapi_SPropValue_array_date_timeval(struct timeval *, struct mapi_SPropValue_array *, uint32_t);
enum MAPISTATUS get_mapi_SPropValue_date_timeval(struct timeval *t, struct SPropValue);
-bool set_SPropValue_proptag_date_timeval(struct SPropValue *, uint32_t, const struct timeval *);
+bool set_SPropValue_proptag_date_timeval(struct SPropValue *, enum MAPITAGS, const struct timeval *);
struct RecurrencePattern *get_RecurrencePattern(TALLOC_CTX *, struct Binary_r *);
struct AppointmentRecurrencePattern *get_AppointmentRecurrencePattern(TALLOC_CTX *mem_ctx, struct Binary_r *);
struct Binary_r *set_RecurrencePattern(TALLOC_CTX *, const struct RecurrencePattern *);
SPropTagArray->cValues -= removed;
SPropTagArray->aulPropTag = (enum MAPITAGS *) talloc_realloc(mem_ctx, SPropTagArray->aulPropTag,
uint32_t, SPropTagArray->cValues + 1);
- SPropTagArray->aulPropTag[SPropTagArray->cValues] = 0;
+ SPropTagArray->aulPropTag[SPropTagArray->cValues] = (enum MAPITAGS) 0;
return MAPI_E_SUCCESS;
}
}
_PUBLIC_ const void *get_SPropValue(struct SPropValue *lpProps,
- uint32_t ulPropTag)
+ enum MAPITAGS ulPropTag)
{
uint32_t i;
return get_SPropValue(lpProp, ulPropTag);
}
-_PUBLIC_ enum MAPISTATUS set_default_error_SPropValue_SRow(struct SRow *aRow, uint32_t ulPropTag, void *data)
+_PUBLIC_ enum MAPISTATUS set_default_error_SPropValue_SRow(struct SRow *aRow, enum MAPITAGS ulPropTag, void *data)
{
uint32_t i;
{
uint32_t i;
- if (aRow) {
- for (i = 0; i < aRow->cValues; i++) {
- if (aRow->lpProps[i].ulPropTag == mapitag) {
- return get_SPropValue_data(&(aRow->lpProps[i]));
- }
+ if (!aRow) {
+ return NULL;
+ }
+
+ for (i = 0; i < aRow->cValues; i++) {
+ if (aRow->lpProps[i].ulPropTag == mapitag) {
+ return get_SPropValue_data(&(aRow->lpProps[i]));
}
}
return NULL;
return (set_SPropValue(lpProps, data));
}
-_PUBLIC_ struct SPropValue *add_SPropValue(TALLOC_CTX *mem_ctx, struct SPropValue *lpProps, uint32_t *cValues, uint32_t aulPropTag, const void * data)
+_PUBLIC_ struct SPropValue *add_SPropValue(TALLOC_CTX *mem_ctx,
+ struct SPropValue *lpProps,
+ uint32_t *cValues,
+ enum MAPITAGS aulPropTag,
+ const void * data)
{
lpProps = talloc_realloc(mem_ctx, lpProps, struct SPropValue, *cValues + 2);
return MAPI_E_SUCCESS;
}
-_PUBLIC_ bool set_SPropValue_proptag_date_timeval(struct SPropValue *lpProps, uint32_t aulPropTag, const struct timeval *t)
+_PUBLIC_ bool set_SPropValue_proptag_date_timeval(struct SPropValue *lpProps, enum MAPITAGS aulPropTag, const struct timeval *t)
{
struct FILETIME filetime;
NTTIME time;