Change indentation to follow the updated standard.
Alot of mixed indentation. use 4 chars wide soft tabs.
This commit is contained in:
parent
9cc5420447
commit
f46ae1970b
51 changed files with 634 additions and 639 deletions
|
|
@ -95,5 +95,4 @@ All API's should be externaly documented in the doc/ directory.
|
|||
Things to keep in mind when modify or write code
|
||||
------------------------------------------------
|
||||
|
||||
include and change the comment found in TEMPLATE file, at the top of the .c/.h file
|
||||
|
||||
include and change the comment found in TEMPLATE file, at the top of the .c/.h file
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ Configuration
|
|||
--------------
|
||||
|
||||
Archive uses a .ini style configuration. The following options are
|
||||
available.
|
||||
available.
|
||||
|
||||
Value types
|
||||
~~~~~~~~~~~
|
||||
|
|
@ -10,7 +10,7 @@ Value types
|
|||
Boolean ;;
|
||||
True: Y, T, 1 +
|
||||
False: N, F, 0
|
||||
|
||||
|
||||
String ;;
|
||||
Anything else.
|
||||
|
||||
|
|
@ -48,4 +48,3 @@ database (String);;
|
|||
Database to use
|
||||
table (String);;
|
||||
Tablename to use
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ This API is here to provide an abstraction to the underlaying low-level filesyst
|
|||
to try to make applications portable but also throw away detail from client-code.
|
||||
|
||||
IMPORTANT: The design is only tested with inotify and the API may
|
||||
need to change in the future to support more subsystems that may have some limitations.
|
||||
need to change in the future to support more subsystems that may have some limitations.
|
||||
|
||||
Data structures
|
||||
~~~~~~~~~~~~~~~
|
||||
|
|
@ -39,10 +39,10 @@ NOTIFY_MOVE_TO;;
|
|||
|
||||
`dir`::
|
||||
non zero if event is triggered on a directory
|
||||
|
||||
|
||||
`path`::
|
||||
path of the triggered event
|
||||
|
||||
|
||||
`filename`::
|
||||
the filename the event was triggered on
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ in this function, the only requirement is that the function never blocks.
|
|||
`notify_event_set_*()`::
|
||||
|
||||
use these functions to set members of the `notify_event` structure.
|
||||
|
||||
|
||||
`notify_event_del()`::
|
||||
|
||||
free's all the memory from the `notify_event` structure.
|
||||
|
|
|
|||
|
|
@ -16,10 +16,10 @@ Holds information about a node on the filesystem
|
|||
|
||||
`name`::
|
||||
name of the entry (filename, directory name)
|
||||
|
||||
|
||||
`base`::
|
||||
The base directory where `name` exists in.
|
||||
|
||||
|
||||
`dir`::
|
||||
zero if the entry is a file, non zero otherwise
|
||||
|
||||
|
|
|
|||
|
|
@ -10,16 +10,16 @@ Macros
|
|||
|
||||
`LOG_INFO`::
|
||||
Information, Someone thinks you may find this important.
|
||||
|
||||
|
||||
`LOG_WARN`::
|
||||
Warning, just a warning. can be ignored if you simply just don't care about it.
|
||||
|
||||
|
||||
`LOG_CRIT`::
|
||||
Critical condition, some things may not work as supposed to.
|
||||
|
||||
|
||||
`LOG_DEBUG`::
|
||||
Debug level, messages that is usefull when debugging.
|
||||
|
||||
|
||||
`LOG_ALL`::
|
||||
All of the above.
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ NOTE: no data is copied, only the address 'obj' is stored in the queue.
|
|||
`queue_isempty()`::
|
||||
|
||||
Returns non zero if 'q' is empty. zero otherwise.
|
||||
|
||||
|
||||
`queue_num_items`::
|
||||
|
||||
Returns the number of items in 'q' at this given moment.
|
||||
|
|
|
|||
|
|
@ -44,11 +44,11 @@ NOTE: The memory pointed to by the 'key' pointer is *not* copied so you must ens
|
|||
|
||||
Deletes a node from the tree. +
|
||||
Returns the node's key if a node was removed, `NULL` otherwise.
|
||||
|
||||
|
||||
`rbtree_free()`::
|
||||
|
||||
Deletes the whole tree. if provided, calls 'free_fn' for every node.
|
||||
|
||||
|
||||
`rbtree_walk()`::
|
||||
|
||||
Walks the tree in-order and passes a pointer to `key`
|
||||
|
|
@ -61,4 +61,4 @@ NOTE: The memory pointed to by the 'key' pointer is *not* copied so you must ens
|
|||
|
||||
`rbtree_is_empty()`::
|
||||
|
||||
Checks if a tree is empty, retruns zero if the tree is empty, nonzero otherwise.
|
||||
Checks if a tree is empty, retruns zero if the tree is empty, nonzero otherwise.
|
||||
|
|
|
|||
Reference in a new issue