From fab382acec9841893c256478aa6ebfb08fcf80f4 Mon Sep 17 00:00:00 2001 From: Dave West Date: Sun, 8 Nov 2009 22:48:01 +0000 Subject: [PATCH] Exposed CtdlLocateMessageByEuid in ctdl_module.h and deprecated locate_message_by_euid in euidindex.h Another step towards the documented coding style. --- citadel/euidindex.c | 4 ++++ citadel/euidindex.h | 3 ++- citadel/include/ctdl_module.h | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/citadel/euidindex.c b/citadel/euidindex.c index d68718e16..c7499d832 100644 --- a/citadel/euidindex.c +++ b/citadel/euidindex.c @@ -91,6 +91,10 @@ int DoesThisRoomNeedEuidIndexing(struct ctdlroom *qrbuf) { * its message number. */ long locate_message_by_euid(char *euid, struct ctdlroom *qrbuf) { + return CtdlLocateMessageByEuid (euid, qrbuf); +} + +long CtdlLocateMessageByEuid(char *euid, struct ctdlroom *qrbuf) { char *key; int key_len; struct cdbdata *cdb_euid; diff --git a/citadel/euidindex.h b/citadel/euidindex.h index 23523817c..3357b6792 100644 --- a/citadel/euidindex.h +++ b/citadel/euidindex.h @@ -6,7 +6,8 @@ */ int DoesThisRoomNeedEuidIndexing(struct ctdlroom *qrbuf); -long locate_message_by_euid(char *euid, struct ctdlroom *qrbuf); +/* locate_message_by_euid is deprecated. Use CtdlLocateMessageByEuid instead */ +long locate_message_by_euid(char *euid, struct ctdlroom *qrbuf) __attribute__ ((deprecated)); void index_message_by_euid(char *euid, struct ctdlroom *qrbuf, long msgnum); void rebuild_euid_index(void); void cmd_euid(char *cmdbuf); diff --git a/citadel/include/ctdl_module.h b/citadel/include/ctdl_module.h index 1d1ac91a0..616b68edb 100644 --- a/citadel/include/ctdl_module.h +++ b/citadel/include/ctdl_module.h @@ -330,4 +330,13 @@ enum { char *CtdlGetSysConfig(char *sysconfname); void CtdlPutSysConfig(char *sysconfname, char *sysconfdata); + + + +/* + * Expose API calls from euidindex.c + */ +long CtdlLocateMessageByEuid(char *euid, struct ctdlroom *qrbuf); + + #endif /* CTDL_MODULE_H */ -- 2.30.2