Skip to content

Commit 59be0ac

Browse files
committed
More doxygen, and a dummy config file for it. Just run "doxygen doxygen.config".
Signed-off-by: Jed <[email protected]>
1 parent 2d00184 commit 59be0ac

File tree

12 files changed

+418
-29
lines changed

12 files changed

+418
-29
lines changed

doxygen.config

+270
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
# Doxyfile 1.7.1
2+
3+
#---------------------------------------------------------------------------
4+
# Project related configuration options
5+
#---------------------------------------------------------------------------
6+
DOXYFILE_ENCODING = UTF-8
7+
PROJECT_NAME = vusb-daemon
8+
PROJECT_NUMBER =
9+
OUTPUT_DIRECTORY = doxygen
10+
CREATE_SUBDIRS = YES
11+
OUTPUT_LANGUAGE = English
12+
BRIEF_MEMBER_DESC = YES
13+
REPEAT_BRIEF = YES
14+
ABBREVIATE_BRIEF =
15+
ALWAYS_DETAILED_SEC = NO
16+
INLINE_INHERITED_MEMB = NO
17+
FULL_PATH_NAMES = YES
18+
STRIP_FROM_PATH =
19+
STRIP_FROM_INC_PATH =
20+
SHORT_NAMES = NO
21+
JAVADOC_AUTOBRIEF = NO
22+
QT_AUTOBRIEF = NO
23+
MULTILINE_CPP_IS_BRIEF = NO
24+
INHERIT_DOCS = YES
25+
SEPARATE_MEMBER_PAGES = NO
26+
TAB_SIZE = 8
27+
ALIASES =
28+
OPTIMIZE_OUTPUT_FOR_C = NO
29+
OPTIMIZE_OUTPUT_JAVA = NO
30+
OPTIMIZE_FOR_FORTRAN = NO
31+
OPTIMIZE_OUTPUT_VHDL = NO
32+
EXTENSION_MAPPING =
33+
BUILTIN_STL_SUPPORT = NO
34+
CPP_CLI_SUPPORT = NO
35+
SIP_SUPPORT = NO
36+
IDL_PROPERTY_SUPPORT = YES
37+
DISTRIBUTE_GROUP_DOC = NO
38+
SUBGROUPING = YES
39+
TYPEDEF_HIDES_STRUCT = NO
40+
SYMBOL_CACHE_SIZE = 0
41+
#---------------------------------------------------------------------------
42+
# Build related configuration options
43+
#---------------------------------------------------------------------------
44+
EXTRACT_ALL = NO
45+
EXTRACT_PRIVATE = NO
46+
EXTRACT_STATIC = NO
47+
EXTRACT_LOCAL_CLASSES = YES
48+
EXTRACT_LOCAL_METHODS = NO
49+
EXTRACT_ANON_NSPACES = NO
50+
HIDE_UNDOC_MEMBERS = NO
51+
HIDE_UNDOC_CLASSES = NO
52+
HIDE_FRIEND_COMPOUNDS = NO
53+
HIDE_IN_BODY_DOCS = NO
54+
INTERNAL_DOCS = NO
55+
CASE_SENSE_NAMES = YES
56+
HIDE_SCOPE_NAMES = NO
57+
SHOW_INCLUDE_FILES = YES
58+
FORCE_LOCAL_INCLUDES = NO
59+
INLINE_INFO = YES
60+
SORT_MEMBER_DOCS = YES
61+
SORT_BRIEF_DOCS = NO
62+
SORT_MEMBERS_CTORS_1ST = NO
63+
SORT_GROUP_NAMES = NO
64+
SORT_BY_SCOPE_NAME = NO
65+
GENERATE_TODOLIST = YES
66+
GENERATE_TESTLIST = YES
67+
GENERATE_BUGLIST = YES
68+
GENERATE_DEPRECATEDLIST= YES
69+
ENABLED_SECTIONS =
70+
MAX_INITIALIZER_LINES = 30
71+
SHOW_USED_FILES = YES
72+
SHOW_DIRECTORIES = NO
73+
SHOW_FILES = YES
74+
SHOW_NAMESPACES = YES
75+
FILE_VERSION_FILTER =
76+
LAYOUT_FILE =
77+
#---------------------------------------------------------------------------
78+
# configuration options related to warning and progress messages
79+
#---------------------------------------------------------------------------
80+
QUIET = NO
81+
WARNINGS = YES
82+
WARN_IF_UNDOCUMENTED = YES
83+
WARN_IF_DOC_ERROR = YES
84+
WARN_NO_PARAMDOC = NO
85+
WARN_FORMAT = "$file:$line: $text"
86+
WARN_LOGFILE =
87+
#---------------------------------------------------------------------------
88+
# configuration options related to the input files
89+
#---------------------------------------------------------------------------
90+
INPUT = src
91+
INPUT_ENCODING = UTF-8
92+
FILE_PATTERNS =
93+
RECURSIVE = NO
94+
EXCLUDE =
95+
EXCLUDE_SYMLINKS = NO
96+
EXCLUDE_PATTERNS =
97+
EXCLUDE_SYMBOLS =
98+
EXAMPLE_PATH =
99+
EXAMPLE_PATTERNS =
100+
EXAMPLE_RECURSIVE = NO
101+
IMAGE_PATH =
102+
INPUT_FILTER =
103+
FILTER_PATTERNS =
104+
FILTER_SOURCE_FILES = NO
105+
#---------------------------------------------------------------------------
106+
# configuration options related to source browsing
107+
#---------------------------------------------------------------------------
108+
SOURCE_BROWSER = NO
109+
INLINE_SOURCES = NO
110+
STRIP_CODE_COMMENTS = YES
111+
REFERENCED_BY_RELATION = NO
112+
REFERENCES_RELATION = NO
113+
REFERENCES_LINK_SOURCE = YES
114+
USE_HTAGS = NO
115+
VERBATIM_HEADERS = YES
116+
#---------------------------------------------------------------------------
117+
# configuration options related to the alphabetical class index
118+
#---------------------------------------------------------------------------
119+
ALPHABETICAL_INDEX = YES
120+
COLS_IN_ALPHA_INDEX = 5
121+
IGNORE_PREFIX =
122+
#---------------------------------------------------------------------------
123+
# configuration options related to the HTML output
124+
#---------------------------------------------------------------------------
125+
GENERATE_HTML = YES
126+
HTML_OUTPUT = html
127+
HTML_FILE_EXTENSION = .html
128+
HTML_HEADER =
129+
HTML_FOOTER =
130+
HTML_STYLESHEET =
131+
HTML_COLORSTYLE_HUE = 220
132+
HTML_COLORSTYLE_SAT = 100
133+
HTML_COLORSTYLE_GAMMA = 80
134+
HTML_TIMESTAMP = YES
135+
HTML_ALIGN_MEMBERS = YES
136+
HTML_DYNAMIC_SECTIONS = NO
137+
GENERATE_DOCSET = NO
138+
DOCSET_FEEDNAME = "Doxygen generated docs"
139+
DOCSET_BUNDLE_ID = org.doxygen.Project
140+
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
141+
DOCSET_PUBLISHER_NAME = Publisher
142+
GENERATE_HTMLHELP = NO
143+
CHM_FILE =
144+
HHC_LOCATION =
145+
GENERATE_CHI = NO
146+
CHM_INDEX_ENCODING =
147+
BINARY_TOC = NO
148+
TOC_EXPAND = NO
149+
GENERATE_QHP = NO
150+
QCH_FILE =
151+
QHP_NAMESPACE = org.doxygen.Project
152+
QHP_VIRTUAL_FOLDER = doc
153+
QHP_CUST_FILTER_NAME =
154+
QHP_CUST_FILTER_ATTRS =
155+
QHP_SECT_FILTER_ATTRS =
156+
QHG_LOCATION =
157+
GENERATE_ECLIPSEHELP = NO
158+
ECLIPSE_DOC_ID = org.doxygen.Project
159+
DISABLE_INDEX = NO
160+
ENUM_VALUES_PER_LINE = 4
161+
GENERATE_TREEVIEW = NO
162+
USE_INLINE_TREES = NO
163+
TREEVIEW_WIDTH = 250
164+
EXT_LINKS_IN_WINDOW = NO
165+
FORMULA_FONTSIZE = 10
166+
FORMULA_TRANSPARENT = YES
167+
SEARCHENGINE = YES
168+
SERVER_BASED_SEARCH = NO
169+
#---------------------------------------------------------------------------
170+
# configuration options related to the LaTeX output
171+
#---------------------------------------------------------------------------
172+
GENERATE_LATEX = YES
173+
LATEX_OUTPUT = latex
174+
LATEX_CMD_NAME = latex
175+
MAKEINDEX_CMD_NAME = makeindex
176+
COMPACT_LATEX = NO
177+
PAPER_TYPE = a4wide
178+
EXTRA_PACKAGES =
179+
LATEX_HEADER =
180+
PDF_HYPERLINKS = YES
181+
USE_PDFLATEX = YES
182+
LATEX_BATCHMODE = NO
183+
LATEX_HIDE_INDICES = NO
184+
LATEX_SOURCE_CODE = NO
185+
#---------------------------------------------------------------------------
186+
# configuration options related to the RTF output
187+
#---------------------------------------------------------------------------
188+
GENERATE_RTF = NO
189+
RTF_OUTPUT = rtf
190+
COMPACT_RTF = NO
191+
RTF_HYPERLINKS = NO
192+
RTF_STYLESHEET_FILE =
193+
RTF_EXTENSIONS_FILE =
194+
#---------------------------------------------------------------------------
195+
# configuration options related to the man page output
196+
#---------------------------------------------------------------------------
197+
GENERATE_MAN = NO
198+
MAN_OUTPUT = man
199+
MAN_EXTENSION = .3
200+
MAN_LINKS = NO
201+
#---------------------------------------------------------------------------
202+
# configuration options related to the XML output
203+
#---------------------------------------------------------------------------
204+
GENERATE_XML = NO
205+
XML_OUTPUT = xml
206+
XML_SCHEMA =
207+
XML_DTD =
208+
XML_PROGRAMLISTING = YES
209+
#---------------------------------------------------------------------------
210+
# configuration options for the AutoGen Definitions output
211+
#---------------------------------------------------------------------------
212+
GENERATE_AUTOGEN_DEF = NO
213+
#---------------------------------------------------------------------------
214+
# configuration options related to the Perl module output
215+
#---------------------------------------------------------------------------
216+
GENERATE_PERLMOD = NO
217+
PERLMOD_LATEX = NO
218+
PERLMOD_PRETTY = YES
219+
PERLMOD_MAKEVAR_PREFIX =
220+
#---------------------------------------------------------------------------
221+
# Configuration options related to the preprocessor
222+
#---------------------------------------------------------------------------
223+
ENABLE_PREPROCESSING = YES
224+
MACRO_EXPANSION = NO
225+
EXPAND_ONLY_PREDEF = NO
226+
SEARCH_INCLUDES = YES
227+
INCLUDE_PATH =
228+
INCLUDE_FILE_PATTERNS =
229+
PREDEFINED =
230+
EXPAND_AS_DEFINED =
231+
SKIP_FUNCTION_MACROS = YES
232+
#---------------------------------------------------------------------------
233+
# Configuration::additions related to external references
234+
#---------------------------------------------------------------------------
235+
TAGFILES =
236+
GENERATE_TAGFILE =
237+
ALLEXTERNALS = NO
238+
EXTERNAL_GROUPS = YES
239+
PERL_PATH = /usr/bin/perl
240+
#---------------------------------------------------------------------------
241+
# Configuration options related to the dot tool
242+
#---------------------------------------------------------------------------
243+
CLASS_DIAGRAMS = YES
244+
MSCGEN_PATH =
245+
HIDE_UNDOC_RELATIONS = YES
246+
HAVE_DOT = NO
247+
DOT_NUM_THREADS = 0
248+
DOT_FONTNAME = FreeSans.ttf
249+
DOT_FONTSIZE = 10
250+
DOT_FONTPATH =
251+
CLASS_GRAPH = YES
252+
COLLABORATION_GRAPH = YES
253+
GROUP_GRAPHS = YES
254+
UML_LOOK = NO
255+
TEMPLATE_RELATIONS = NO
256+
INCLUDE_GRAPH = YES
257+
INCLUDED_BY_GRAPH = YES
258+
CALL_GRAPH = NO
259+
CALLER_GRAPH = NO
260+
GRAPHICAL_HIERARCHY = YES
261+
DIRECTORY_GRAPH = YES
262+
DOT_IMAGE_FORMAT = png
263+
DOT_PATH =
264+
DOTFILE_DIRS =
265+
DOT_GRAPH_MAX_NODES = 50
266+
MAX_DOT_GRAPH_DEPTH = 0
267+
DOT_TRANSPARENT = NO
268+
DOT_MULTI_TARGETS = YES
269+
GENERATE_LEGEND = YES
270+
DOT_CLEANUP = YES

