]> code.citadel.org Git - citadel.git/blobdiff - webcit/tcp_sockets.h
Infrastructure: if we don't find the ical headers during boostrap, abort.
[citadel.git] / webcit / tcp_sockets.h
index 4219fe8bd16890109ed623f1af0fc6e1293d489f..a8bfb20ca3e266fa4d42e5b2d16c3590a1f18486 100644 (file)
@@ -2,7 +2,28 @@ int uds_connectsock(char *);
 int tcp_connectsock(char *, char *);
 int serv_getln(char *strbuf, int bufsize);
 int StrBuf_ServGetln(StrBuf *buf);
-int GetServerStatus(StrBuf *Line, long* FullState);
+
+/**
+ * @defgroup CoreSrv Core Server Functionality
+ */
+
+/**
+ * @ingroup CoreSrv
+ * @brief parse & check the server reply 
+ * @param Line the line containing the server reply
+ * @param FullState if you need more than just the major number, this is returns it. Ignored if NULL.
+ * @param PutImportantMessage if you want to forward the text part of the server reply to the user, specify 1; 
+ *    the result will be put into the 'Important Message' framework.
+ * @param MajorOK in case of which major number not to put the ImportantMessage? 0 for all.
+ * @return the most significant digit of the server status
+ */
+int GetServerStatusMsg(StrBuf *Line, long* FullState, int PutImportantMessage, int MajorOK);
+/**
+ * @ingroup CoreSrv
+ * @brief to migrate old calls.... 
+ */
+#define GetServerStatus(a, b) GetServerStatusMsg(a, b, 0, 0)
+
 int serv_puts(const char *string);
 
 int serv_write(const char *buf, int nbytes);