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 <dirent.h>
#include "common.h" #include "common.h"
#include "tools/parser.h"
#include "ui/win_types.h"
#include "command/cmd_funcs.h"
#include "config/preferences.h" #include "config/preferences.h"
#include "config/scripts.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/muc.h"
#include "xmpp/xmpp.h" #include "xmpp/xmpp.h"
#include "xmpp/roster_list.h" #include "xmpp/roster_list.h"
#include "ui/window_list.h"
#include "plugins/plugins.h"
#include "command/cmd_ac.h"
#ifdef HAVE_LIBGPGME #ifdef HAVE_LIBGPGME
#include "pgp/gpg.h" #include "pgp/gpg.h"

View File

@ -48,29 +48,29 @@
#include <glib.h> #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_defs.h"
#include "command/cmd_funcs.h" #include "command/cmd_funcs.h"
#include "command/cmd_ac.h" #include "command/cmd_ac.h"
#include "common.h"
#include "config/accounts.h" #include "config/accounts.h"
#include "config/preferences.h" #include "config/preferences.h"
#include "config/theme.h" #include "config/theme.h"
#include "config/tlscerts.h" #include "config/tlscerts.h"
#include "config/scripts.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 "plugins/plugins.h"
#include "profanity.h"
#include "tools/autocomplete.h" #include "tools/autocomplete.h"
#include "tools/parser.h" #include "tools/parser.h"
#include "tools/tinyurl.h" #include "tools/tinyurl.h"
#include "xmpp/xmpp.h"
#include "ui/ui.h" #include "ui/ui.h"
#include "ui/window_list.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 #ifdef HAVE_LIBOTR
#include "otr/otr.h" #include "otr/otr.h"

View File

@ -49,41 +49,45 @@
#include <langinfo.h> #include <langinfo.h>
#include <ctype.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_funcs.h"
#include "command/cmd_defs.h" #include "command/cmd_defs.h"
#include "command/cmd_ac.h" #include "command/cmd_ac.h"
#include "common.h"
#include "config/accounts.h" #include "config/accounts.h"
#include "config/account.h" #include "config/account.h"
#include "config/preferences.h" #include "config/preferences.h"
#include "config/theme.h" #include "config/theme.h"
#include "config/tlscerts.h" #include "config/tlscerts.h"
#include "config/scripts.h" #include "config/scripts.h"
#include "xmpp/contact.h" #include "event/client_events.h"
#include "xmpp/roster_list.h" #include "tools/http_upload.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 "tools/autocomplete.h" #include "tools/autocomplete.h"
#include "tools/parser.h" #include "tools/parser.h"
#include "tools/tinyurl.h" #include "tools/tinyurl.h"
#include "xmpp/xmpp.h" #include "plugins/plugins.h"
#include "ui/ui.h" #include "ui/ui.h"
#include "ui/window_list.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 #ifdef HAVE_GTK
#include "ui/tray.h" #include "ui/tray.h"
#endif #endif
#include "tools/http_upload.h"
#ifdef HAVE_PYTHON #ifdef HAVE_PYTHON
#include "plugins/python_plugins.h" #include "plugins/python_plugins.h"
#endif #endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -38,16 +38,16 @@
#include <libotr/sm.h> #include <libotr/sm.h>
#include <glib.h> #include <glib.h>
#include "log.h"
#include "config/preferences.h"
#include "otr/otr.h" #include "otr/otr.h"
#include "otr/otrlib.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 "ui/ui.h"
#include "xmpp/xmpp.h" #include "ui/window_list.h"
#include "config/preferences.h"
#include "xmpp/chat_session.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_ONLINE 1
#define PRESENCE_OFFLINE 0 #define PRESENCE_OFFLINE 0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -38,7 +38,7 @@
#include "ui/ui.h" #include "ui/ui.h"
#include "ui/window.h" #include "ui/window.h"
#include "ui/win_types.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); static void _mucconfwin_form_field(ProfWin *window, char *tag, FormField *field);

View File

@ -38,12 +38,12 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include "ui/win_types.h"
#include "window_list.h"
#include "log.h" #include "log.h"
#include "config/preferences.h" #include "config/preferences.h"
#include "ui/window.h"
#include "plugins/plugins.h" #include "plugins/plugins.h"
#include "ui/window.h"
#include "ui/win_types.h"
#include "ui/window_list.h"
void void
mucwin_role_change(ProfMucWin *mucwin, const char *const role, const char *const actor, const char *const reason) 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 <stdlib.h>
#include <glib.h> #include <glib.h>
#ifdef HAVE_LIBNOTIFY #ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h> #include <libnotify/notify.h>
#endif #endif
#ifdef PLATFORM_CYGWIN #ifdef PLATFORM_CYGWIN
#include <windows.h> #include <windows.h>
#endif #endif
#include "log.h" #include "log.h"
#include "xmpp/muc.h"
#include "ui/ui.h"
#include "window_list.h"
#include "config/preferences.h" #include "config/preferences.h"
#include "ui/ui.h"
#include "ui/window_list.h"
#include "xmpp/xmpp.h" #include "xmpp/xmpp.h"
#include "xmpp/muc.h"
static GTimer *remind_timer; static GTimer *remind_timer;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -39,19 +39,19 @@
#include <wchar.h> #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 #ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/ncurses.h> #include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H #elif HAVE_NCURSES_H
#include <ncurses.h> #include <ncurses.h>
#endif #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 #define PAD_SIZE 1000
void win_move_to_end(ProfWin *window); void win_move_to_end(ProfWin *window);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -40,26 +40,27 @@
#ifdef HAVE_LIBMESODE #ifdef HAVE_LIBMESODE
#include <mesode.h> #include <mesode.h>
#endif #endif
#ifdef HAVE_LIBSTROPHE #ifdef HAVE_LIBSTROPHE
#include <strophe.h> #include <strophe.h>
#endif #endif
#include "chat_session.h"
#include "config/preferences.h"
#include "log.h"
#include "muc.h"
#include "profanity.h" #include "profanity.h"
#include "ui/ui.h" #include "log.h"
#include "config/preferences.h"
#include "event/server_events.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/session.h"
#include "xmpp/message.h" #include "xmpp/message.h"
#include "xmpp/roster.h" #include "xmpp/roster.h"
#include "roster_list.h" #include "xmpp/roster_list.h"
#include "xmpp/stanza.h" #include "xmpp/stanza.h"
#include "xmpp/connection.h" #include "xmpp/connection.h"
#include "xmpp/xmpp.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); 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 <glib.h>
#include "xmpp/contact.h"
#include "common.h" #include "common.h"
#include "xmpp/jid.h"
#include "tools/autocomplete.h" #include "tools/autocomplete.h"
#include "ui/ui.h" #include "ui/ui.h"
#include "ui/window_list.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 { typedef struct _muc_room_t {
char *room; // e.g. test@conference.server char *room; // e.g. test@conference.server

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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