Commit 0f204234 authored by Berke Viktor's avatar Berke Viktor

Consistent header macros everywhere

parent 4de6db6c
......@@ -17,9 +17,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_CHANOPT_H
#define HEXCHAT_CHANOPT_H
int chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[]);
gboolean chanopt_is_set (unsigned int global, guint8 per_chan_setting);
gboolean chanopt_is_set_a (unsigned int global, guint8 per_chan_setting);
void chanopt_save_all (void);
void chanopt_save (session *sess);
void chanopt_load (session *sess);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_IDENTD_H
#define HEXCHAT_IDENTD_H
void identd_start (char *username);
#endif
......@@ -19,6 +19,9 @@
/* include stuff for internet */
#ifndef HEXCHAT_INET_H
#define HEXCHAT_INET_H
#ifndef WIN32
#ifdef WANTSOCKET
......@@ -60,3 +63,5 @@
#define sock_error WSAGetLastError
#endif
#endif
......@@ -21,6 +21,9 @@
* Inferno Nettverk A/S, Norway. All rights reserved.
*/
#ifndef HEXCHAT_MSPROXY_H
#define HEXCHAT_MSPROXY_H
#include "network.h"
#define MSPROXY_EXECUTABLE "hexchat.exe" /* This probably can be used for access control on the server side */
......@@ -255,3 +258,5 @@ struct msproxy_response_t {
int traverse_msproxy (int sok, char *serverAddr, int port, struct msproxy_state_t *state, netstore *ns_proxy, int csok4, int csok6, int *csok, char bound);
void msproxy_keepalive (void);
#endif
......@@ -17,9 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
...
*/
#ifndef HEXCHAT_SSL_H
#define HEXCHAT_SSL_H
struct cert_info {
char subject[256];
......@@ -82,3 +81,5 @@ int _SSL_recv (SSL * ssl, char *buf, int len);
#define _SSL_get_ctx_x509_base64(a) _SSL_get_ctx_obj_base64(a, 2)
/*int _SSL_verify_x509(X509 *x509);*/
#endif
......@@ -14,5 +14,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef HEXCHAT_STRLUTIL_H
#define HEXCHAT_STRLUTIL_H
size_t strlcat(char *dst, const char *src, size_t siz);
size_t strlcpy(char *dst, const char *src, size_t siz);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_THREAD_H
#define HEXCHAT_THREAD_H
#if 0 /* native file dialogs */
#include <windows.h>
......@@ -29,3 +32,5 @@ typedef struct
thread *thread_new (void);
int thread_start (thread *th, void *(*start_routine)(void *), void *arg);
#endif
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_ABOUT_H
#define HEXCHAT_ABOUT_H
void menu_about (GtkWidget * wid, gpointer sess);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_ASCII_H
#define HEXCHAT_ASCII_H
void ascii_open (void);
#endif
......@@ -17,8 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef BANLIST_H
#define BANLIST_H
#ifndef HEXCHAT_BANLIST_H
#define HEXCHAT_BANLIST_H
#include "../common/hexchat.h"
void banlist_opengui (session *sess);
......@@ -72,4 +72,5 @@ typedef struct mode_info_s {
int bit; /* Mask bit, e.g., 1<<MODE_BAN */
void (*tester)(banlist_info *, int); /* Function returns true to set bit into checkable */
} mode_info;
#endif /* BANLIST_H */
#endif /* HEXCHAT_BANLIST_H */
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_CHANLIST_H
#define HEXCHAT_CHANLIST_H
void chanlist_opengui (server *serv, int do_refresh);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_CHANVIEW_H
#define HEXCHAT_CHANVIEW_H
typedef struct _chanview chanview;
typedef struct _chan chan;
......@@ -48,3 +51,5 @@ chan * chan_get_parent (chan *ch);
#define FOCUS_NEW_ALL 1
#define FOCUS_NEW_ONLY_ASKED 2
#define FOCUS_NEW_NONE 0
#endif
......@@ -17,8 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _custom_list_h_included_
#define _custom_list_h_included_
#ifndef HEXCHAT_CUSTOM_LIST_H
#define HEXCHAT_CUSTOM_LIST_H
#include <gtk/gtk.h>
......@@ -101,4 +101,4 @@ void custom_list_append (CustomList *, chanlistrow *);
void custom_list_resort (CustomList *);
void custom_list_clear (CustomList *);
#endif /* _custom_list_h_included_ */
#endif /* HEXCHAT_CUSTOM_LIST_H */
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_EDITLIST_H
#define HEXCHAT_EDITLIST_H
void editlist_gui_open (char *title1, char *title2, GSList * list, char *title, char *wmclass, char *file, char *help);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_FE_GTK_H
#define HEXCHAT_FE_GTK_H
#ifdef WIN32
#include "../../config-win32.h"
#else
......@@ -209,3 +212,5 @@ void SPELL_ENTRY_INSERT (GtkWidget *entry, const char *text, int len, int *pos);
#define SPELL_ENTRY_SET_POS(e,p) gtk_editable_set_position(GTK_EDITABLE(e),p);
#define SPELL_ENTRY_INSERT(e,t,l,p) gtk_editable_insert_text(GTK_EDITABLE(e),t,l,p)
#endif
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_FKEYS_H
#define HEXCHAT_FKEYS_H
/* These are cp'ed from history.c --AGL */
#define STATE_SHIFT GDK_SHIFT_MASK
#define STATE_ALT GDK_MOD1_MASK
......@@ -31,3 +34,5 @@ void key_dialog_show (void);
int key_handle_key_press (GtkWidget * wid, GdkEventKey * evt, session *sess);
int key_action_insert (GtkWidget * wid, GdkEventKey * evt, char *d1, char *d2,
session *sess);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_GTKUTIL_H
#define HEXCHAT_GTKUTIL_H
#include <gtk/gtktreeview.h>
#include <gtk/gtktreemodel.h>
......@@ -57,3 +60,4 @@ gboolean gtkutil_treemodel_string_to_iter (GtkTreeModel *model, gchar *pathstr,
gboolean gtkutil_treeview_get_selected_iter (GtkTreeView *view, GtkTreeIter *iter_ret);
gboolean gtkutil_treeview_get_selected (GtkTreeView *view, GtkTreeIter *iter_ret, ...);
#endif
......@@ -17,5 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_JOIND_H
#define HEXCHAT_JOIND_H
void joind_open (server *serv);
void joind_close (server *serv);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_MAINGUI_H
#define HEXCHAT_MAINGUI_H
extern GtkStyle *input_style;
extern GtkWidget *parent_window;
......@@ -50,3 +53,5 @@ gboolean mg_drag_begin_cb (GtkWidget *widget, GdkDragContext *context, gpointer
void mg_drag_end_cb (GtkWidget *widget, GdkDragContext *context, gpointer userdata);
gboolean mg_drag_drop_cb (GtkWidget *widget, GdkDragContext *context, int x, int y, guint time, gpointer user_data);
gboolean mg_drag_motion_cb (GtkWidget *widget, GdkDragContext *context, int x, int y, guint time, gpointer user_data);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_MENU_H
#define HEXCHAT_MENU_H
GtkWidget *menu_create_main (void *accel_group, int bar, int away, int toplevel, GtkWidget **menu_widgets);
void menu_urlmenu (GdkEventButton * event, char *url);
void menu_chanmenu (session *sess, GdkEventButton * event, char *chan);
......@@ -58,3 +61,5 @@ void menu_change_layout (void);
#if (MENU_ID_NUM < MENU_ID_USERMENU)
#error MENU_ID_NUM is set wrong
#endif
#endif
......@@ -17,7 +17,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_MMX_CMOD_H
#define HEXCHAT_MMX_CMOD_H
void shade_ximage_15_mmx(void *data, int bpl, int w, int h, int rm, int gm, int bm);
void shade_ximage_16_mmx(void *data, int bpl, int w, int h, int rm, int gm, int bm);
void shade_ximage_32_mmx(void *data, int bpl, int w, int h, int rm, int gm, int bm);
int have_mmx (void);
#endif
......@@ -17,5 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_NOTIFYGUI_H
#define HEXCHAT_NOTIFYGUI_H
void notify_gui_update (void);
void notify_opengui (void);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_PALETTE_H
#define HEXCHAT_PALETTE_H
extern GdkColor colors[];
#define COL_MARK_FG 32
......@@ -33,3 +36,5 @@ extern GdkColor colors[];
void palette_alloc (GtkWidget * widget);
void palette_load (void);
void palette_save (void);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_PIXMAPS_H
#define HEXCHAT_PIXMAPS_H
extern GdkPixbuf *pix_ulist_voice;
extern GdkPixbuf *pix_ulist_halfop;
extern GdkPixbuf *pix_ulist_op;
......@@ -38,3 +41,5 @@ extern GdkPixbuf *pix_hexchat;
extern GdkPixmap *pixmap_load_from_file (char *file);
extern void pixmaps_init (void);
#endif
......@@ -17,7 +17,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_PLUGIN_TRAY_H
#define HEXCHAT_PLUGIN_TRAY_H
int tray_plugin_init (void *, char **, char **, char **, char *);
int tray_plugin_deinit (void *);
gboolean tray_toggle_visibility (gboolean force_hide);
void tray_apply_setup (void);
#endif
......@@ -17,5 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_PLUGINGUI_H
#define HEXCHAT_PLUGINGUI_H
void plugingui_open (void);
void plugingui_load (void);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_RAWLOG_H
#define HEXCHAT_RAWLOG_H
void open_rawlog (server *serv);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_SEARCH_H
#define HEXCHAT_SEARCH_H
void search_open (session * sess);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_SERVLISTGUI_H
#define HEXCHAT_SERVLISTGUI_H
void servlist_autojoinedit (ircnet *net, char *channel, gboolean add);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
void setup_apply_real (int new_pix, int do_ulist, int do_layout);
\ No newline at end of file
#ifndef HEXCHAT_SETUP_H
#define HEXCHAT_SETUP_H
void setup_apply_real (int new_pix, int do_ulist, int do_layout);
#endif
......@@ -17,5 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_TEXTGUI_H
#define HEXCHAT_TEXTGUI_H
void PrintTextRaw (void *xtbuf, unsigned char *text, int indent, time_t stamp);
void pevent_dialog_show (void);
#endif
......@@ -17,4 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_URLGRAB_H
#define HEXCHAT_URLGRAB_H
void url_opengui (void);
#endif
......@@ -17,6 +17,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HEXCHAT_USERLISTGUI_H
#define HEXCHAT_USERLISTGUI_H
void userlist_set_value (GtkWidget *treeview, gfloat val);
gfloat userlist_get_value (GtkWidget *treeview);
GtkWidget *userlist_create (GtkWidget *box);
......@@ -25,3 +28,5 @@ void userlist_show (session *sess);
void userlist_select (session *sess, char *name);
char **userlist_selection_list (GtkWidget *widget, int *num_ret);
GdkPixbuf *get_user_icon (server *serv, struct User *user);
#endif
......@@ -17,8 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __XTEXT_H__
#define __XTEXT_H__
#ifndef HEXCHAT_XTEXT_H
#define HEXCHAT_XTEXT_H
#include <gtk/gtkadjustment.h>
#ifdef USE_XFT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment