mowgli.h   mowgli.h 
skipping to change at line 37 skipping to change at line 37
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef __MOWGLI_STAND_H__ #ifndef __MOWGLI_STAND_H__
#define __MOWGLI_STAND_H__ #define __MOWGLI_STAND_H__
#ifdef MOWGLI_CORE
# include "mowgli_config.h"
#endif
#include "mowgli_stdinc.h" #include "mowgli_stdinc.h"
#include "mowgli_logger.h" #include "mowgli_logger.h"
#include "mowgli_assert.h" #include "mowgli_assert.h"
#include "mowgli_exception.h" #include "mowgli_exception.h"
#include "mowgli_alloc.h" #include "mowgli_alloc.h"
#include "mowgli_list.h" #include "mowgli_list.h"
#include "mowgli_object_class.h"
#include "mowgli_object.h" #include "mowgli_object.h"
#include "mowgli_dictionary.h" #include "mowgli_dictionary.h"
#include "mowgli_memorypool.h" #include "mowgli_mempool.h"
#include "mowgli_module.h" #include "mowgli_module.h"
#include "mowgli_queue.h" #include "mowgli_queue.h"
#include "mowgli_hash.h" #include "mowgli_hash.h"
#include "mowgli_heap.h" #include "mowgli_heap.h"
#include "mowgli_init.h" #include "mowgli_init.h"
#include "mowgli_bitvector.h" #include "mowgli_bitvector.h"
#include "mowgli_hook.h" #include "mowgli_hook.h"
#include "mowgli_signal.h" #include "mowgli_signal.h"
#include "mowgli_error_backtrace.h" #include "mowgli_error_backtrace.h"
#include "mowgli_random.h" #include "mowgli_random.h"
#include "mowgli_ioevent.h"
#include "mowgli_argstack.h"
#include "mowgli_object_messaging.h"
#include "mowgli_object_metadata.h"
#endif #endif
 End of changes. 4 change blocks. 
1 lines changed or deleted 10 lines changed or added


 mowgli_config.h   mowgli_config.h 
/* src/libmowgli/mowgli_config.h. Generated from mowgli_config.h.in by con figure. */ /* src/libmowgli/mowgli_config.h. Generated from mowgli_config.h.in by con figure. */
/* src/libmowgli/mowgli_config.h.in. Generated from configure.ac by autohe ader. */ /* src/libmowgli/mowgli_config.h.in. Generated from configure.ac by autohe ader. */
/* Define to 1 if the `closedir' function returns void instead of `int'. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */
/* #undef CLOSEDIR_VOID */ /* #undef CLOSEDIR_VOID */
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR' . /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR' .
*/ */
#define HAVE_DIRENT_H 1 #define HAVE_DIRENT_H 1
/* Define to 1 if you have the `epoll_ctl' function. */
#define HAVE_EPOLL_CTL 1
/* Define to 1 if you have the <errno.h> header file. */ /* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1 #define HAVE_ERRNO_H 1
/* Define to 1 if you have the `gettimeofday' function. */ /* Define to 1 if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY 1 #define HAVE_GETTIMEOFDAY 1
/* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1 #define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */ /* Define to 1 if you have the <limits.h> header file. */
skipping to change at line 38 skipping to change at line 41
/* Define to 1 if you have the `memset' function. */ /* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1 #define HAVE_MEMSET 1
/* Define to 1 if you have the `mmap' function. */ /* Define to 1 if you have the `mmap' function. */
#define HAVE_MMAP 1 #define HAVE_MMAP 1
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
/* #undef HAVE_NDIR_H */ /* #undef HAVE_NDIR_H */
/* Define to 1 if you have the `port_create' function. */
/* #undef HAVE_PORT_CREATE */
/* Define to 1 if you have the `printf' function. */ /* Define to 1 if you have the `printf' function. */
#define HAVE_PRINTF 1 #define HAVE_PRINTF 1
/* Define to 1 if you have the `setlocale' function. */ /* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1 #define HAVE_SETLOCALE 1
/* Define to 1 if you have the `snprintf' function. */ /* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1 #define HAVE_SNPRINTF 1
/* Define to 1 if you have the `sprintf' function. */ /* Define to 1 if you have the `sprintf' function. */
skipping to change at line 127 skipping to change at line 133
slash. */ slash. */
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
/* Define to the address where bug reports for this package should be sent. */ /* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "bugs+libmowgli@atheme.org" #define PACKAGE_BUGREPORT "bugs+libmowgli@atheme.org"
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "libmowgli" #define PACKAGE_NAME "libmowgli"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "libmowgli 0.1.4" #define PACKAGE_STRING "libmowgli 0.1.5"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "libmowgli" #define PACKAGE_TARNAME "libmowgli"
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "0.1.4" #define PACKAGE_VERSION "0.1.5"
/* Define the shared module suffix extension on your platform. */ /* Define the shared module suffix extension on your platform. */
#define SHARED_SUFFIX ".so" #define SHARED_SUFFIX ".so"
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
/* Define to empty if `const' does not conform to ANSI C. */ /* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */ /* #undef const */
 End of changes. 4 change blocks. 
