Archived
1
0
Fork 0

Change indentation to follow the updated standard.

Alot of mixed indentation. use 4 chars wide soft tabs.
This commit is contained in:
Henrik Hautakoski 2011-03-19 12:28:48 +02:00
parent 9cc5420447
commit f46ae1970b
51 changed files with 634 additions and 639 deletions

View file

@ -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

View 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

View file

@ -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.

View file

@ -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

View file

@ -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.

View file

@ -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.

View file

@ -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.