X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fuser_ops.h;h=f58ec1bb6489cfbdfa5c1dfefc2598d58742ee1e;hb=HEAD;hp=c0cf9f9ebd31cd4425c2281922ee41194d8a6e77;hpb=34fd48d16bdc678356d400eb1584fe3bb13d2cee;p=citadel.git diff --git a/citadel/user_ops.h b/citadel/user_ops.h deleted file mode 100644 index c0cf9f9eb..000000000 --- a/citadel/user_ops.h +++ /dev/null @@ -1,58 +0,0 @@ -/* $Id$ */ -int hash (char *str); -/* getuser is deprecated, use CtdlGetUser instead */ -int getuser (struct ctdluser *, char *) __attribute__ ((deprecated)); -/* lgetuser is deprecated, use CtdlGetUserLock instead */ -int lgetuser (struct ctdluser *, char *) __attribute__ ((deprecated)); -/* putuser is deprecated, use CtdlPutUser instead */ -void putuser (struct ctdluser *) __attribute__ ((deprecated)); -/* lputuser is deprecated, use CtdlPutUserLock instead */ -void lputuser (struct ctdluser *) __attribute__ ((deprecated)); -int is_aide (void); -int is_room_aide (void); -/* getuserbynumber is deprecated, use CtdlGetUserByNumber instead */ -int getuserbynumber (struct ctdluser *usbuf, long int number) __attribute__ ((deprecated)); -void rebuild_usersbynumber(void); -void cmd_user (char *cmdbuf); -void session_startup (void); -void logged_in_response(void); -void logout (void); -int purge_user (char *pname); -int create_user (char *newusername, int become_user); -void do_login(void); -int CtdlInvtKick(char *iuser, int op); -void ForEachUser(void (*CallBack)(struct ctdluser *EachUser, void *out_data), - void *in_data); -void ListThisUser(struct ctdluser *usbuf, void *data); -int NewMailCount(void); -int InitialMailCheck(void); -void put_visit(struct visit *newvisit); -/* MailboxName is deprecated us CtdlMailboxName instead */ -void MailboxName(char *buf, size_t n, const struct ctdluser *who, - const char *prefix) __attribute__ ((deprecated)); -int GenerateRelationshipIndex( char *IndexBuf, - long RoomID, - long RoomGen, - long UserID); -int CtdlAssociateSystemUser(char *screenname, char *loginname); - - - - -void CtdlSetPassword(char *new_pw); - -int CtdlForgetThisRoom(void); - -void cmd_newu (char *cmdbuf); -void BumpNewMailCounter(long); -void start_chkpwd_daemon(void); - - -#define RENAMEUSER_OK 0 /* Operation succeeded */ -#define RENAMEUSER_LOGGED_IN 1 /* Cannot rename a user who is currently logged in */ -#define RENAMEUSER_NOT_FOUND 2 /* The old user name does not exist */ -#define RENAMEUSER_ALREADY_EXISTS 3 /* An account with the desired new name already exists */ - -int rename_user(char *oldname, char *newname); -INLINE void makeuserkey(char *key, char *username); -int internal_create_user (char *username, struct ctdluser *usbuf, uid_t uid);