API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

PIM_IRECORDSTORE_GETRECORD()

Brew Release
Brew MP 1.0.2
See Also
pim_IRecordStore_GetChangesSince() pim_IRecordStore Error Codes
Description
This function retrieves the record with the given ID from the given device. Note that a record id is only unique per device.
Interface
Prototype
  •    AEEResult pim_IRecordStore_GetRecord(pim_IRecordStore* _pif, 
                                            pim_IRecordStore_RecordID ID, 
                                            int Offset, 
                                            unsigned char* Entry, 
                                            int EntryLen, 
                                            int* EntryLenReq)
    
Return
  • AEE_SUCCESS if successful.
    pim_IRecordStore_EINVALIDRECID if invalid Record ID is passed in.
    AEE_EWOULDBLOCK if the record store is blocked from reading a record.
    AEE_EPRIVLEVEL if privileges are insufficient for this operation.
    Error code otherwise
Side Effect
  • None
Comments
Not all class implementations may support partial record retrieval. If a class implementation supports partial record retrieval, it will return the record beginning at Offset and upto the size of provided Entry buffer. Applications should consult EntryLenReq to find out if more data is present for the record.