mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 23:06:21 +00:00
Fix OSX compile
This commit is contained in:
committed by
Dominik Heidler
parent
65960dfbb2
commit
4ca6296fb7
@@ -288,6 +288,8 @@ AC_CHECK_HEADERS([ncurses.h], [], [])
|
|||||||
AM_CFLAGS="-Wall -Wno-deprecated-declarations"
|
AM_CFLAGS="-Wall -Wno-deprecated-declarations"
|
||||||
AS_IF([test "x$PACKAGE_STATUS" = xdevelopment],
|
AS_IF([test "x$PACKAGE_STATUS" = xdevelopment],
|
||||||
[AM_CFLAGS="$AM_CFLAGS -Wunused -Werror"])
|
[AM_CFLAGS="$AM_CFLAGS -Wunused -Werror"])
|
||||||
|
AS_IF([test "x$PLATFORM" = xosx],
|
||||||
|
[AM_CFLAGS="$AM_CFLAGS -Qunused-arguments"])
|
||||||
AM_LDFLAGS="$AM_LDFLAGS -export-dynamic"
|
AM_LDFLAGS="$AM_LDFLAGS -export-dynamic"
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS $glib_CFLAGS $curl_CFLAGS $libnotify_CFLAGS $PYTHON_CPPFLAGS ${GTK_CFLAGS}"
|
AM_CPPFLAGS="$AM_CPPFLAGS $glib_CFLAGS $curl_CFLAGS $libnotify_CFLAGS $PYTHON_CPPFLAGS ${GTK_CFLAGS}"
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS -DTHEMES_PATH=\"\\\"$THEMES_PATH\\\"\" -DICONS_PATH=\"\\\"$ICONS_PATH\\\"\""
|
AM_CPPFLAGS="$AM_CPPFLAGS -DTHEMES_PATH=\"\\\"$THEMES_PATH\\\"\" -DICONS_PATH=\"\\\"$ICONS_PATH\\\"\""
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include "window_list.h"
|
#include "window_list.h"
|
||||||
#include "contact.h"
|
#include "contact.h"
|
||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
|
#include "xmpp/xmpp.h"
|
||||||
#include "config/preferences.h"
|
#include "config/preferences.h"
|
||||||
#include "chat_session.h"
|
#include "chat_session.h"
|
||||||
|
|
||||||
|
|||||||
@@ -41,9 +41,7 @@
|
|||||||
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
#include "ui/win_types.h"
|
||||||
// forward -> ui/win_types.h
|
|
||||||
typedef struct prof_win_t ProfWin;
|
|
||||||
|
|
||||||
typedef struct http_upload_t {
|
typedef struct http_upload_t {
|
||||||
char *filename;
|
char *filename;
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
#include "window_list.h"
|
#include "window_list.h"
|
||||||
#include "config/preferences.h"
|
#include "config/preferences.h"
|
||||||
|
#include "xmpp/xmpp.h"
|
||||||
|
|
||||||
static GTimer *remind_timer;
|
static GTimer *remind_timer;
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
#include "command/commands.h"
|
#include "command/commands.h"
|
||||||
#include "ui/win_types.h"
|
#include "ui/win_types.h"
|
||||||
#include "muc.h"
|
#include "muc.h"
|
||||||
|
#include "config/tlscerts.h"
|
||||||
#ifdef HAVE_LIBOTR
|
#ifdef HAVE_LIBOTR
|
||||||
#include "otr/otr.h"
|
#include "otr/otr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -45,9 +45,9 @@
|
|||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "xmpp/xmpp.h"
|
|
||||||
#include "ui/buffer.h"
|
#include "ui/buffer.h"
|
||||||
#include "chat_state.h"
|
#include "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
|
||||||
@@ -57,6 +57,48 @@
|
|||||||
#define PROFXMLWIN_MEMCHECK 87333463
|
#define PROFXMLWIN_MEMCHECK 87333463
|
||||||
#define PROFPLUGINWIN_MEMCHECK 43434777
|
#define PROFPLUGINWIN_MEMCHECK 43434777
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
FIELD_HIDDEN,
|
||||||
|
FIELD_TEXT_SINGLE,
|
||||||
|
FIELD_TEXT_PRIVATE,
|
||||||
|
FIELD_TEXT_MULTI,
|
||||||
|
FIELD_BOOLEAN,
|
||||||
|
FIELD_LIST_SINGLE,
|
||||||
|
FIELD_LIST_MULTI,
|
||||||
|
FIELD_JID_SINGLE,
|
||||||
|
FIELD_JID_MULTI,
|
||||||
|
FIELD_FIXED,
|
||||||
|
FIELD_UNKNOWN
|
||||||
|
} form_field_type_t;
|
||||||
|
|
||||||
|
typedef struct form_option_t {
|
||||||
|
char *label;
|
||||||
|
char *value;
|
||||||
|
} FormOption;
|
||||||
|
|
||||||
|
typedef struct form_field_t {
|
||||||
|
char *label;
|
||||||
|
char *type;
|
||||||
|
form_field_type_t type_t;
|
||||||
|
char *var;
|
||||||
|
char *description;
|
||||||
|
gboolean required;
|
||||||
|
GSList *values;
|
||||||
|
GSList *options;
|
||||||
|
Autocomplete value_ac;
|
||||||
|
} FormField;
|
||||||
|
|
||||||
|
typedef struct data_form_t {
|
||||||
|
char *type;
|
||||||
|
char *title;
|
||||||
|
char *instructions;
|
||||||
|
GSList *fields;
|
||||||
|
GHashTable *var_to_tag;
|
||||||
|
GHashTable *tag_to_var;
|
||||||
|
Autocomplete tag_ac;
|
||||||
|
gboolean modified;
|
||||||
|
} DataForm;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LAYOUT_SIMPLE,
|
LAYOUT_SIMPLE,
|
||||||
LAYOUT_SPLIT
|
LAYOUT_SPLIT
|
||||||
|
|||||||
@@ -101,48 +101,6 @@ typedef struct disco_info_t {
|
|||||||
GHashTable *features;
|
GHashTable *features;
|
||||||
} DiscoInfo;
|
} DiscoInfo;
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
FIELD_HIDDEN,
|
|
||||||
FIELD_TEXT_SINGLE,
|
|
||||||
FIELD_TEXT_PRIVATE,
|
|
||||||
FIELD_TEXT_MULTI,
|
|
||||||
FIELD_BOOLEAN,
|
|
||||||
FIELD_LIST_SINGLE,
|
|
||||||
FIELD_LIST_MULTI,
|
|
||||||
FIELD_JID_SINGLE,
|
|
||||||
FIELD_JID_MULTI,
|
|
||||||
FIELD_FIXED,
|
|
||||||
FIELD_UNKNOWN
|
|
||||||
} form_field_type_t;
|
|
||||||
|
|
||||||
typedef struct form_option_t {
|
|
||||||
char *label;
|
|
||||||
char *value;
|
|
||||||
} FormOption;
|
|
||||||
|
|
||||||
typedef struct form_field_t {
|
|
||||||
char *label;
|
|
||||||
char *type;
|
|
||||||
form_field_type_t type_t;
|
|
||||||
char *var;
|
|
||||||
char *description;
|
|
||||||
gboolean required;
|
|
||||||
GSList *values;
|
|
||||||
GSList *options;
|
|
||||||
Autocomplete value_ac;
|
|
||||||
} FormField;
|
|
||||||
|
|
||||||
typedef struct data_form_t {
|
|
||||||
char *type;
|
|
||||||
char *title;
|
|
||||||
char *instructions;
|
|
||||||
GSList *fields;
|
|
||||||
GHashTable *var_to_tag;
|
|
||||||
GHashTable *tag_to_var;
|
|
||||||
Autocomplete tag_ac;
|
|
||||||
gboolean modified;
|
|
||||||
} DataForm;
|
|
||||||
|
|
||||||
// connection functions
|
// connection functions
|
||||||
void jabber_init(void);
|
void jabber_init(void);
|
||||||
jabber_conn_status_t jabber_connect_with_details(const char *const jid, const char *const passwd,
|
jabber_conn_status_t jabber_connect_with_details(const char *const jid, const char *const passwd,
|
||||||
|
|||||||
Reference in New Issue
Block a user