1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Tidy headers

This commit is contained in:
James Booth 2016-07-24 15:43:51 +01:00
parent 5bc38b6bc2
commit 0a57c4de78
73 changed files with 247 additions and 229 deletions

View File

@ -41,17 +41,17 @@
#include <dirent.h>
#include "common.h"
#include "tools/parser.h"
#include "ui/win_types.h"
#include "command/cmd_funcs.h"
#include "config/preferences.h"
#include "config/scripts.h"
#include "command/cmd_ac.h"
#include "command/cmd_funcs.h"
#include "tools/parser.h"
#include "plugins/plugins.h"
#include "ui/win_types.h"
#include "ui/window_list.h"
#include "xmpp/muc.h"
#include "xmpp/xmpp.h"
#include "xmpp/roster_list.h"
#include "ui/window_list.h"
#include "plugins/plugins.h"
#include "command/cmd_ac.h"
#ifdef HAVE_LIBGPGME
#include "pgp/gpg.h"

View File

@ -48,29 +48,29 @@
#include <glib.h>
#include "xmpp/chat_session.h"
#include "profanity.h"
#include "log.h"
#include "common.h"
#include "command/cmd_defs.h"
#include "command/cmd_funcs.h"
#include "command/cmd_ac.h"
#include "common.h"
#include "config/accounts.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "config/tlscerts.h"
#include "config/scripts.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "xmpp/jid.h"
#include "log.h"
#include "xmpp/muc.h"
#include "plugins/plugins.h"
#include "profanity.h"
#include "tools/autocomplete.h"
#include "tools/parser.h"
#include "tools/tinyurl.h"
#include "xmpp/xmpp.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "xmpp/jid.h"
#include "xmpp/chat_session.h"
#include "xmpp/muc.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"

View File

@ -49,41 +49,45 @@
#include <langinfo.h>
#include <ctype.h>
#include "xmpp/chat_session.h"
#include "profanity.h"
#include "log.h"
#include "common.h"
#include "command/cmd_funcs.h"
#include "command/cmd_defs.h"
#include "command/cmd_ac.h"
#include "common.h"
#include "config/accounts.h"
#include "config/account.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "config/tlscerts.h"
#include "config/scripts.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "xmpp/jid.h"
#include "log.h"
#include "xmpp/muc.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#ifdef HAVE_LIBGPGME
#include "pgp/gpg.h"
#endif
#include "profanity.h"
#include "plugins/plugins.h"
#include "event/client_events.h"
#include "tools/http_upload.h"
#include "tools/autocomplete.h"
#include "tools/parser.h"
#include "tools/tinyurl.h"
#include "xmpp/xmpp.h"
#include "plugins/plugins.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "event/client_events.h"
#include "xmpp/xmpp.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "xmpp/jid.h"
#include "xmpp/muc.h"
#include "xmpp/chat_session.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#ifdef HAVE_LIBGPGME
#include "pgp/gpg.h"
#endif
#ifdef HAVE_GTK
#include "ui/tray.h"
#endif
#include "tools/http_upload.h"
#ifdef HAVE_PYTHON
#include "plugins/python_plugins.h"
#endif

View File

