Capabilities and string tables are both versioned. The implementing DataStore should increment the relevant version whenever the corresponding object has changed; for example, when the DataStore supports a new mime type it should increment its capabilities version. When HotSync notices that its version of either the capabilities or a content type string table is not current, it will use these APIs to reread the relevant data.
Functions | |
| alp_status_t | alp_hsds_is_version_current (AlpHsDataStoreHandle hDs, AlpHsDataStoreVersionType type, uint32_t version, bool *isCurrent) |
| Determine whether the capabilities or string table version is current. | |
| alp_status_t | alp_hsds_read_capabilities (AlpHsDataStoreHandle hDs, uint32_t *pCurrentVersion, size_t *pSize, _TCHAR *pBuffer) |
| Read the DataStore's capabilities. | |
| alp_status_t | alp_hsds_read_string_table (AlpHsDataStoreHandle hDs, AlpHsObjectTypePtr pObjType, uint32_t *pCurrentVersion, size_t *pSize, _TCHAR *pBuffer) |
| Read the DataStore's WBXML string table for the input object type. | |
|
||||||||||||||||||||
|
Determine whether the capabilities or string table version is current.
|
|
||||||||||||||||||||
|
Read the DataStore's capabilities.
|
|
||||||||||||||||||||||||
|
Read the DataStore's WBXML string table for the input object type. The table is simply a series of null terminated strings that is terminated by two null characters.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.