src/classes.h

+13-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,20 @@
1616
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1717
*/
1818

19+
/**
20+
* @file classes.h
21+
* @author Jed Lejosne <[email protected]>
22+
* @date Thu Jul 30 13:42:35 2015
23+
*
24+
* @brief USB classes, subclasses and protocols
25+
*
26+
* This is a list of USB classes, subclasses and protocols was
27+
* generated by binterface-parser using usb.ids
28+
*/
1929

20-
/* Copied from https://github.com/jean-edouard/binterface-parser */
30+
/**
31+
* Copied from https://github.com/jean-edouard/binterface-parser
32+
*/
2133

2234
typedef struct {
2335
unsigned char id;

src/db.c

+28
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1717
*/
1818

19+
/**
20+
* @file db.c
21+
* @author Jed Lejosne <[email protected]>
22+
* @date Thu Jul 30 13:13:27 2015
23+
*
24+
* @brief Database interaction
25+
*
26+
* Functions to read/write the policy from/to the database.
27+
* This file should stay as separate as possible from the main
28+
* project, to be usable in other programs (like a rule manager)
29+
*/
30+
1931
#include "db.h"
2032

2133
#define db_log(I, ...) { fprintf(stderr, ##__VA_ARGS__); fprintf(stderr, "\n"); }
@@ -201,6 +213,12 @@ add_rule_to_list(rule_t *rules, rule_t *new_rule)
201213
list_add_tail(&new_rule->list, &rules->list);
202214
}
203215

