diff options
author | Lennart Poettering <lennart@poettering.net> | 2003-10-22 22:59:07 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2003-10-22 22:59:07 +0000 |
commit | f507edf2917fd39ba7d66eea0ff9b16c8d5ffa56 (patch) | |
tree | 8ae2cd6f85604c6b27532d9343c692e1ea671324 /src/newmail.h | |
parent | 52a7a526ac02a83952bff60fe25c3bbd967bb6f3 (diff) |
some const fixes
git-svn-id: file:///home/lennart/svn/public/libnewmail/trunk@31 2d4e79f2-dfba-0310-a9f4-9628e67fcdf4
Diffstat (limited to 'src/newmail.h')
-rw-r--r-- | src/newmail.h | 10 |
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) |