| 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 __cplusplus | |
| | | # define MOWGLI_DECLS_START extern "C" { | |
| | | # define MOWGLI_DECLS_END }; | |
| | | #else | |
| | | # define MOWGLI_DECLS_START | |
| | | # define MOWGLI_DECLS_END | |
| | | #endif | |
| | | | |
| #ifdef MOWGLI_CORE | | #ifdef MOWGLI_CORE | |
| # include "mowgli_config.h" | | # include "mowgli_config.h" | |
| #endif | | #endif | |
| | | | |
| #include "mowgli_stdinc.h" | | #include "mowgli_stdinc.h" | |
| | | | |
|
| | | MOWGLI_DECLS_START | |
| | | | |
| #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_spinlock.h" | |
| #include "mowgli_list.h" | | #include "mowgli_list.h" | |
| #include "mowgli_object_class.h" | | #include "mowgli_object_class.h" | |
| #include "mowgli_object.h" | | #include "mowgli_object.h" | |
| #include "mowgli_dictionary.h" | | #include "mowgli_dictionary.h" | |
| #include "mowgli_mempool.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_ioevent.h" | |
| #include "mowgli_argstack.h" | | #include "mowgli_argstack.h" | |
| #include "mowgli_object_messaging.h" | | #include "mowgli_object_messaging.h" | |
| #include "mowgli_object_metadata.h" | | #include "mowgli_object_metadata.h" | |
|
| | | #include "mowgli_global_storage.h" | |
| | | | |
| | | MOWGLI_DECLS_END | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 4 change blocks. |
| 0 lines changed or deleted | | 14 lines changed or added | |
|
| mowgli_alloc.h | | mowgli_alloc.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_ALLOC_H__ | | #ifndef __MOWGLI_ALLOC_H__ | |
| #define __MOWGLI_ALLOC_H__ | | #define __MOWGLI_ALLOC_H__ | |
| | | | |
|
| extern void * mowgli_alloc_array(size_t size, size_t amt); | | extern void * mowgli_alloc_array(size_t size, size_t count); | |
| extern void * mowgli_alloc(size_t size); | | extern void * mowgli_alloc(size_t size); | |
| extern void mowgli_free(void *ptr); | | extern void mowgli_free(void *ptr); | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 1 change blocks. |
| 1 lines changed or deleted | | 1 lines changed or added | |
|
| mowgli_argstack.h | | mowgli_argstack.h | |
| | | | |
| skipping to change at line 59 | | skipping to change at line 59 | |
| mowgli_boolean_t boolean; | | mowgli_boolean_t boolean; | |
| } data; | | } data; | |
| mowgli_argstack_element_type_t type; | | mowgli_argstack_element_type_t type; | |
| } mowgli_argstack_element_t; | | } mowgli_argstack_element_t; | |
| | | | |
| typedef struct { | | typedef struct { | |
| mowgli_object_t parent; | | mowgli_object_t parent; | |
| mowgli_list_t stack; | | mowgli_list_t stack; | |
| } mowgli_argstack_t; | | } mowgli_argstack_t; | |
| | | | |
|
| extern mowgli_argstack_t *mowgli_argstack_new(const char *descstr, ...); | | extern mowgli_argstack_t *mowgli_argstack_create(const char *descstr, ...); | |
| extern mowgli_argstack_t *mowgli_argstack_new_from_va_list(const char *desc | | extern mowgli_argstack_t *mowgli_argstack_create_from_va_list(const char *d | |
| str, va_list va); | | escstr, va_list va); | |
| extern void mowgli_argstack_init(void); | | extern void mowgli_argstack_init(void); | |
| extern const char *mowgli_argstack_pop_string(mowgli_argstack_t *); | | extern const char *mowgli_argstack_pop_string(mowgli_argstack_t *); | |
| extern int mowgli_argstack_pop_numeric(mowgli_argstack_t *); | | extern int mowgli_argstack_pop_numeric(mowgli_argstack_t *); | |
| extern mowgli_boolean_t mowgli_argstack_pop_boolean(mowgli_argstack_t *); | | extern mowgli_boolean_t mowgli_argstack_pop_boolean(mowgli_argstack_t *); | |
| extern void *mowgli_argstack_pop_pointer(mowgli_argstack_t *); | | extern void *mowgli_argstack_pop_pointer(mowgli_argstack_t *); | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 1 change blocks. |
| 3 lines changed or deleted | | 3 lines changed or added | |
|
| mowgli_bitvector.h | | mowgli_bitvector.h | |
| | | | |
| skipping to change at line 43 | | skipping to change at line 43 | |
| | | | |
| #ifndef __MOWGLI_BITVECTOR_H__ | | #ifndef __MOWGLI_BITVECTOR_H__ | |
| #define __MOWGLI_BITVECTOR_H__ | | #define __MOWGLI_BITVECTOR_H__ | |
| | | | |
| typedef struct { | | typedef struct { | |
| unsigned int bits; | | unsigned int bits; | |
| unsigned int divisor; | | unsigned int divisor; | |
| unsigned int *vector; | | unsigned int *vector; | |
| } mowgli_bitvector_t; | | } mowgli_bitvector_t; | |
| | | | |
|
| extern mowgli_bitvector_t *mowgli_bitvector_new(int bits); | | extern void mowgli_bitvector_init(void); | |
| | | extern mowgli_bitvector_t *mowgli_bitvector_create(int bits); | |
| extern void mowgli_bitvector_set(mowgli_bitvector_t *bv, int slot, mowgli_b
oolean_t val); | | extern void mowgli_bitvector_set(mowgli_bitvector_t *bv, int slot, mowgli_b
oolean_t val); | |
| extern mowgli_boolean_t mowgli_bitvector_get(mowgli_bitvector_t *bv, int sl
ot); | | extern mowgli_boolean_t mowgli_bitvector_get(mowgli_bitvector_t *bv, int sl
ot); | |
| extern mowgli_bitvector_t *mowgli_bitvector_combine(mowgli_bitvector_t *bv1
, mowgli_bitvector_t *bv2); | | extern mowgli_bitvector_t *mowgli_bitvector_combine(mowgli_bitvector_t *bv1
, mowgli_bitvector_t *bv2); | |
| extern mowgli_bitvector_t *mowgli_bitvector_xor(mowgli_bitvector_t *bv1, mo
wgli_bitvector_t *bv2); | | extern mowgli_bitvector_t *mowgli_bitvector_xor(mowgli_bitvector_t *bv1, mo
wgli_bitvector_t *bv2); | |
| extern mowgli_boolean_t mowgli_bitvector_compare(mowgli_bitvector_t *bv1, m
owgli_bitvector_t *bv2); | | extern mowgli_boolean_t mowgli_bitvector_compare(mowgli_bitvector_t *bv1, m
owgli_bitvector_t *bv2); | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 1 change blocks. |
| 1 lines changed or deleted | | 2 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 by configure. */ | |
| /* 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 to 1 if you have the `epoll_ctl' function. */ | |
| | | | |
| skipping to change at line 133 | | 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.5" | | #define PACKAGE_STRING "libmowgli 0.2.0" | |
| | | | |
| /* 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.5" | | #define PACKAGE_VERSION "0.2.0" | |
| | | | |
| /* 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. 3 change blocks. |
| 3 lines changed or deleted | | 3 lines changed or added | |
|
| mowgli_mempool.h | | mowgli_mempool.h | |
| | | | |
| skipping to change at line 39 | | skipping to change at line 39 | |
| * 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_MEMPOOL_H__ | | #ifndef __MOWGLI_MEMPOOL_H__ | |
| #define __MOWGLI_MEMPOOL_H__ | | #define __MOWGLI_MEMPOOL_H__ | |
| | | | |
| typedef struct mowgli_mempool_t_ mowgli_mempool_t; | | typedef struct mowgli_mempool_t_ mowgli_mempool_t; | |
| | | | |
|
| mowgli_mempool_t * mowgli_mempool_new(void); | | mowgli_mempool_t * mowgli_mempool_create(void); | |
| mowgli_mempool_t * mowgli_mempool_with_custom_destructor(mowgli_destructor_
t destructor); | | mowgli_mempool_t * mowgli_mempool_with_custom_destructor(mowgli_destructor_
t destructor); | |
| | | | |
| void * mowgli_mempool_add(mowgli_mempool_t * pool, void * ptr); | | void * mowgli_mempool_add(mowgli_mempool_t * pool, void * ptr); | |
| void * mowgli_mempool_allocate(mowgli_mempool_t * pool, size_t sz); | | void * mowgli_mempool_allocate(mowgli_mempool_t * pool, size_t sz); | |
| void mowgli_mempool_release(mowgli_mempool_t * pool, void * addr); | | void mowgli_mempool_release(mowgli_mempool_t * pool, void * addr); | |
| | | | |
| void mowgli_mempool_cleanup(mowgli_mempool_t * pool); | | void mowgli_mempool_cleanup(mowgli_mempool_t * pool); | |
| | | | |
| void mowgli_mempool_destroy(mowgli_mempool_t * pool); | | void mowgli_mempool_destroy(mowgli_mempool_t * pool); | |
| | | | |
| | | | |
End of changes. 1 change blocks. |
| 1 lines changed or deleted | | 1 lines changed or added | |
|
| mowgli_queue.h | | mowgli_queue.h | |
| | | | |
| skipping to change at line 48 | | skipping to change at line 48 | |
| struct mowgli_queue_ *prev, *next; | | struct mowgli_queue_ *prev, *next; | |
| void *data; | | void *data; | |
| } mowgli_queue_t; | | } mowgli_queue_t; | |
| | | | |
| extern void mowgli_queue_init(void); | | extern void mowgli_queue_init(void); | |
| extern mowgli_queue_t *mowgli_queue_push(mowgli_queue_t *head, void *data); | | extern mowgli_queue_t *mowgli_queue_push(mowgli_queue_t *head, void *data); | |
| extern mowgli_queue_t *mowgli_queue_shift(mowgli_queue_t *head, void *data)
; | | extern mowgli_queue_t *mowgli_queue_shift(mowgli_queue_t *head, void *data)
; | |
| extern mowgli_queue_t *mowgli_queue_remove(mowgli_queue_t *head); | | extern mowgli_queue_t *mowgli_queue_remove(mowgli_queue_t *head); | |
| extern mowgli_queue_t *mowgli_queue_find(mowgli_queue_t *head, void *data); | | extern mowgli_queue_t *mowgli_queue_find(mowgli_queue_t *head, void *data); | |
| extern mowgli_queue_t *mowgli_queue_remove_data(mowgli_queue_t *head, void
*data); | | extern mowgli_queue_t *mowgli_queue_remove_data(mowgli_queue_t *head, void
*data); | |
|
| extern void mowgli_queue_free(mowgli_queue_t *head); | | extern void mowgli_queue_destroy(mowgli_queue_t *head); | |
| extern mowgli_queue_t *mowgli_queue_skip(mowgli_queue_t *head, int amt); | | extern mowgli_queue_t *mowgli_queue_skip(mowgli_queue_t *head, int amt); | |
| extern mowgli_queue_t *mowgli_queue_rewind(mowgli_queue_t *head, int amt); | | extern mowgli_queue_t *mowgli_queue_rewind(mowgli_queue_t *head, int amt); | |
| extern mowgli_queue_t *mowgli_queue_head(mowgli_queue_t *n); | | extern mowgli_queue_t *mowgli_queue_head(mowgli_queue_t *n); | |
| extern mowgli_queue_t *mowgli_queue_tail(mowgli_queue_t *n); | | extern mowgli_queue_t *mowgli_queue_tail(mowgli_queue_t *n); | |
| extern void *mowgli_queue_pop_head(mowgli_queue_t **n); | | extern void *mowgli_queue_pop_head(mowgli_queue_t **n); | |
| extern void *mowgli_queue_pop_tail(mowgli_queue_t **n); | | extern void *mowgli_queue_pop_tail(mowgli_queue_t **n); | |
| extern int mowgli_queue_length(mowgli_queue_t *head); | | extern int mowgli_queue_length(mowgli_queue_t *head); | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 1 change blocks. |
| 1 lines changed or deleted | | 1 lines changed or added | |
|
| mowgli_random.h | | mowgli_random.h | |
| | | | |
| skipping to change at line 45 | | skipping to change at line 45 | |
| #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. */ | | /* object class initialization. */ | |
| extern void mowgli_random_init(void); | | 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_create(void); | |
| extern mowgli_random_t *mowgli_random_new_with_seed(unsigned int seed); | | extern mowgli_random_t *mowgli_random_create_with_seed(unsigned int seed); | |
| | | | |
| /* 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. 1 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|