include/alp/hs_comparator.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved.
00003  * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved.
00004  *****************************************************************************/
00012 #if PRAGMA_ONCE
00013 #pragma once
00014 #endif
00015 
00016 #ifndef _HSCOMPARATOR_H_
00017 #define _HSCOMPARATOR_H_
00018 
00019 
00020 #include <alp/hs_common.h>
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00061 /*****************************************************************************
00062 * Typedefs 
00063 *****************************************************************************/
00069 typedef void* AlpHsObjectComparatorHandle;
00070 typedef void* AlpHsInternalObjectHandle;
00071 
00073 
00074 /*****************************************************************************
00075 * Functions and Grouping Objects
00076 *****************************************************************************/
00094 alp_status_t alp_hs_comparator_begin            (_TCHAR*                        id,
00095                                                  AlpHsObjectComparatorHandle*   pComparatorHandle
00096                                                  );
00097     
00112 alp_status_t alp_hs_external_comparator_apply   (AlpHsObjectComparatorHandle   comparatorHandle,
00113                                                  size_t                        size1,
00114                                                  _TCHAR*                       buffer1,
00115                                                  size_t                        size2,
00116                                                  _TCHAR*                       buffer2,
00117                                                  int*                          comparisonResult
00118                                                  );
00119         
00135 alp_status_t alp_hs_internal_comparator_convert (AlpHsObjectComparatorHandle comparatorHandle,
00136                                                  size_t                      size,
00137                                                  _TCHAR*                     buffer,
00138                                                  AlpHsInternalObjectHandle*  pObjectHandle
00139                                                  );
00140 
00154 alp_status_t alp_hs_internal_comparator_apply(AlpHsObjectComparatorHandle    comparatorHandle,
00155                                                                                           AlpHsInternalObjectHandle      objectHandle1,
00156                                                                                           AlpHsInternalObjectHandle      objectHandle2,
00157                                                                                           int*                           comparisonResult
00158                                                                                           );
00159                 
00173 alp_status_t alp_hs_internal_comparator_release (AlpHsObjectComparatorHandle    comparatorHandle,
00174                                                  AlpHsInternalObjectHandle      objectHandle
00175                                                  );
00176 
00194 alp_status_t alp_hs_canonical_comparator_convert(AlpHsObjectComparatorHandle    comparatorHandle,
00195                                                  size_t                         size,
00196                                                  _TCHAR*                        buffer,
00197                                                  size_t*                        pSize,
00198                                                  _TCHAR**                       pBuffer
00199                                                  );
00200         
00214 alp_status_t alp_hs_canonical_comparator_release(AlpHsObjectComparatorHandle    comparatorHandle,
00215                                                  size_t                         size,
00216                                                  _TCHAR*                        buffer
00217                                                  );
00218         
00231 alp_status_t alp_hs_comparator_end              (AlpHsObjectComparatorHandle    comparatorHandle);
00232  
00234 
00236 
00237 #ifdef __cplusplus
00238 }
00239 #endif
00240 
00241 #endif // _HSCOMPARATOR_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.