2 lines changed or deleted 8 lines changed or added


 mowgli_dictionary.h   mowgli_dictionary.h 
skipping to change at line 77 skipping to change at line 77
* this is a convenience macro for inlining iteration of dictionaries. * this is a convenience macro for inlining iteration of dictionaries.
*/ */
#define MOWGLI_DICTIONARY_FOREACH(element, state, dict) for (mowgli_diction ary_foreach_start((dict), (state)); (element = mowgli_dictionary_foreach_cu r((dict), (state))); mowgli_dictionary_foreach_next((dict), (state))) #define MOWGLI_DICTIONARY_FOREACH(element, state, dict) for (mowgli_diction ary_foreach_start((dict), (state)); (element = mowgli_dictionary_foreach_cu r((dict), (state))); mowgli_dictionary_foreach_next((dict), (state)))
/* /*
* mowgli_dictionary_create() creates a new dictionary tree of the defined resolution. * mowgli_dictionary_create() creates a new dictionary tree of the defined resolution.
* name is only used for statistical purposes. * name is only used for statistical purposes.
* compare_cb is the comparison function, typically strcmp, strcasecmp or * compare_cb is the comparison function, typically strcmp, strcasecmp or
* irccasecmp. * irccasecmp.
*/ */
extern mowgli_dictionary_t *mowgli_dictionary_create(const char *name, int resolution, int (*compare_cb)(const char *a, const char *b)); extern mowgli_dictionary_t *mowgli_dictionary_create(int resolution, int (* compare_cb)(const char *a, const char *b));
/* /*
* mowgli_dictionary_destroy() destroys all entries in a dtree, and also op tionally calls * mowgli_dictionary_destroy() destroys all entries in a dtree, and also op tionally calls
* a defined callback function to destroy any data attached to it. * a defined callback function to destroy any data attached to it.
*/ */
extern void mowgli_dictionary_destroy(mowgli_dictionary_t *dtree, extern void mowgli_dictionary_destroy(mowgli_dictionary_t *dtree,
void (*destroy_cb)(mowgli_dictionary_elem_t *delem, void *privdata), void (*destroy_cb)(mowgli_dictionary_elem_t *delem, void *privdata),
void *privdata); void *privdata);
/* /*
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 mowgli_list.h   mowgli_list.h 
skipping to change at line 70 skipping to change at line 70
mowgli_node_t *head, *tail; mowgli_node_t *head, *tail;
size_t count; /* how many entries in the list */ size_t count; /* how many entries in the list */
}; };
extern void mowgli_node_init(void); extern void mowgli_node_init(void);
extern mowgli_node_t *mowgli_node_create(void); extern mowgli_node_t *mowgli_node_create(void);
extern void mowgli_node_free(mowgli_node_t *n); extern void mowgli_node_free(mowgli_node_t *n);
extern void mowgli_node_add(void *data, mowgli_node_t *n, mowgli_list_t *l) ; extern void mowgli_node_add(void *data, mowgli_node_t *n, mowgli_list_t *l) ;
extern void mowgli_node_add_head(void *data, mowgli_node_t *n, mowgli_list_ t *l); extern void mowgli_node_add_head(void *data, mowgli_node_t *n, mowgli_list_ t *l);
extern void mowgli_node_add_before(void *data, mowgli_node_t *n, mowgli_lis t_t *l, mowgli_node_t *before); extern void mowgli_node_add_before(void *data, mowgli_node_t *n, mowgli_lis t_t *l, mowgli_node_t *before);
extern void mowgli_node_add_after(void *data, mowgli_node_t *n, mowgli_list _t *l, mowgli_node_t *before);
extern void mowgli_node_insert(void *data, mowgli_node_t *n, mowgli_list_t *l, int position); extern void mowgli_node_insert(void *data, mowgli_node_t *n, mowgli_list_t *l, int position);
extern int mowgli_node_index(mowgli_node_t *n, mowgli_list_t *l); extern int mowgli_node_index(mowgli_node_t *n, mowgli_list_t *l);
extern void mowgli_node_delete(mowgli_node_t *n, mowgli_list_t *l); extern void mowgli_node_delete(mowgli_node_t *n, mowgli_list_t *l);
extern mowgli_node_t *mowgli_node_find(void *data, mowgli_list_t *l); extern mowgli_node_t *mowgli_node_find(void *data, mowgli_list_t *l);
extern void mowgli_node_move(mowgli_node_t *m, mowgli_list_t *oldlist, mowg li_list_t *newlist); extern void mowgli_node_move(mowgli_node_t *m, mowgli_list_t *oldlist, mowg li_list_t *newlist);
extern mowgli_list_t *mowgli_node_parent(mowgli_node_t *n); extern mowgli_list_t *mowgli_node_parent(mowgli_node_t *n);
extern mowgli_node_t *mowgli_node_nth(mowgli_list_t *l, int pos); extern mowgli_node_t *mowgli_node_nth(mowgli_list_t *l, int pos);
extern void *mowgli_node_nth_data(mowgli_list_t *l, int pos); extern void *mowgli_node_nth_data(mowgli_list_t *l, int pos);
typedef int (*mowgli_list_comparator_t)(mowgli_node_t *n, mowgli_node_t *n2
, void *opaque);
extern mowgli_list_t *mowgli_list_create(void); extern mowgli_list_t *mowgli_list_create(void);
extern void mowgli_list_free(mowgli_list_t *l); extern void mowgli_list_free(mowgli_list_t *l);
extern void mowgli_list_concat(mowgli_list_t *l, mowgli_list_t *l2);
extern void mowgli_list_reverse(mowgli_list_t *l);
extern void mowgli_list_sort(mowgli_list_t *l, mowgli_list_comparator_t com
p, void *opaque);
#endif #endif
 End of changes. 3 change blocks. 
