X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=textclient%2Ftextclient.h;h=169f6935dac0bedac8aa14fcce90eb6b914e96d8;hb=defbf0ec0505989b8e6b714ffd8de9792b465398;hp=0dfb14c76d2b5b95c02ec66aefd47e214e2626e0;hpb=48537c783a8d9769e005719f1268f83b1598e09e;p=citadel.git diff --git a/textclient/textclient.h b/textclient/textclient.h index 0dfb14c76..169f6935d 100644 --- a/textclient/textclient.h +++ b/textclient/textclient.h @@ -1,19 +1,17 @@ -/* - * Copyright (c) 1987-2018 by the citadel.org team - * - * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +// Copyright (c) 1987-2020 by the citadel.org team +// +// This program is open source software. Use, duplication, and/or +// disclosure are subject to the GNU General Purpose License version 3. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. #define UDS "_UDS_" #define DEFAULT_HOST "localhost" #define DEFAULT_PORT "504" -#define CLIENT_VERSION 924 +#define CLIENT_VERSION 926 #define CLIENT_TYPE 0 /* commands we can send to the stty_ctdl() routine */ @@ -56,6 +54,10 @@ enum { #define GF_SKIP 1 /* <;S>kip floor mode */ #define GF_ZAP 2 /* <;Z>ap floor mode */ +/* Can messages be entered in this room? */ +#define ENTMSG_OK_NO 0 /* You may not enter messages here */ +#define ENTMSG_OK_YES 1 /* Go ahead! */ +#define ENTMSG_OK_BLOG 2 /* Yes, but warn the user about how blog rooms work */ /* * Colors for color() command @@ -139,8 +141,6 @@ struct CtdlServInfo { char sysadm[64]; char moreprompt[256]; int ok_floors; - int paging_level; - int supports_qnop; int supports_ldap; int newuser_disabled; char default_cal_zone[256]; @@ -331,6 +331,7 @@ struct ctdlipcmessage { char mime_chosen[SIZ]; /* Chosen MIME part to output */ char content_type[SIZ]; /* How would you like that? */ char references[SIZ]; /* Thread references */ + int is_local; /* Nonzero if the message originated on the local system */ }; @@ -479,9 +480,6 @@ int CtdlIPCTerminateSession(CtdlIPC *ipc, int sid, char *cret); int CtdlIPCTerminateServerNow(CtdlIPC *ipc, char *cret); int CtdlIPCTerminateServerScheduled(CtdlIPC *ipc, int mode, char *cret); int CtdlIPCEnterSystemMessage(CtdlIPC *ipc, const char *filename, const char *text, char *cret); -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 CtdlIPCAideGetEmailAddresses(CtdlIPC *ipc, const char *who, char *, char *cret);