| 15 |
#include "index.h" |
#include "index.h" |
| 16 |
#include "changelog.h" |
#include "changelog.h" |
| 17 |
#include "pubmed.h" |
#include "pubmed.h" |
| 18 |
|
#include "amazonbook.h" |
| 19 |
|
|
| 20 |
#if defined( WIN32 ) |
#if defined( WIN32 ) |
| 21 |
#define EXPORTDLL extern "C" __declspec(dllexport) |
#define EXPORTDLL extern "C" __declspec(dllexport) |
| 123 |
EXPORTDLL bool getItemPermission( sessionid_t sid, itemid_t iid, itemop_t op ); |
EXPORTDLL bool getItemPermission( sessionid_t sid, itemid_t iid, itemop_t op ); |
| 124 |
EXPORTDLL bool getIndexPermission( sessionid_t sid, indexid_t xid, indexop_t op ); |
EXPORTDLL bool getIndexPermission( sessionid_t sid, indexid_t xid, indexop_t op ); |
| 125 |
|
|
|
EXPORTDLL result_t getChangeLog( sessionid_t sid, itemid_t iid, changelog_t** logs, int logsLen ); |
|
|
|
|
| 126 |
EXPORTDLL bool isValidSessionID( sessionid_t sess_id ); |
EXPORTDLL bool isValidSessionID( sessionid_t sess_id ); |
| 127 |
|
|
| 128 |
EXPORTDLL result_t getAllIndexes( sessionid_t sess_id, criteria_t *cri, const index_t **indexes, int *indexesLen ); |
EXPORTDLL result_t getAllIndexes( sessionid_t sess_id, criteria_t *cri, const index_t **indexes, int *indexesLen ); |
| 138 |
EXPORTDLL result_t getConfigValue( const char* key, char** value ); |
EXPORTDLL result_t getConfigValue( const char* key, char** value ); |
| 139 |
EXPORTDLL result_t setConfigValue( const char* key, const char* value ); |
EXPORTDLL result_t setConfigValue( const char* key, const char* value ); |
| 140 |
|
|
| 141 |
result_t pubmedComplete( pubmedid_t pmid, const pubmed_t** pubmed ); |
EXPORTDLL result_t pubmedComplete( pubmedid_t pmid, const pubmed_t** pubmed ); |
| 142 |
|
EXPORTDLL result_t amazonComplete( const char* url, const amazonbook_t** pubmed ); |
| 143 |
|
|
| 144 |
EXPORTDLL void freeAccount( const account_t* ); |
EXPORTDLL void freeAccount( const account_t* ); |
| 145 |
EXPORTDLL void freeGroup( const group_t* ); |
EXPORTDLL void freeGroup( const group_t* ); |
| 154 |
EXPORTDLL void freeChangeLog( const changelog_t* ptr ); |
EXPORTDLL void freeChangeLog( const changelog_t* ptr ); |
| 155 |
EXPORTDLL void freePubmed( const pubmed_t* ptr ); |
EXPORTDLL void freePubmed( const pubmed_t* ptr ); |
| 156 |
|
|
|
EXPORTDLL void setLastErrorString( const char* str ); |
|
| 157 |
EXPORTDLL const char* getLastErrorString(); |
EXPORTDLL const char* getLastErrorString(); |
| 158 |
|
|
| 159 |
EXPORTDLL result_t getChangeLogs( sessionid_t sid, itemid_t itemid, const changelog_t** logs, int* logsLen ); |
EXPORTDLL result_t getChangeLogs( sessionid_t sid, itemid_t itemid, const changelog_t** logs, int* logsLen ); |