-/* $Id$
- *
+/*
* Copyright (c) 1987-2010 by the citadel.org team
*
* This program is free software; you can redistribute it and/or modify
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
+#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <sys/un.h>
#include <netdb.h>
+#include <sys/un.h>
#include <sys/poll.h>
#include <string.h>
#include <pwd.h>
#include <sys/utsname.h>
#include <libcitadel.h>
-#ifndef INADDR_NONE
-#define INADDR_NONE 0xffffffff
-#endif
-
#ifdef HAVE_ICONV
#include <iconv.h>
#endif
StrBuf *HBuf; /* Our HeaderBuffer */
StrBuf *WFBuf; /* Wildfire error logging buffer */
- HashList *vars; /* HTTP variable substitutions for this page */
StrBuf *trailing_javascript; /* extra javascript to be appended to page */
char ImportantMessage[SIZ];
StrBuf *ImportantMsg;
char last_chat_user[256];
/* Iconbar controls */
- struct __ofolder *cache_fold; /* cache the iconbar room list */
int cache_max_folders;
int cache_num_floors;
- time_t cache_timestamp;
long *IBSettingsVec; /* which icons should be shown / not shown? */
const StrBuf *floordiv_expanded; /* which floordiv currently expanded */
int GetConnected(void);
void DeleteServInfo(ServInfo **FreeMe);
int uds_connectsock(char *);
-int tcp_connectsock(char *, int);
+int tcp_connectsock(char *, char *);
int serv_getln(char *strbuf, int bufsize);
int StrBuf_ServGetln(StrBuf *buf);
int GetServerStatus(StrBuf *Line, long* FullState);
void address_book_popup(void);
void begin_ajax_response(void);
void end_ajax_response(void);
-void burn_folder_cache(time_t age);
void display_edit_task(void);
void display_edit_event(void);
int is_mobile_ua(char *user_agent);
-void embed_room_banner(void);
-HashList *GetFloorListHash(StrBuf *Target, WCTemplputParams *TP);
-HashList *GetRoomListHash(StrBuf *Target, WCTemplputParams *TP);
-int SortRoomsByListOrder(const void *room1, const void *room2);
-
/* actual supported locales */
void TmplGettext(StrBuf *Target, WCTemplputParams *TP);
void offer_languages(StrBuf *Target, int nArgs, WCTemplateToken *Token, void *Context, int ContextType);