Skip to content

Commit

Permalink
Add API doc (just include liblognorm.h)
Browse files Browse the repository at this point in the history
  • Loading branch information
flicker581 committed Dec 25, 2013
1 parent b260ec3 commit b6edb8f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
18 changes: 9 additions & 9 deletions doc/contacts.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Contacts
========
Contacts
========

Mailing list
------------

If you have any questions about the library, you may mail to the project
mailing list [email protected].

To subscribe: http://lists.adiscon.net/mailman/listinfo/lognorm

If you have any questions about the library, you may mail to the project
mailing list [email protected].

To subscribe: http://lists.adiscon.net/mailman/listinfo/lognorm

Web site
--------
Expand All @@ -24,5 +24,5 @@ Authors
-------

Rainer Gerhards <[email protected]>, Adiscon GmbH

His blog: http://blog.gerhards.net/

His blog: http://blog.gerhards.net/
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Contents:
configuration
sample_rulebase
lognormalizer
libraryapi
internals
license
contacts
Expand Down
10 changes: 10 additions & 0 deletions doc/libraryapi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Library API
===========

To use the library, include liblognorm.h (which is quoted below) into your code.
The API is fairly simple and hardly needs further explanations.

.. literalinclude:: ../src/liblognorm.h
:start-after: #define LIBLOGNORM_H_INCLUDED
:end-before: #endif
:language: c
2 changes: 1 addition & 1 deletion src/liblognorm.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* A copy of the LGPL v2.1 can be found in the file "COPYING" in this distribution.
*/
#ifndef LIBLOGNORM_H_INCLUDED
#define LIBLOGNORM_H_INCLUDED
#define LIBLOGNORM_H_INCLUDED
#include <stdlib.h> /* we need size_t */
#include <json.h>
#include <libestr.h>
Expand Down

0 comments on commit b6edb8f

Please sign in to comment.