mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Tidied #include's
This commit is contained in:
parent
8cc4b55945
commit
fc5bfb7d33
@ -26,6 +26,7 @@
|
||||
#include <glib.h>
|
||||
|
||||
#include "accounts.h"
|
||||
|
||||
#include "autocomplete.h"
|
||||
#include "common.h"
|
||||
#include "files.h"
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <glib.h>
|
||||
|
||||
#include "chat_session.h"
|
||||
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
|
||||
|
@ -20,25 +20,26 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "accounts.h"
|
||||
#include "chat_session.h"
|
||||
#include "command.h"
|
||||
|
||||
#include "accounts.h"
|
||||
#include "autocomplete.h"
|
||||
#include "chat_session.h"
|
||||
#include "common.h"
|
||||
#include "contact.h"
|
||||
#include "contact_list.h"
|
||||
#include "jid.h"
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
#include "autocomplete.h"
|
||||
#include "profanity.h"
|
||||
#include "muc.h"
|
||||
#include "preferences.h"
|
||||
#include "profanity.h"
|
||||
#include "theme.h"
|
||||
#include "tinyurl.h"
|
||||
#include "ui/ui.h"
|
||||
|
@ -25,9 +25,9 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <curl/curl.h>
|
||||
#include <curl/easy.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#define COMMON_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,28,0)
|
||||
|
@ -25,9 +25,10 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "contact.h"
|
||||
|
||||
#include "common.h"
|
||||
|
||||
struct p_contact_t {
|
||||
char *jid;
|
||||
char *name;
|
||||
|
@ -24,8 +24,8 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "contact.h"
|
||||
#include "autocomplete.h"
|
||||
#include "contact.h"
|
||||
|
||||
static Autocomplete ac;
|
||||
static GHashTable *contacts;
|
||||
|
@ -25,9 +25,10 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "jid.h"
|
||||
|
||||
#include "common.h"
|
||||
|
||||
Jid *
|
||||
jid_create(const gchar * const str)
|
||||
{
|
||||
|
@ -24,14 +24,15 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "glib.h"
|
||||
|
||||
#include "log.h"
|
||||
|
||||
#include "common.h"
|
||||
#include "files.h"
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
|
||||
#define PROF "prof"
|
||||
|
@ -20,10 +20,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "profanity.h"
|
||||
|
||||
static gboolean disable_tls = FALSE;
|
||||
|
@ -25,9 +25,9 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "autocomplete.h"
|
||||
#include "contact.h"
|
||||
#include "jid.h"
|
||||
#include "autocomplete.h"
|
||||
|
||||
typedef struct _muc_room_t {
|
||||
char *room; // e.g. test@conference.server
|
||||
|
@ -20,22 +20,23 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
#include "preferences.h"
|
||||
|
||||
#include "autocomplete.h"
|
||||
#include "files.h"
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
#include "autocomplete.h"
|
||||
|
||||
static gchar *prefs_loc;
|
||||
static GKeyFile *prefs;
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
|
@ -23,12 +23,14 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "profanity.h"
|
||||
|
||||
#include "accounts.h"
|
||||
#include "chat_session.h"
|
||||
#include "command.h"
|
||||
@ -37,9 +39,8 @@
|
||||
#include "contact_list.h"
|
||||
#include "files.h"
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
#include "profanity.h"
|
||||
#include "muc.h"
|
||||
#include "preferences.h"
|
||||
#include "theme.h"
|
||||
#include "ui/ui.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
@ -26,16 +26,16 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
|
||||
#include "theme.h"
|
||||
|
||||
#include "files.h"
|
||||
#include "log.h"
|
||||
#include "theme.h"
|
||||
|
||||
static GString *theme_loc;
|
||||
static GKeyFile *theme;
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
|
@ -23,9 +23,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
#include <curl/curl.h>
|
||||
#include <curl/easy.h>
|
||||
#include <glib.h>
|
||||
|
||||
struct curl_data_t
|
||||
{
|
||||
|
@ -33,14 +33,14 @@
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
|
||||
#include "common.h"
|
||||
#include "command.h"
|
||||
#include "common.h"
|
||||
#include "contact_list.h"
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
#include "profanity.h"
|
||||
#include "theme.h"
|
||||
#include "ui.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
#define _inp_win_refresh() prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1)
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
#endif
|
||||
|
||||
#include "theme.h"
|
||||
#include "ui.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
static WINDOW *status_bar;
|
||||
static char *message = NULL;
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "common.h"
|
||||
#include "theme.h"
|
||||
#include "ui.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
static WINDOW *title_bar;
|
||||
static char *current_title = NULL;
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <wchar.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
@ -34,7 +33,7 @@
|
||||
#endif
|
||||
|
||||
#include "theme.h"
|
||||
#include "window.h"
|
||||
#include "ui/window.h"
|
||||
|
||||
#define CONS_WIN_TITLE "_cons"
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
#include "ui.h"
|
||||
#include "ui/ui.h"
|
||||
|
||||
typedef struct prof_win_t {
|
||||
char *from;
|
||||
|
@ -24,20 +24,16 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_LIBXSS
|
||||
#include <X11/extensions/scrnsaver.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef HAVE_LIBNOTIFY
|
||||
#include <libnotify/notify.h>
|
||||
#endif
|
||||
#ifdef PLATFORM_CYGWIN
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NCURSESW_NCURSES_H
|
||||
#include <ncursesw/ncurses.h>
|
||||
#elif HAVE_NCURSES_H
|
||||
@ -51,11 +47,11 @@
|
||||
#include "contact_list.h"
|
||||
#include "jid.h"
|
||||
#include "log.h"
|
||||
#include "preferences.h"
|
||||
#include "muc.h"
|
||||
#include "preferences.h"
|
||||
#include "theme.h"
|
||||
#include "ui.h"
|
||||
#include "window.h"
|
||||
#include "ui/ui.h"
|
||||
#include "ui/window.h"
|
||||
|
||||
#define CONS_WIN_TITLE "_cons"
|
||||
#define NUM_WINS 10
|
||||
|
@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@ -27,10 +29,9 @@
|
||||
#include <openssl/evp.h>
|
||||
#include <strophe.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "common.h"
|
||||
#include "xmpp.h"
|
||||
#include "stanza.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "xmpp/stanza.h"
|
||||
|
||||
static GHashTable *capabilities;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <strophe.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
void caps_add(const char * const caps_str, const char * const client);
|
||||
gboolean caps_contains(const char * const caps_str);
|
||||
|
@ -20,9 +20,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <strophe.h>
|
||||
|
||||
@ -31,14 +31,14 @@
|
||||
#include "contact_list.h"
|
||||
#include "jid.h"
|
||||
#include "log.h"
|
||||
#include "muc.h"
|
||||
#include "preferences.h"
|
||||
#include "profanity.h"
|
||||
#include "muc.h"
|
||||
#include "xmpp.h"
|
||||
#include "stanza.h"
|
||||
#include "message.h"
|
||||
#include "iq.h"
|
||||
#include "presence.h"
|
||||
#include "xmpp/iq.h"
|
||||
#include "xmpp/message.h"
|
||||
#include "xmpp/presence.h"
|
||||
#include "xmpp/stanza.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
static struct _jabber_conn_t {
|
||||
xmpp_log_t *log;
|
||||
|
@ -20,19 +20,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <strophe.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "config.h"
|
||||
#include "contact_list.h"
|
||||
#include "log.h"
|
||||
#include "xmpp.h"
|
||||
#include "stanza.h"
|
||||
#include "iq.h"
|
||||
#include "capabilities.h"
|
||||
#include "xmpp/capabilities.h"
|
||||
#include "xmpp/iq.h"
|
||||
#include "xmpp/stanza.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_IQ, type, ctx)
|
||||
|
||||
|
@ -30,9 +30,9 @@
|
||||
#include "muc.h"
|
||||
#include "preferences.h"
|
||||
#include "profanity.h"
|
||||
#include "xmpp.h"
|
||||
#include "stanza.h"
|
||||
#include "message.h"
|
||||
#include "xmpp/message.h"
|
||||
#include "xmpp/stanza.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_MESSAGE, type, ctx)
|
||||
|
||||
|
@ -30,9 +30,9 @@
|
||||
#include "muc.h"
|
||||
#include "preferences.h"
|
||||
#include "profanity.h"
|
||||
#include "xmpp.h"
|
||||
#include "stanza.h"
|
||||
#include "capabilities.h"
|
||||
#include "xmpp/capabilities.h"
|
||||
#include "xmpp/stanza.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
static GHashTable *sub_requests;
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <strophe.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "stanza.h"
|
||||
#include "xmpp/stanza.h"
|
||||
|
||||
static int _field_compare(FormField *f1, FormField *f2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user