@ -53,11 +53,9 @@
#include <ncurses.h>
#endif
#include "tools/p_sha1.h"
#include "log.h"
#include "common.h"
#include "tools/p_sha1.h"
struct curl_data_t
{

View File

@ -38,10 +38,10 @@
#include <glib.h>
#include "xmpp/jid.h"
#include "config/account.h"
#include "common.h"
#include "log.h"
#include "config/account.h"
#include "xmpp/jid.h"
ProfAccount*
account_new(const gchar *const name, const gchar *const jid,

View File

@ -41,12 +41,12 @@
#include "accounts.h"
#include "common.h"
#include "log.h"
#include "config/account.h"
#include "config/conflists.h"
#include "xmpp/jid.h"
#include "log.h"
#include "tools/autocomplete.h"
#include "xmpp/xmpp.h"
#include "xmpp/jid.h"
static gchar *accounts_loc;
static GKeyFile *accounts;

View File

@ -42,9 +42,9 @@
#include "common.h"
#include "log.h"
#include "ui/window_list.h"
#include "command/cmd_defs.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
void

View File

@ -38,6 +38,7 @@
#include <string.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H

View File

@ -38,9 +38,9 @@
#include <glib.h>
#include <glib/gstdio.h>
#include "config/tlscerts.h"
#include "log.h"
#include "common.h"
#include "config/tlscerts.h"
#include "tools/autocomplete.h"
static gchar *tlscerts_loc;

View File

@ -35,6 +35,8 @@
#ifndef CONFIG_TLSCERTS_H
#define CONFIG_TLSCERTS_H
#include <glib.h>
typedef struct tls_cert_t {
int version;
char *serialnumber;

View File

@ -38,15 +38,17 @@
#include <glib.h>
#include "log.h"
#include "ui/ui.h"
#include "plugins/plugins.h"
#include "ui/window_list.h"
#include "ui/ui.h"
#include "xmpp/xmpp.h"
#include "xmpp/roster_list.h"
#include "xmpp/chat_session.h"
#include "plugins/plugins.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#ifdef HAVE_LIBGPGME
#include "pgp/gpg.h"
#endif

View File

@ -38,22 +38,23 @@
#include <stdlib.h>
#include <assert.h>
#include "xmpp/chat_session.h"
#include "profanity.h"
#include "log.h"
#include "xmpp/muc.h"
#include "config/preferences.h"
#include "config/tlscerts.h"
#include "config/account.h"
#include "config/scripts.h"
#include "xmpp/roster_list.h"
#include "event/client_events.h"
#include "plugins/plugins.h"
#include "ui/window_list.h"
#include "config/tlscerts.h"
#include "profanity.h"
#include "event/client_events.h"
#include "xmpp/muc.h"
#include "xmpp/chat_session.h"
#include "xmpp/roster_list.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#ifdef HAVE_LIBGPGME
#include "pgp/gpg.h"
#endif

View File

@ -44,7 +44,6 @@
#include "glib/gstdio.h"
#include "log.h"
#include "common.h"
#include "config/preferences.h"
#include "xmpp/xmpp.h"

View File

@ -35,7 +35,7 @@
#ifndef LOG_H
#define LOG_H
#include "glib.h"
#include <glib.h>
// log levels
typedef enum {

View File

@ -38,16 +38,16 @@
#include <libotr/sm.h>
#include <glib.h>
#include "log.h"
#include "config/preferences.h"
#include "otr/otr.h"
#include "otr/otrlib.h"
#include "log.h"
#include "xmpp/roster_list.h"
#include "ui/window_list.h"
#include "xmpp/contact.h"
#include "ui/ui.h"
#include "xmpp/xmpp.h"
#include "config/preferences.h"
#include "ui/window_list.h"
#include "xmpp/chat_session.h"
#include "xmpp/roster_list.h"
#include "xmpp/contact.h"
#include "xmpp/xmpp.h"
#define PRESENCE_ONLINE 1
#define PRESENCE_OFFLINE 0

View File

@ -35,10 +35,10 @@
#include <libotr/privkey.h>
#include <libotr/message.h>
#include "ui/ui.h"
#include "window_list.h"
#include "otr/otr.h"
#include "otr/otrlib.h"
#include "ui/ui.h"
#include "ui/window_list.h"
OtrlPolicy
otrlib_policy(void)

View File

@ -36,11 +36,11 @@
#include <libotr/privkey.h>
#include <libotr/message.h>
#include "ui/ui.h"
#include "ui/window_list.h"
#include "log.h"
#include "otr/otr.h"
#include "otr/otrlib.h"
#include "ui/ui.h"
#include "ui/window_list.h"
static GTimer *timer;
static unsigned int current_interval;

View File

@ -44,9 +44,9 @@
#include <glib/gstdio.h>
#include <gpgme.h>
#include "pgp/gpg.h"
#include "log.h"
#include "common.h"
#include "pgp/gpg.h"
#include "tools/autocomplete.h"
#include "ui/ui.h"

View File

@ -38,7 +38,11 @@
#include <glib.h>
#include "profanity.h"
#include "log.h"
#include "common.h"
#include "config/theme.h"
#include "command/cmd_defs.h"
#include "event/server_events.h"
#include "event/client_events.h"
#include "plugins/callbacks.h"
@ -46,12 +50,8 @@
#include "plugins/themes.h"
#include "plugins/settings.h"
#include "plugins/disco.h"
#include "profanity.h"
#include "ui/ui.h"
#include "config/theme.h"
#include "command/cmd_defs.h"
#include "ui/window_list.h"
#include "common.h"
void
api_cons_alert(void)

View File

@ -39,8 +39,8 @@
#include <glib.h>
#include "config/preferences.h"
#include "log.h"
#include "config/preferences.h"
#include "plugins/api.h"
#include "plugins/callbacks.h"
#include "plugins/plugins.h"

View File

@ -41,9 +41,8 @@
#include "plugins/plugins.h"
#include "tools/autocomplete.h"
#include "tools/parser.h"
#include "ui/window_list.h"
#include "ui/ui.h"
#include "ui/window_list.h"
static GHashTable *p_commands = NULL;
static GHashTable *p_timed_functions = NULL;

View File

@ -35,11 +35,10 @@
#include <string.h>
#include <stdlib.h>
#include "log.h"
#include "config.h"
#include "common.h"
#include "config/preferences.h"
#include "log.h"
#include "xmpp/xmpp.h"
#include "plugins/callbacks.h"
#include "plugins/autocompleters.h"
#include "plugins/api.h"
@ -47,6 +46,8 @@
#include "plugins/themes.h"
#include "plugins/settings.h"
#include "plugins/disco.h"
#include "ui/ui.h"
#include "xmpp/xmpp.h"
#ifdef HAVE_PYTHON
#include "plugins/python_plugins.h"
@ -58,8 +59,6 @@
#include "plugins/c_api.h"
#endif
#include "ui/ui.h"
static GHashTable *plugins;
void

View File

@ -41,12 +41,12 @@
#include <glib.h>
#include "log.h"
#include "plugins/api.h"
#include "plugins/python_api.h"
#include "plugins/python_plugins.h"
#include "plugins/callbacks.h"
#include "plugins/autocompleters.h"
#include "log.h"
static char* _python_plugin_name(void);

View File

@ -35,7 +35,6 @@
#include <Python.h>
#include "config.h"
#include "config/preferences.h"
#include "plugins/api.h"
#include "plugins/callbacks.h"

View File

@ -38,8 +38,8 @@
#include <glib.h>
#include <glib/gstdio.h>
#include "config/theme.h"
#include "common.h"
#include "config/theme.h"
static GKeyFile *settings;

View File

@ -35,8 +35,8 @@
#include <glib.h>
#include <glib/gstdio.h>
#include "config/theme.h"
#include "common.h"
#include "config/theme.h"
static GKeyFile *themes;

View File

@ -40,6 +40,7 @@
#ifdef HAVE_GTK
#include "ui/tray.h"
#endif
#include <locale.h>
#include <signal.h>
#include <stdlib.h>
@ -48,32 +49,35 @@
#include <glib.h>
#include "profanity.h"
#include "xmpp/chat_session.h"
#include "xmpp/chat_state.h"
#include "common.h"
#include "log.h"
#include "config/tlscerts.h"
#include "config/accounts.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "config/tlscerts.h"
#include "config/scripts.h"
#include "command/cmd_defs.h"
#include "common.h"
#include "plugins/plugins.h"
#include "event/client_events.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "xmpp/resource.h"
#include "xmpp/xmpp.h"
#include "xmpp/muc.h"
#include "xmpp/chat_session.h"
#include "xmpp/chat_state.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "config/tlscerts.h"
#include "log.h"
#include "xmpp/muc.h"
#include "plugins/plugins.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#ifdef HAVE_LIBGPGME
#include "pgp/gpg.h"
#endif
#include "xmpp/resource.h"
#include "xmpp/xmpp.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "event/client_events.h"
#include "config/tlscerts.h"
static void _check_autoaway(void);
static void _init(char *log_level);

View File

@ -36,6 +36,7 @@
#define PROFANITY_H
#include <pthread.h>
#include <glib.h>
void prof_run(char *log_level, char *account_name);

View File

@ -45,11 +45,11 @@
#include <assert.h>
#include "profanity.h"
#include "event/client_events.h"
#include "tools/http_upload.h"
#include "config/preferences.h"
#include "ui/ui.h"
#include "ui/window.h"
#include "tools/http_upload.h"
#include "event/client_events.h"
#include "config/preferences.h"
#define FALLBACK_MIMETYPE "application/octet-stream"
#define FALLBACK_CONTENTTYPE_HEADER "Content-Type: application/octet-stream"

View File

@ -41,6 +41,7 @@
#include <sys/select.h>
#include <curl/curl.h>
#include "ui/win_types.h"
typedef struct http_upload_t {

View File

@ -35,11 +35,11 @@
#ifndef UI_BUFFER_H
#define UI_BUFFER_H
#include <glib.h>
#include "config.h"
#include "config/theme.h"
#include <glib.h>
typedef struct delivery_receipt_t {
char *id;
gboolean received;

View File

@ -43,18 +43,18 @@
#include <ncurses.h>
#endif
#include "command/cmd_defs.h"
#include "common.h"
#include "log.h"
#include "xmpp/muc.h"
#include "xmpp/roster_list.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "ui/window.h"
#include "window_list.h"
#include "command/cmd_defs.h"
#include "ui/window_list.h"
#include "ui/ui.h"
#include "ui/window.h"
#include "ui/statusbar.h"
#include "xmpp/xmpp.h"
#include "xmpp/muc.h"
#include "xmpp/roster_list.h"
#ifdef HAVE_GIT_VERSION
#include "gitversion.h"

View File

@ -44,38 +44,40 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <glib.h>
#ifdef HAVE_LIBXSS
#include <X11/extensions/scrnsaver.h>
#endif
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
#endif
#include "xmpp/chat_session.h"
#include "log.h"
#include "common.h"
#include "command/cmd_defs.h"
#include "command/cmd_ac.h"
#include "common.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "xmpp/jid.h"
#include "log.h"
#include "xmpp/muc.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
#include "ui/ui.h"
#include "ui/titlebar.h"
#include "ui/statusbar.h"
#include "ui/inputwin.h"
#include "ui/window.h"
#include "window_list.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
#include "plugins/plugins.h"
#include "xmpp/muc.h"
#include "xmpp/chat_session.h"
#include "xmpp/contact.h"
#include "xmpp/roster_list.h"
#include "xmpp/jid.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif
static char *win_title;
static int inp_size;

View File

@ -53,22 +53,22 @@
#include <ncurses.h>
#endif
#include "command/cmd_ac.h"
#include "xmpp/chat_state.h"
#include "profanity.h"
#include "log.h"
#include "common.h"
#include "command/cmd_ac.h"
#include "config/accounts.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "log.h"
#include "xmpp/muc.h"
#include "profanity.h"
#include "xmpp/roster_list.h"
#include "ui/ui.h"
#include "ui/statusbar.h"
#include "ui/inputwin.h"
#include "ui/window.h"
#include "window_list.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
#include "xmpp/muc.h"
#include "xmpp/roster_list.h"
#include "xmpp/chat_state.h"
static WINDOW *inp_win;
static int pad_start = 0;

View File

@ -38,7 +38,7 @@
#include "ui/ui.h"
#include "ui/window.h"
#include "ui/win_types.h"
#include "window_list.h"
#include "ui/window_list.h"
static void _mucconfwin_form_field(ProfWin *window, char *tag, FormField *field);

View File

@ -38,12 +38,12 @@
#include <assert.h>
#include <stdlib.h>
#include "ui/win_types.h"
#include "window_list.h"
#include "log.h"
#include "config/preferences.h"
#include "ui/window.h"
#include "plugins/plugins.h"
#include "ui/window.h"
#include "ui/win_types.h"
#include "ui/window_list.h"
void
mucwin_role_change(ProfMucWin *mucwin, const char *const role, const char *const actor, const char *const reason)

View File

@ -38,19 +38,21 @@
#include <stdlib.h>
#include <glib.h>
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif
#ifdef PLATFORM_CYGWIN
#include <windows.h>
#endif
#include "log.h"
#include "xmpp/muc.h"
#include "ui/ui.h"
#include "window_list.h"
#include "config/preferences.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
#include "xmpp/muc.h"
static GTimer *remind_timer;

View File

@ -34,10 +34,10 @@
#include <assert.h>
#include "config/preferences.h"
#include "ui/ui.h"
#include "ui/window.h"
#include "window_list.h"
#include "config/preferences.h"
#include "ui/window_list.h"
static void
_occuptantswin_occupant(ProfLayoutSplit *layout, Occupant *occupant, gboolean showjid)

View File

@ -36,12 +36,11 @@
#include <glib.h>
#include <stdlib.h>
#include "config/preferences.h"
#include "ui/win_types.h"
#include "ui/window.h"
#include "ui/titlebar.h"
#include "window_list.h"
#include "config/preferences.h"
#include "ui/window_list.h"
void
privwin_incoming_msg(ProfPrivateWin *privatewin, const char *const message, GDateTime *timestamp)

View File

@ -36,12 +36,12 @@
#include <stdlib.h>
#include <string.h>
#include "xmpp/contact.h"
#include "config/preferences.h"
#include "ui/ui.h"
#include "ui/window.h"
#include "window_list.h"
#include "config/preferences.h"
#include "ui/window_list.h"
#include "xmpp/roster_list.h"
#include "xmpp/contact.h"
typedef enum {
ROSTER_CONTACT,

View File

@ -45,10 +45,10 @@
#endif
#include "config/theme.h"
#include "config/preferences.h"
#include "ui/ui.h"
#include "ui/statusbar.h"
#include "ui/inputwin.h"
#include "config/preferences.h"
#define TIME_CHECK 60000000

View File

@ -44,7 +44,7 @@
#include "ui/ui.h"
#include "ui/titlebar.h"
#include "ui/inputwin.h"
#include "window_list.h"
#include "ui/window_list.h"
#include "ui/window.h"
#include "xmpp/roster_list.h"
#include "xmpp/chat_session.h"

View File

@ -39,10 +39,10 @@
#include <glib.h>
#include <glib/gstdio.h>
#include "tray.h"
#include "window_list.h"
#include "log.h"
#include "config/preferences.h"
#include "ui/tray.h"
#include "ui/window_list.h"
static gboolean gtk_ready = FALSE;
static GtkStatusIcon *prof_tray = NULL;

View File

@ -37,11 +37,12 @@
#include "config.h"
#include "config/tlscerts.h"
#include "config/account.h"
#include "command/cmd_funcs.h"
#include "ui/win_types.h"
#include "xmpp/muc.h"
#include "config/tlscerts.h"
#include "config/account.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
#endif

View File

@ -39,15 +39,16 @@
#include <wchar.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
#endif
#include "tools/autocomplete.h"
#include "ui/buffer.h"
#include "xmpp/chat_state.h"
#include "tools/autocomplete.h"
#define LAYOUT_SPLIT_MEMCHECK 12345671
#define PROFCHATWIN_MEMCHECK 22374522

View File

@ -41,6 +41,7 @@
#include <wchar.h>
#include <glib.h>
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
@ -49,10 +50,10 @@
#include "config/theme.h"
#include "config/preferences.h"
#include "xmpp/roster_list.h"
#include "ui/ui.h"
#include "ui/window.h"
#include "xmpp/xmpp.h"
#include "xmpp/roster_list.h"
#define CONS_WIN_TITLE "Profanity. Type /help for help information."
#define XML_WIN_TITLE "XML Console"

View File

@ -39,19 +39,19 @@
#include <wchar.h>
#include "xmpp/contact.h"
#include "xmpp/muc.h"
#include "ui/ui.h"
#include "ui/buffer.h"
#include "xmpp/xmpp.h"
#include "xmpp/chat_state.h"
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
#endif
#include "ui/ui.h"
#include "ui/buffer.h"
#include "xmpp/xmpp.h"
#include "xmpp/chat_state.h"
#include "xmpp/contact.h"
#include "xmpp/muc.h"
#define PAD_SIZE 1000
void win_move_to_end(ProfWin *window);

View File

@ -41,14 +41,14 @@
#include <glib.h>
#include "common.h"
#include "xmpp/roster_list.h"
#include "config/preferences.h"
#include "config/theme.h"
#include "plugins/plugins.h"
#include "ui/ui.h"
#include "ui/statusbar.h"
#include "window_list.h"
#include "plugins/plugins.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
#include "config/preferences.h"
#include "xmpp/roster_list.h"
static GHashTable *windows;
static int current;

View File

@ -36,7 +36,7 @@
#include <string.h>
#include "ui/win_types.h"
#include "window_list.h"
#include "ui/window_list.h"
void
xmlwin_show(ProfXMLWin *xmlwin, const char *const msg)

View File

@ -38,6 +38,7 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif

View File

@ -43,21 +43,22 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "common.h"
#include "log.h"
#include "muc.h"
#include "event/server_events.h"
#include "plugins/plugins.h"
#include "ui/ui.h"
#include "xmpp/connection.h"
#include "xmpp/iq.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
#include "xmpp/bookmark.h"
#include "ui/ui.h"
#include "plugins/plugins.h"
#include "xmpp/muc.h"
#define BOOKMARK_TIMEOUT 5000

View File

@ -47,17 +47,18 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "common.h"
#include "log.h"
#include "plugins/plugins.h"
#include "xmpp/xmpp.h"
#include "xmpp/stanza.h"
#include "xmpp/form.h"
#include "xmpp/capabilities.h"
#include "plugins/plugins.h"
static gchar *cache_loc;
static GKeyFile *cache;

View File

@ -40,6 +40,7 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif

View File

@ -38,10 +38,10 @@
#include <glib.h>
#include "chat_session.h"
#include "config/preferences.h"
#include "log.h"
#include "config/preferences.h"
#include "xmpp/xmpp.h"
#include "xmpp/chat_session.h"
static GHashTable *sessions;

View File

@ -37,12 +37,12 @@
#include <glib.h>
#include "chat_state.h"
#include "xmpp/chat_session.h"
#include "config/preferences.h"
#include "ui/window_list.h"
#include "ui/win_types.h"
#include "xmpp/xmpp.h"
#include "config/preferences.h"
#include "xmpp/chat_state.h"
#include "xmpp/chat_session.h"
#define PAUSED_TIMEOUT 10.0
#define INACTIVE_TIMEOUT 30.0

View File

@ -41,6 +41,7 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif

View File

@ -38,10 +38,10 @@
#include <glib.h>
#include "contact.h"
#include "common.h"
#include "resource.h"
#include "tools/autocomplete.h"
#include "xmpp/resource.h"
#include "xmpp/contact.h"
struct p_contact_t {
char *barejid;

View File

@ -35,8 +35,8 @@
#ifndef XMPP_CONTACT_H
#define XMPP_CONTACT_H
#include "resource.h"
#include "tools/autocomplete.h"
#include "xmpp/resource.h"
typedef struct p_contact_t *PContact;

View File

@ -40,6 +40,7 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif

View File

@ -35,15 +35,16 @@
#ifndef XMPP_FORM_H
#define XMPP_FORM_H
#include "xmpp/xmpp.h"
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "xmpp/xmpp.h"
DataForm* form_create(xmpp_stanza_t *const stanza);
xmpp_stanza_t* form_create_submission(DataForm *form);
char* form_get_form_type_field(DataForm *form);

View File

@ -46,30 +46,31 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "log.h"
#include "muc.h"
#include "profanity.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "log.h"
#include "config/preferences.h"
#include "event/server_events.h"
#include "plugins/plugins.h"
#include "tools/http_upload.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h"
#include "xmpp/connection.h"
#include "xmpp/session.h"
#include "xmpp/iq.h"
#include "xmpp/capabilities.h"
#include "xmpp/blocking.h"
#include "xmpp/session.h"
#include "xmpp/stanza.h"
#include "xmpp/form.h"
#include "roster_list.h"
#include "xmpp/xmpp.h"
#include "xmpp/connection.h"
#include "xmpp/session.h"
#include "xmpp/iq.h"
#include "xmpp/roster_list.h"
#include "xmpp/roster.h"
#include "plugins/plugins.h"
#include "tools/http_upload.h"
#include "xmpp/muc.h"
typedef struct p_room_info_data_t {
char *room;

View File

@ -37,9 +37,8 @@
#include <glib.h>
#include "jid.h"
#include "common.h"
#include "xmpp/jid.h"
Jid*
jid_create(const gchar *const str)

View File

@ -40,26 +40,27 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "chat_session.h"
#include "config/preferences.h"
#include "log.h"
#include "muc.h"
#include "profanity.h"
#include "ui/ui.h"
#include "log.h"
#include "config/preferences.h"
#include "event/server_events.h"
#include "pgp/gpg.h"
#include "plugins/plugins.h"
#include "ui/ui.h"
#include "xmpp/chat_session.h"
#include "xmpp/muc.h"
#include "xmpp/session.h"
#include "xmpp/message.h"
#include "xmpp/roster.h"
#include "roster_list.h"
#include "xmpp/roster_list.h"
#include "xmpp/stanza.h"
#include "xmpp/connection.h"
#include "xmpp/xmpp.h"
#include "pgp/gpg.h"
#include "plugins/plugins.h"
static int _message_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *const userdata);

View File

@ -38,13 +38,13 @@
#include <glib.h>
#include "xmpp/contact.h"
#include "common.h"
#include "xmpp/jid.h"
#include "tools/autocomplete.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "muc.h"
#include "xmpp/jid.h"
#include "xmpp/muc.h"
#include "xmpp/contact.h"
typedef struct _muc_room_t {
char *room; // e.g. test@conference.server

View File

@ -37,10 +37,10 @@
#include <glib.h>
#include "xmpp/contact.h"
#include "xmpp/jid.h"
#include "tools/autocomplete.h"
#include "ui/win_types.h"
#include "xmpp/contact.h"
#include "xmpp/jid.h"
typedef enum {
MUC_ROLE_NONE,

View File

@ -44,24 +44,25 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "profanity.h"
#include "log.h"
#include "common.h"
#include "config/preferences.h"
#include "log.h"
#include "muc.h"
#include "profanity.h"
#include "ui/ui.h"
#include "event/server_events.h"
#include "plugins/plugins.h"
#include "ui/ui.h"
#include "xmpp/connection.h"
#include "xmpp/capabilities.h"
#include "xmpp/session.h"
#include "xmpp/stanza.h"
#include "xmpp/iq.h"
#include "xmpp/xmpp.h"
#include "plugins/plugins.h"
#include "xmpp/muc.h"
static Autocomplete sub_requests_ac;

View File

@ -43,26 +43,26 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "log.h"
#include "plugins/plugins.h"
#include "profanity.h"
#include "ui/ui.h"
#include "log.h"
#include "config/preferences.h"
#include "plugins/plugins.h"
#include "event/server_events.h"
#include "event/client_events.h"
#include "tools/autocomplete.h"
#include "config/preferences.h"
#include "ui/ui.h"
#include "xmpp/session.h"
#include "xmpp/iq.h"
#include "xmpp/connection.h"
#include "xmpp/roster.h"
#include "roster_list.h"
#include "xmpp/roster_list.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
#include "plugins/plugins.h"
// callback data for group commands
typedef struct _group_data {

View File

@ -39,12 +39,12 @@
#include <glib.h>
#include <assert.h>
#include "roster_list.h"
#include "config/preferences.h"
#include "tools/autocomplete.h"
#include "xmpp/roster_list.h"
#include "xmpp/resource.h"
#include "xmpp/contact.h"
#include "xmpp/jid.h"
#include "tools/autocomplete.h"
#include "config/preferences.h"
typedef struct prof_roster_t {
// contacts, indexed on barejid

View File

@ -38,14 +38,11 @@
#include <string.h>
#include <stdlib.h>
#include "chat_session.h"
#include "profanity.h"
#include "log.h"
#include "common.h"
#include "config/preferences.h"
#include "jid.h"
#include "log.h"
#include "muc.h"
#include "plugins/plugins.h"
#include "profanity.h"
#include "event/server_events.h"
#include "xmpp/bookmark.h"
#include "xmpp/blocking.h"
@ -58,6 +55,9 @@
#include "xmpp/roster.h"
#include "xmpp/stanza.h"
#include "xmpp/xmpp.h"
#include "xmpp/muc.h"
#include "xmpp/chat_session.h"
#include "xmpp/jid.h"
// for auto reconnect
static struct {

View File

@ -35,16 +35,7 @@
#ifndef XMPP_SESSION_H
#define XMPP_SESSION_H
#include "config.h"
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "resource.h"
#include <glib.h>
void session_login_success(gboolean secured);
void session_login_failed(void);

View File

@ -47,6 +47,7 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
@ -58,8 +59,7 @@
#include "xmpp/capabilities.h"
#include "xmpp/connection.h"
#include "xmpp/form.h"
#include "muc.h"
#include "xmpp/muc.h"
#if 0
xmpp_stanza_t*

View File

@ -40,6 +40,7 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif

View File

@ -40,16 +40,17 @@
#ifdef HAVE_LIBMESODE
#include <mesode.h>
#endif
#ifdef HAVE_LIBSTROPHE
#include <strophe.h>
#endif
#include "config/accounts.h"
#include "config/tlscerts.h"
#include "contact.h"
#include "jid.h"
#include "tools/autocomplete.h"
#include "tools/http_upload.h"
#include "xmpp/contact.h"
#include "xmpp/jid.h"
#define JABBER_PRIORITY_MIN -128
#define JABBER_PRIORITY_MAX 127