0 lines changed or deleted 8 lines changed or added


 mowgli_object.h   mowgli_object.h 
skipping to change at line 37 skipping to change at line 37
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef __MOWGLI_OBJECT_H__ #ifndef __MOWGLI_OBJECT_H__
#define __MOWGLI_OBJECT_H__ #define __MOWGLI_OBJECT_H__
typedef void (*mowgli_destructor_t)(void *);
typedef struct { typedef struct {
char *name; char *name;
int refcount; int refcount;
mowgli_destructor_t destructor; mowgli_object_class_t *klass;
mowgli_list_t message_handlers;
mowgli_list_t metadata;
} mowgli_object_t; } mowgli_object_t;
extern void mowgli_object_init(mowgli_object_t *, const char *name, mowgli_ destructor_t destructor); extern void mowgli_object_init(mowgli_object_t *, const char *name, mowgli_ object_class_t *klass, mowgli_destructor_t destructor);
extern void *mowgli_object_ref(void *); extern void *mowgli_object_ref(void *);
extern void mowgli_object_unref(void *); extern void mowgli_object_unref(void *);
#define mowgli_object(x) ((mowgli_object_t *) x) #define mowgli_object(x) ((mowgli_object_t *) x)
#endif #endif
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added


 mowgli_random.h   mowgli_random.h 
skipping to change at line 41 skipping to change at line 41
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef __MOWGLI_RANDOM_H__ #ifndef __MOWGLI_RANDOM_H__
#define __MOWGLI_RANDOM_H__ #define __MOWGLI_RANDOM_H__
/* mowgli_random_t contains state data which is private */ /* mowgli_random_t contains state data which is private */
struct mowgli_random_; struct mowgli_random_;
typedef struct mowgli_random_ mowgli_random_t; typedef struct mowgli_random_ mowgli_random_t;
/* object class initialization. */
extern void mowgli_random_init(void);
/* construction and destruction. */ /* construction and destruction. */
extern mowgli_random_t *mowgli_random_new(void); extern mowgli_random_t *mowgli_random_new(void);
extern mowgli_random_t *mowgli_random_new_with_seed(unsigned int seed); extern mowgli_random_t *mowgli_random_new_with_seed(unsigned int seed);
extern void mowgli_random_destroy(mowgli_random_t *self);
/* reset seed */ /* reset seed */
extern void mowgli_random_reseed(mowgli_random_t *self, unsigned int seed); extern void mowgli_random_reseed(mowgli_random_t *self, unsigned int seed);
/* number retrieval */ /* number retrieval */
extern unsigned int mowgli_random_int(mowgli_random_t *self); extern unsigned int mowgli_random_int(mowgli_random_t *self);
extern int mowgli_random_int_ranged(mowgli_random_t *self, int begin, int e nd); extern int mowgli_random_int_ranged(mowgli_random_t *self, int begin, int e nd);
#endif #endif
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/