typedef struct Z3950_connection_p *Z3950_connection;
typedef struct Z3950_resultset_p *Z3950_resultset;
typedef struct Z3950_task_p *Z3950_task;
typedef struct Z3950_connection_p *Z3950_connection;
typedef struct Z3950_resultset_p *Z3950_resultset;
typedef struct Z3950_task_p *Z3950_task;
/* create connection, connect to host, if portnum is 0, then port is
read from host string (e.g. myhost:9821) */
/* create connection, connect to host, if portnum is 0, then port is
read from host string (e.g. myhost:9821) */
Z3950_connection Z3950_connection_new (const char *host, int portnum);
/* create connection, don't connect, apply options */
Z3950_connection Z3950_connection_new (const char *host, int portnum);
/* create connection, don't connect, apply options */
Z3950_connection Z3950_connection_create (Z3950_options options);
/* connect given existing connection */
Z3950_connection Z3950_connection_create (Z3950_options options);
/* connect given existing connection */
const char *Z3950_connection_option (Z3950_connection c, const char *key,
const char *val);
/* return host for connection */
const char *Z3950_connection_option (Z3950_connection c, const char *key,
const char *val);
/* return host for connection */
const char *Z3950_connection_host (Z3950_connection c);
/* return error code (0 == success, failure otherwise). cp
holds error string on failure, addinfo holds addititional info (if any)
*/
const char *Z3950_connection_host (Z3950_connection c);
/* return error code (0 == success, failure otherwise). cp
holds error string on failure, addinfo holds addititional info (if any)
*/
const char *Z3950_resultset_option (Z3950_resultset r, const char *key,
const char *val);
/* return size of result set (hit count, AKA resultCount) */
const char *Z3950_resultset_option (Z3950_resultset r, const char *key,
const char *val);
/* return size of result set (hit count, AKA resultCount) */
int Z3950_resultset_size (Z3950_resultset r);
/* return record at pos (starting from ), render given spec in type */
int Z3950_resultset_size (Z3950_resultset r);
/* return record at pos (starting from ), render given spec in type */
-void *Z3950_resultset_get (Z3950_resultset s, int pos, const char *type,
- int *len);
+ZOOM_EXPORT
+void *Z3950_resultset_get (Z3950_resultset s, size_t pos, const char *type,
+ size_t *len);
/* ----------------------------------------------------------- */
/* records */
/* Get record information, in a form given by type */
/* ----------------------------------------------------------- */
/* records */
/* Get record information, in a form given by type */
void Z3950_record_destroy (Z3950_record rec);
/* ----------------------------------------------------------- */
/* searches */
/* create search object */
void Z3950_record_destroy (Z3950_record rec);
/* ----------------------------------------------------------- */
/* searches */
/* create search object */
/* ----------------------------------------------------------- */
/* options */
typedef const char *(*Z3950_options_callback)(void *handle, const char *name);
/* ----------------------------------------------------------- */
/* options */
typedef const char *(*Z3950_options_callback)(void *handle, const char *name);
Z3950_options_callback Z3950_options_set_callback (Z3950_options opt,
Z3950_options_callback c,
void *handle);
Z3950_options_callback Z3950_options_set_callback (Z3950_options opt,
Z3950_options_callback c,
void *handle);
void Z3950_options_addref (Z3950_options opt);
/* ----------------------------------------------------------- */
void Z3950_options_addref (Z3950_options opt);
/* ----------------------------------------------------------- */
events are pending. The positive integer specifies the
connection for which the event occurred. There's no way to get
the details yet, sigh. */
events are pending. The positive integer specifies the
connection for which the event occurred. There's no way to get
the details yet, sigh. */