216+
/**
217+
* Initalize the database bits.
218+
* This should be called before any other db_ function.
219+
*
220+
* @param xcbus_conn An xcdbus open connection
221+
*/
204222
void
205223
db_dbus_init(xcdbus_conn_t *xcbus_conn)
206224
{
@@ -209,6 +227,11 @@ db_dbus_init(xcdbus_conn_t *xcbus_conn)
209227
xcdbus_wait_service(db_xcbus, "com.citrix.xenclient.db");
210228
}
211229

230+
/**
231+
* Read the policy from the database
232+
*
233+
* @param rules Initialized rule list to store the policy
234+
*/
212235
void
213236
db_read_policy(rule_t *rules)
214237
{
@@ -225,6 +248,11 @@ db_read_policy(rule_t *rules)
225248
}
226249
}
227250

251+
/**
252+
* Dump the policy to the database
253+
*
254+
* @param rules The list of rules to write
255+
*/
228256
void
229257
db_write_policy(rule_t *rules)
230258
{

src/db.h

+11
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1717
*/
1818

19+
/**
20+
* @file db.h
21+
* @author Jed Lejosne <[email protected]>
22+
* @date Thu Jul 30 13:41:28 2015
23+
*
24+
* @brief Database interaction declarations
25+
*
26+
* This should be included in any project that needs to interract with
27+
* the policy.
28+
*/
29+
1930
#ifndef DB_H_
2031
# define DB_H_
2132

src/list.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/**
2+
* @file list.h
3+
4+
*
5+
* @brief Linux kernel lists
26
*
37
* I grub it from linux kernel source code and fix it for user space
48
* program. Of course, this is a GPL licensed header file.

src/main.c

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1717
*/
1818

19+
/**
20+
* @file main.c
21+
* @author Jed Lejosne <[email protected]>
22+
* @date Thu Jul 30 13:24:08 2015
23+
*
24+
* @brief vUSB daemon
25+
*
26+
* Daemon that handles USB device passthrough
27+
*/
28+
1929
#include "project.h"
2030

2131
static void fill_vms()

0 commit comments

Comments
 (0)