include/alp/hs_data_store_ext.h

Go to the documentation of this file.
00001 
00007 #if PRAGMA_ONCE
00008 #pragma once
00009 #endif
00010 
00011 #ifndef _HSDATASTORE_EXT_H_
00012 #define _HSDATASTORE_EXT_H_
00013 
00014 #include <alp/hs_common.h>
00015 
00083 #ifdef __cplusplus
00084 extern "C" {
00085 #endif
00086 
00096 typedef struct /*_AlpHsExtChangesReportSet*/
00097 { 
00098     AlpHsExternalObject* list;      
00099     uint16_t buffcount;             
00100     uint16_t size;                  
00101 } AlpHsExtChangesReportSet; 
00102 
00103 
00130 alp_status_t alp_hsds_ext_open(const _TCHAR* locURI, uint32_t userId, AlpHsDataStoreHandle* phDs);
00131 
00132 
00142 alp_status_t alp_hsds_ext_close(AlpHsDataStoreHandle hDs);
00143 
00144 
00163 alp_status_t alp_hsds_ext_is_version_current(AlpHsDataStoreHandle      hDs,
00164                                              AlpHsDataStoreVersionType type,
00165                                              uint32_t                  version,
00166                                              bool*                     isCurrent
00167                                             );
00168 
00169 
00184 alp_status_t alp_hsds_ext_read_capabilities(AlpHsDataStoreHandle hDs,
00185                                             uint32_t*            pCurrentVersion,
00186                                             size_t*              pSize,
00187                                             _TCHAR*              pBuffer
00188                                            );
00189 
00190 
00210 alp_status_t alp_hsds_ext_read_string_table(AlpHsDataStoreHandle hDs,
00211                                             AlpHsObjectTypePtr   pObjType,
00212                                             uint32_t*            pCurrentVersion,
00213                                             size_t*              pSize,
00214                                             _TCHAR*              pBuffer
00215                                            );
00216 
00217 
00218 
00255 alp_status_t alp_hsds_ext_add    (AlpHsDataStoreHandle hDs,
00256                                   AlpHsObjectTypePtr   pSrcType,
00257                                   bool                 isReferenceable,                                     
00258                                   AlpHsExternalID*     pComponentExtIds,
00259                                   size_t               componentExtIdSize,
00260                                   size_t               offset,
00261                                   bool                 moreData,
00262                                   size_t               bufSize,
00263                                   const _TCHAR*        pBuf,
00264                                   AlpHsExternalID*     pNewExtId
00265                                  );
00266 
00267 
00298 alp_status_t alp_hsds_ext_replace(AlpHsDataStoreHandle hDs,
00299                                   AlpHsObjectTypePtr   pSrcType,
00300                                   AlpHsExternalID*     pExtId,
00301                                   size_t               offset,
00302                                   bool                 moreData,
00303                                   size_t               bufSize,
00304                                   const _TCHAR*        pBuf,
00305                                   bool*                pExtIdChanged
00306                                  );
00307 
00308 
00343 alp_status_t alp_hsds_ext_update (AlpHsDataStoreHandle hDs,
00344                                   AlpHsObjectTypePtr   pSrcType,
00345                                   AlpHsExternalID*     pExtId,
00346                                   size_t               offset,
00347                                   bool                 moreData,
00348                                   size_t               bufSize,
00349                                   const _TCHAR*        pBuf,
00350                                   bool*                pExtIdChanged
00351                                  );
00352 
00353 
00385 alp_status_t alp_hsds_ext_read   (AlpHsDataStoreHandle hDs,
00386                                   AlpHsObjectTypePtr   pTgtType,
00387                                   AlpHsExternalID*     pExtId,
00388                                   size_t               offset,
00389                                   bool*                moreData,
00390                                   size_t*              pBufSize,
00391                                   _TCHAR*              pBuf
00392                                  );
00393 
00394 
00406 alp_status_t alp_hsds_ext_delete     (AlpHsDataStoreHandle hDs, AlpHsExternalID* pExtId);
00407 
00408 
00424 alp_status_t alp_hsds_ext_begin_db_transaction(AlpHsDataStoreHandle hDs); 
00425 
00426 
00437 alp_status_t alp_hsds_ext_end_db_transaction(AlpHsDataStoreHandle hDs); 
00438 
00439 
00449 alp_status_t alp_hsds_ext_rollback_db_transaction(AlpHsDataStoreHandle hDs);
00450 
00451 
00505 alp_status_t alp_hsds_ext_get_change_info(AlpHsDataStoreHandle hDs, AlpHsExtChangesReportSet* report_set, int16_t iCountRead, bool* moreData);
00506 
00507 
00522 alp_status_t alp_hsds_ext_clear_change_info(AlpHsDataStoreHandle hDs); 
00523 
00524 #ifdef __cplusplus
00525 } /* End of extern "C" */
00526 #endif
00527 
00530 #endif /* _HSDATASTORE_EXT_H_ */

Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.