Exposed CtdlLocateMessageByEuid in ctdl_module.h and deprecated
authorDave West <davew@uncensored.citadel.org>
Sun, 8 Nov 2009 22:48:01 +0000 (22:48 +0000)
committerDave West <davew@uncensored.citadel.org>
Sun, 8 Nov 2009 22:48:01 +0000 (22:48 +0000)
locate_message_by_euid in euidindex.h
Another step towards the documented coding style.

citadel/euidindex.c
citadel/euidindex.h
citadel/include/ctdl_module.h

index d68718e16804c7bb04fd532d7dd64565c4cd5dfc..c7499d832f35ccf700d427c8a35c274f380b8997 100644 (file)
@@ -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;
index 23523817c2a6e9bc2315a8196dc07ad7ca9662b8..3357b679225da057353a335bd88321347711fb04 100644 (file)
@@ -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);
index 1d1ac91a0f591525bf4837d50768585819ff9cc8..616b68edbd96ab3e1f7e7fc010c1d13c3a756885 100644 (file)
@@ -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 */