#include #include #include #include #include #include "config.h" #include #include #include extern int errno; #define osync_assert(x) do { \ if (!(x)) { \ fprintf(stderr, "%s:%i:E:%s: Assertion \"" #x "\" failed\n", __FILE__, __LINE__, __FUNCTION__); \ abort(); \ } } while (0) #define osync_assert_msg(x, msg) do { \ if (!(x)) { \ fprintf(stderr, "%s:%i:E:%s: %s\n", __FILE__, __LINE__, __FUNCTION__, msg); \ abort(); \ } } while (0) #define segfault_me char **blablabla = NULL; *blablabla = "test"; #define osync_return_if_fail(condition) do { \ if (!(condition)) { \ osync_debug ("ASSERT", 0, "%i: Assertion failed: \"%s\" in %s:%i:%s", getpid (), #condition, __FILE__, __LINE__, __FUNCTION__); \ return; \ } } while (0) #define osync_return_val_if_fail(condition, val) do { \ if (!(condition)) { \ return (val); \ } } while (0) typedef struct OSyncDB OSyncDB; #include "opensync_support.h" #include "opensync_user_internals.h" #include "opensync_change_internals.h" #include "opensync_env_internals.h" #include "opensync_error_internals.h" #include "opensync_db_internals.h" #include "opensync_format_internals.h" #include "opensync_member_internals.h" #include "opensync_group_internals.h" #include "opensync_plugin_internals.h" #include "opensync_filter_internals.h" #include "opensync_context_internals.h" #include "opensync_hashtable_internals.h" #include "opensync_message_internals.h" #include "opensync_queue_internals.h" #include "opensync_xml.h"