summaryrefslogtreecommitdiffstats
path: root/src/newmail.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newmail.h')
-rw-r--r--src/newmail.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newmail.h b/src/newmail.h
index 109a87d..dcc813d 100644
--- a/src/newmail.h
+++ b/src/newmail.h
@@ -134,14 +134,14 @@ struct nm_info {
* @param spool A path to a configuration file
* @param user The user pointer specified on nm_list() invocation
*/
-typedef void (*nm_enum_cb_t) (const char *spool, const void*user);
+typedef void (*nm_enum_cb_t) (const char *spool, void*user);
/** A prototype for callback functions for asynchronous mail spool queries.
* @param s The mail spool belonging to this response
* @param status A pointer to a structure describing the mail spool status or NULL, if an error occured. In this case, nm_errno is set.
* @param user The user pointer specified on nm_query_submit() invocation
*/
-typedef void (*nm_query_cb_t) (struct nm_spool *s, struct nm_status *status, const void *user);
+typedef void (*nm_query_cb_t) (struct nm_spool *s, struct nm_status *status, void *user);
/** A pointer to a malloc() compatible function which is used by
* libnewmail for allocating memory. Initially set to libc's malloc().
@@ -164,7 +164,7 @@ extern void (*nm_free)(void *);
* last failure. This is only valid when NM_ERROR_EXPLANATION is set
* in nm_errno.
*/
-extern char *nm_explanation;
+extern const char *nm_explanation;
/** A variable describing the last error occured. Only valid when the
* last API function call returned a failure.
@@ -209,7 +209,7 @@ int nm_query(struct nm_spool *s, enum nm_query query, struct nm_status *status);
* @param user An arbitrary pointer to be passed to cb
* @return zero on success, negative on failure. In the latter case nm_errno is set.
*/
-int nm_query_submit(struct nm_spool *s, enum nm_query query, oop_source *oop, nm_query_cb_t cb, const void *user);
+int nm_query_submit(struct nm_spool *s, enum nm_query query, oop_source *oop, nm_query_cb_t cb, void *user);
/** Show an X11 configuration dialog for the specified mail spool -- Currently an NOOP
* This function will run an external configuration program for the specific mail spool eventually.
@@ -234,7 +234,7 @@ int nm_info(struct nm_spool *s, struct nm_info *info);
* is zero, no mail spool is configured, you probably should try a
* nm_open(NULL) next.
*/
-int nm_list(nm_enum_cb_t cb, const void*user);
+int nm_list(nm_enum_cb_t cb, void *user);
/** Return a textual representation of the given error triplet.
* @param n A libnewmail error condition (e.g. nm_errno)