Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/commonal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16 by aga, Thu Jan 13 04:19:22 2005 UTC revision 1.17 by aga, Fri Jan 14 10:36:59 2005 UTC
# Line 9  Line 9 
9  #include "account.h"  #include "account.h"
10  #include "group.h"  #include "group.h"
11  #include "criteria.h"  #include "criteria.h"
12    #include "item.h"
13    #include "index.h"
14    
15  #if defined( WIN32 )  #if defined( WIN32 )
16  #define EXPORTDLL extern "C" __declspec(dllexport)  #define EXPORTDLL extern "C" __declspec(dllexport)
# Line 49  Line 51 
51  #define XNP_GROUP_GNAME_LEN 255  #define XNP_GROUP_GNAME_LEN 255
52  #define XNP_GROUP_GDESC_LEN 255  #define XNP_GROUP_GDESC_LEN 255
53    
54    #define XNP_ITEM_SUBTYPE_LEN 255
55    #define XNP_ITEM_TITLE_LEN 255
56    #define XNP_ITEM_KEYWORDS_LEN 65535
57    #define XNP_ITEM_DESCRIPTION_LEN 65535
58    
59    
60  // definition of default IDs  // definition of default IDs
61  #define DEFAULT_PLATFORM_GROUP_ID 1    //<  #define DEFAULT_PLATFORM_GROUP_ID 1    //<
# Line 86  EXPORTDLL result_t createSession( const Line 93  EXPORTDLL result_t createSession( const
93  EXPORTDLL result_t getSession( sessionid_t sess_id, const session_t** session );  EXPORTDLL result_t getSession( sessionid_t sess_id, const session_t** session );
94  EXPORTDLL bool isValidSessionID( sessionid_t sess_id );  EXPORTDLL bool isValidSessionID( sessionid_t sess_id );
95    
96    EXPORTDLL result_t getAllIndexes( sessionid_t sess_id, criteria_t *cri, const index_t **indexes, int *indexesLen );
97    EXPORTDLL result_t getIndexes( sessionid_t sid, indexid_t parentXID, criteria_t *cri, const index_t **indexes, int *indexesLen );
98    EXPORTDLL result_t insertIndex( sessionid_t sid, index_t *index, indexid_t *xid );
99    EXPORTDLL result_t updateIndex( sessionid_t sid,  index_t *index );
100    EXPORTDLL result_t deleteIndex( sessionid_t sid,  indexid_t xid);
101    EXPORTDLL result_t getIndex( sessionid_t sid,  indexid_t xid, const index_t **index );
102    EXPORTDLL bool isIndexReadable( sessionid_t sid,  indexid_t xid );
103    EXPORTDLL bool isIndexWritable( sessionid_t sid,  indexid_t xid );
104    EXPORTDLL result_t swapIndexSortNumber( sessionid_t sid, indexid_t xid1, indexid_t xid2 );
105    
106  EXPORTDLL void freeAccount( const account_t* );  EXPORTDLL void freeAccount( const account_t* );
107  EXPORTDLL void freeGroup( const group_t* );  EXPORTDLL void freeGroup( const group_t* );
108  EXPORTDLL void freeSession( const session_t* );  EXPORTDLL void freeSession( const session_t* );
109  EXPORTDLL void freeUID( const int* );  EXPORTDLL void freeUID( const int* );
110  EXPORTDLL void freeGID( const int* );  EXPORTDLL void freeGID( const int* );
111    EXPORTDLL void freeIndex( const index_t* ptr );
112    EXPORTDLL void freeIndexID( const indexid_t* ptr );
113    
114  EXPORTDLL void setLastErrorString( const char* str );  EXPORTDLL void setLastErrorString( const char* str );
115  EXPORTDLL const char* getLastErrorString();  EXPORTDLL const char* getLastErrorString();

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26