-int pop_open_connection (POP_DATA *);
-int pop_query_d (POP_DATA *, char *, size_t, char *);
-int pop_fetch_data (POP_DATA *, char *, char *, int (*funct) (char *, void *),
- void *);
-int pop_reconnect (CONTEXT *);
+pop_query_status pop_open_connection (POP_DATA *);
+pop_query_status pop_query (POP_DATA *, char *, size_t);
+pop_query_status pop_fetch_data (POP_DATA *, const char *, progress_t*,
+ int (*funct) (char *, void *), void *);
+pop_query_status pop_reconnect (CONTEXT *);