X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=textclient%2Fsrc%2Finclude%2Fcitadel_ipc.h;h=7448a663f024392c4e5ca44991819dbb5326e619;hp=cad578b618f3d784d4794dfa0d4b8929fc89d01d;hb=5a3c48d2513dab2cec3c32b37e804a891613a909;hpb=821bf33f886e4b7126798ab4de68f6049ac06d77 diff --git a/textclient/src/include/citadel_ipc.h b/textclient/src/include/citadel_ipc.h index cad578b61..7448a663f 100644 --- a/textclient/src/include/citadel_ipc.h +++ b/textclient/src/include/citadel_ipc.h @@ -9,7 +9,6 @@ #include #include -////#include "sysdep.h" #ifdef HAVE_PTHREAD_H #include #endif @@ -83,23 +82,26 @@ struct march { unsigned int march_flags2; int march_access; }; + /* - * User records. + * This is NOT the same 'struct ctdluser' from the server. */ typedef struct ctdluser ctdluser; -struct ctdluser { /* User record */ - int version; /* Cit vers. which created this rec */ - uid_t uid; /* Associate with a unix account? */ - char password[32]; /* password */ - unsigned flags; /* See US_ flags below */ - long timescalled; /* Total number of logins */ - long posted; /* Number of messages ever submitted */ - uint8_t axlevel; /* Access level */ - long usernum; /* User number (never recycled) */ - time_t lastcall; /* Date/time of most recent login */ - int USuserpurge; /* Purge time (in days) for user */ - char fullname[64]; /* Display name (primary identifier) */ +struct ctdluser { // User record + int version; // Cit vers. which created this rec + uid_t uid; // Associate with a unix account? + char password[32]; // password + unsigned flags; // See US_ flags below + long timescalled; // Total number of logins + long posted; // Number of messages ever submitted + uint8_t axlevel; // Access level + long usernum; // User number (never recycled) + time_t lastcall; // Date/time of most recent login + int USuserpurge; // Purge time (in days) for user + char fullname[64]; // Display name (primary identifier) + char emailaddrs[512]; // Internet email addresses }; + typedef struct ctdlroom ctdlroom; struct ctdlroom { char QRname[ROOMNAMELEN]; /* Name of room */ @@ -410,9 +412,10 @@ int CtdlIPCChangeHostname(CtdlIPC *ipc, const char *hostname, char *cret); int CtdlIPCChangeRoomname(CtdlIPC *ipc, const char *roomname, char *cret); int CtdlIPCChangeUsername(CtdlIPC *ipc, const char *username, char *cret); time_t CtdlIPCServerTime(CtdlIPC *ipc, char *crert); -int CtdlIPCAideGetUserParameters(CtdlIPC *ipc, const char *who, - struct ctdluser **uret, char *cret); +int CtdlIPCAideGetUserParameters(CtdlIPC *ipc, const char *who, struct ctdluser **uret, char *cret); +int CtdlIPCAideGetEmailAddresses(CtdlIPC *ipc, const char *who, char *, char *cret); int CtdlIPCAideSetUserParameters(CtdlIPC *ipc, const struct ctdluser *uret, char *cret); +int CtdlIPCAideSetEmailAddresses(CtdlIPC *ipc, const char *who, char *emailaddrs, char *cret); int CtdlIPCRenameUser(CtdlIPC *ipc, char *oldname, char *newname, char *cret); int CtdlIPCGetMessageExpirationPolicy(CtdlIPC *ipc, GPEXWhichPolicy which, struct ExpirePolicy **policy, char *cret);