]> code.citadel.org Git - citadel.git/blobdiff - citadel/include/ctdl_module.h
Moved the prototypes of CtdlLoginExistingUser and CtdlTryPassword into
[citadel.git] / citadel / include / ctdl_module.h
index 71fa155340686ef1876aabcbf5f01f78f2edfa77..1d1ac91a0f591525bf4837d50768585819ff9cc8 100644 (file)
@@ -45,6 +45,8 @@
 #include "msgbase.h"
 #include "threads.h"
 #include "citadel_dirs.h"
+#include "context.h"
+
 /*
  * define macros for module init stuff
  */
@@ -295,6 +297,32 @@ void CtdlSetRelationship(struct visit *newvisit,
                         struct ctdlroom *rel_room);
 void CtdlMailboxName(char *buf, size_t n, const struct ctdluser *who, const char *prefix);
 
+int CtdlLoginExistingUser(char *authname, char *username);
+
+/*
+ * Values which may be returned by CtdlLoginExistingUser()
+ */
+enum {
+       pass_ok,
+       pass_already_logged_in,
+       pass_no_user,
+       pass_internal_error,
+       pass_wrong_password
+};
+
+int CtdlTryPassword(char *password);
+/*
+ * Values which may be returned by CtdlTryPassword()
+ */
+enum {
+       login_ok,
+       login_already_logged_in,
+       login_too_many_users,
+       login_not_found
+};
+
+
+
 
 /*
  * Expose API calls from msgbase.c