f46ae1970b
Change indentation to follow the updated standard.
...
Alot of mixed indentation. use 4 chars wide soft tabs.
2011-03-19 12:28:48 +02:00
ff91ca59cd
inotify-map: unmap_path, return the amount of remaining paths associated with this wd.
2011-02-20 10:50:14 +01:00
ab91625700
inotify-map: inotify_map_get_path: return a list of struct watch* instead of char **
2011-02-20 10:05:06 +01:00
658bc8b9ad
list: added list_copy.
2011-02-20 09:02:06 +01:00
e0302e8ac4
inotify-map: rename lookup to get_path
2011-02-18 09:08:55 +01:00
514a91b52e
inotify-map: use inotify-watch to keep track of the filesystem hirarchy.
2011-02-16 16:07:31 +01:00
a1a85267f0
path.c: dirname_s: allow 'path' to point to the static buffer.
...
feeding the function a pointer to sb.buf results in path also being cleared
by the call to strbuf_reduce and the information is lost.
2011-02-16 16:53:26 +02:00
3c2436867e
list.c: basic list implementation
2011-01-04 21:04:02 +01:00
3b68160892
inotify-watch: Adding inotify watch datastructure.
2011-02-15 16:33:51 +01:00
9e9321dc65
path.c: Added path_isparent function.
2011-02-15 16:23:54 +01:00
171c764691
tree: Adding N-tree module.
2011-02-14 08:09:42 +01:00
546e7c50f1
path.c: added dirname_s function.
2011-02-11 19:17:38 +01:00
1b3035b249
path: added mkpath
2011-02-05 14:13:17 +01:00
e67e03aceb
strbuf: added strbuf_avail and strbuf_appendf.
2011-02-04 17:18:21 +01:00
6538fd9369
strbuf: added strbuf_setlen
2011-02-04 16:27:39 +01:00
d64f14af4e
rbtree: remove unused arguments from INIT macro.
2011-02-01 12:00:07 +01:00
b5f0c3117c
rbtree: move delete_fn from the structure to argument.
2011-02-01 11:51:54 +01:00
440e5ed7d2
inotify-map.c: return a copy of a path list in lookup functions.
...
Becouse it is possible to change the a list stored by the API while traversing it, a bug can couse a infinite loop.
lets be strict about this and only return a copy of the list, so it can't be changed by calls to the API.
2011-01-30 15:55:51 +01:00
33ceeca315
test/t_str-list.c: test export.
2011-01-30 13:28:19 +01:00
222f34aed0
test/t_inotify-map.c: test inotify_map_get_wd.
2011-01-29 11:40:05 +01:00
b0bfbc3a0d
test/t_inotify-map.c: test the right function.
2011-01-29 11:33:14 +01:00
896c356d00
test/t_queue.c: rewritten, catches bug in dequeue.
2011-01-27 17:38:54 +01:00
9378c5824e
test/t_fscrawl.c: cleanup
2011-01-26 19:19:04 +01:00
cc590370bf
inotify: breakup mapping into a module.
2011-01-25 15:38:06 +01:00
41a253a00a
rbtree.c: moved tree assertion from the test.
2011-01-07 10:53:08 +01:00
0fba36440c
rbtree.c: rbtree_walk: pass rbnode->key instead of rbnode to callback function
2011-01-05 09:11:56 +01:00
2c54173a52
test/t_rbtree.c: properly rewritten.
2011-01-03 10:49:11 +01:00
3671888b8b
rbtree.c: search: return key instead of node.
2010-12-27 15:14:20 +01:00
027bf154a7
rbtree.c: use generic keys.
...
to make the rbtree more usefull. allow generic keys and user defined compare functions.
2010-12-27 10:17:01 +01:00
f76f494dcc
added str-list.c
2011-01-22 04:20:55 +01:00
f973e29668
src/queue.c: don't deallocate the last block when queue becomes empty.
...
always keep one block in the queue so that in situations when the queue becomes empty
frequently. performance dosent blow up by calls to malloc/free.
2011-01-13 15:37:00 +01:00
b6ab5c88a8
strbuf.c: added strbuf_explode
2011-01-13 15:36:59 +01:00
2e2d6c7eee
use stdlib.h instead of malloc.h
2011-01-13 15:36:58 +01:00
132bc6e838
Refactoring the buildsystem
2010-11-26 15:30:38 +01:00
f156e8906c
removed debug.h in favor for log.h
2010-12-22 14:51:28 +01:00
055825766f
test/t_path.c: added is_file tests.
2010-12-22 14:51:27 +01:00
8e9f51338b
Makefile: compile with LFS flags to support large files on 32bit.
2010-12-22 14:51:27 +01:00
fca8bba289
path.c: Added is_dir function
2010-12-22 14:51:26 +01:00
dd0f1ae393
log.c: Added basic logging support.
2010-12-22 14:51:26 +01:00
f06a528ad0
strbuf.c: Added strbuf_append_repeat function
2010-12-22 14:51:25 +01:00
d1924e5c67
test/t_strbuf.c: added test for freeing an empty buffer
2010-12-22 14:51:25 +01:00
30ae4449ea
test/t_strbuf.c: refactoring to individual function tests.
...
to improve readability. one test-function for one test.
2010-12-22 14:51:24 +01:00
f752e03943
path.c: removed unneeded functions.
2010-11-14 09:46:34 +01:00
1d99ab9eea
test/t_inotify.c: cleanup and moved to t_notify.c
2010-11-11 16:10:18 +01:00
4a2665004e
queue.c: remove queue_clear.
...
client code knows what objects is stored in the queue
and its only 3 lines to do a simple free() on the items.
2010-11-10 08:45:44 +01:00
d00fa63900
rbtree: changeing design. now using callbacks
2010-11-07 09:18:29 +01:00
731f19553a
rbtree: fixed some memory leaks.
2010-11-05 14:09:51 +01:00
cfb5e85699
moving src/common to src/
2010-10-19 13:34:06 +02:00
22d7238b36
moving src/notify to src/
2010-10-19 11:25:24 +02:00
205f72b3e0
fixed compiler warnings in test helpers.
2010-10-22 13:59:17 +02:00