diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-06-19 13:09:15 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-06-19 13:09:15 +0300 |
commit | 2022362f1c270b2c85df3b7a4c70070dddbd62c3 (patch) | |
tree | 3a2e51f95d4cd87ccd35bcb55c0fb8407723c699 /include | |
parent | b6d5ac0de6b88208c7c59ddcc88f8d128e6d1dd5 (diff) | |
download | smap-2022362f1c270b2c85df3b7a4c70070dddbd62c3.tar.gz smap-2022362f1c270b2c85df3b7a4c70070dddbd62c3.tar.bz2 |
Fix invocation of database initialization methods. Update server docs.
* include/smap/module.h (smap_module) <smap_init_db>: Change
signature: pass database name as the first argument.
* modules/echo/echo.c (echo_init_db): Update signature.
* modules/guile/getpw.scm (smap-open): Likewise.
* modules/guile/guile.c (_guile_database)<dbname>: new member.
(call_init_handler): Pass #f if dbname is NULL.
(guile_init_db): Initialize db->dbname; fix invocation of
init_fun.
* modules/mailutils/mailutils.c (_mu_smap_db)<id>: New member.
(_mu_smap_result)<db>: New member.
(expand_reply_text): Initialize "db" key to the name of
the database.
(_mu_auth_query, _mu_mbq_query): Set res.db
(mod_mailutils_init_db): Update signature.
Initialize db->id.
* doc/ex-meta1.texi: New file.
* doc/Makefile.am (smap_TEXINFOS): Add ex-meta1.texi.
* doc/smap.texi: Finish server documentation.
Diffstat (limited to 'include')
-rw-r--r-- | include/smap/module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/smap/module.h b/include/smap/module.h index 5c265b8..120bf6e 100644 --- a/include/smap/module.h +++ b/include/smap/module.h @@ -39,7 +39,7 @@ struct smap_module { unsigned smap_version; unsigned smap_capabilities; /* Unused so far */ int (*smap_init)(int argc, char **argv); - smap_database_t (*smap_init_db)(int argc, char **argv); + smap_database_t (*smap_init_db)(const char *dbid, int argc, char **argv); int (*smap_free_db)(smap_database_t dbp); int (*smap_open) (smap_database_t hp); int (*smap_close) (smap_database_t hp); |