source: mainline/kernel/generic/src/console/kconsole.c@ ed88c8e

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ed88c8e was ed88c8e, checked in by Jiri Svoboda <jiri@…>, 7 years ago

fputc, putchar vs. fputwc, putwchar.

  • Property mode set to 100644
File size: 18.7 KB
Line 
1/*
2 * Copyright (c) 2005 Jakub Jermar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup genericconsole
30 * @{
31 */
32
33/**
34 * @file kconsole.c
35 * @brief Kernel console.
36 *
37 * This file contains kernel thread managing the kernel console.
38 *
39 */
40
41#include <assert.h>
42#include <console/kconsole.h>
43#include <console/console.h>
44#include <console/chardev.h>
45#include <console/cmd.h>
46#include <console/prompt.h>
47#include <print.h>
48#include <panic.h>
49#include <typedefs.h>
50#include <adt/list.h>
51#include <arch.h>
52#include <macros.h>
53#include <debug.h>
54#include <halt.h>
55#include <str.h>
56#include <sysinfo/sysinfo.h>
57#include <symtab.h>
58#include <errno.h>
59#include <putchar.h>
60#include <mm/slab.h>
61
62/** Simple kernel console.
63 *
64 * The console is realized by kernel thread kconsole.
65 * It doesn't understand any useful command on its own,
66 * but makes it possible for other kernel subsystems to
67 * register their own commands.
68 */
69
70/** Locking.
71 *
72 * There is a list of cmd_info_t structures. This list
73 * is protected by cmd_lock spinlock. Note that specially
74 * the link elements of cmd_info_t are protected by
75 * this lock.
76 *
77 * Each cmd_info_t also has its own lock, which protects
78 * all elements thereof except the link element.
79 *
80 * cmd_lock must be acquired before any cmd_info lock.
81 * When locking two cmd info structures, structure with
82 * lower address must be locked first.
83 */
84
85SPINLOCK_INITIALIZE(cmd_lock); /**< Lock protecting command list. */
86LIST_INITIALIZE(cmd_list); /**< Command list. */
87
88static wchar_t history[KCONSOLE_HISTORY][MAX_CMDLINE] = { };
89static size_t history_pos = 0;
90
91/** Initialize kconsole data structures
92 *
93 * This is the most basic initialization, almost no
94 * other kernel subsystem is ready yet.
95 *
96 */
97void kconsole_init(void)
98{
99 unsigned int i;
100
101 cmd_init();
102 for (i = 0; i < KCONSOLE_HISTORY; i++)
103 history[i][0] = 0;
104}
105
106/** Register kconsole command.
107 *
108 * @param cmd Structure describing the command.
109 *
110 * @return False on failure, true on success.
111 *
112 */
113bool cmd_register(cmd_info_t *cmd)
114{
115 spinlock_lock(&cmd_lock);
116
117 /*
118 * Make sure the command is not already listed.
119 */
120 list_foreach(cmd_list, link, cmd_info_t, hlp) {
121 if (hlp == cmd) {
122 /* The command is already there. */
123 spinlock_unlock(&cmd_lock);
124 return false;
125 }
126
127 /* Avoid deadlock. */
128 if (hlp < cmd) {
129 spinlock_lock(&hlp->lock);
130 spinlock_lock(&cmd->lock);
131 } else {
132 spinlock_lock(&cmd->lock);
133 spinlock_lock(&hlp->lock);
134 }
135
136 if (str_cmp(hlp->name, cmd->name) == 0) {
137 /* The command is already there. */
138 spinlock_unlock(&hlp->lock);
139 spinlock_unlock(&cmd->lock);
140 spinlock_unlock(&cmd_lock);
141 return false;
142 }
143
144 spinlock_unlock(&hlp->lock);
145 spinlock_unlock(&cmd->lock);
146 }
147
148 /*
149 * Now the command can be added.
150 */
151 list_append(&cmd->link, &cmd_list);
152
153 spinlock_unlock(&cmd_lock);
154 return true;
155}
156
157/** Print count times a character */
158NO_TRACE static void print_cc(wchar_t ch, size_t count)
159{
160 size_t i;
161 for (i = 0; i < count; i++)
162 putwchar(ch);
163}
164
165/** Try to find a command beginning with prefix */
166const char *cmdtab_enum(const char *name, const char **h, void **ctx)
167{
168 link_t **startpos = (link_t **) ctx;
169 size_t namelen = str_length(name);
170
171 spinlock_lock(&cmd_lock);
172
173 if (*startpos == NULL)
174 *startpos = cmd_list.head.next;
175
176 for (; *startpos != &cmd_list.head; *startpos = (*startpos)->next) {
177 cmd_info_t *hlp = list_get_instance(*startpos, cmd_info_t, link);
178
179 const char *curname = hlp->name;
180 if (str_length(curname) < namelen)
181 continue;
182
183 if (str_lcmp(curname, name, namelen) == 0) {
184 *startpos = (*startpos)->next;
185 if (h)
186 *h = hlp->description;
187
188 spinlock_unlock(&cmd_lock);
189 return (curname + str_lsize(curname, namelen));
190 }
191 }
192
193 spinlock_unlock(&cmd_lock);
194 return NULL;
195}
196
197/** Command completion of the commands
198 *
199 * @param name String to match, changed to hint on exit
200 * @param size Input buffer size
201 *
202 * @return Number of found matches
203 *
204 */
205NO_TRACE static int cmdtab_compl(char *input, size_t size, indev_t *indev,
206 hints_enum_func_t hints_enum)
207{
208 const char *name = input;
209
210 size_t found = 0;
211
212 /*
213 * Maximum Match Length: Length of longest matching common
214 * substring in case more than one match is found.
215 */
216 size_t max_match_len = size;
217 size_t max_match_len_tmp = size;
218 void *pos = NULL;
219 const char *hint;
220 const char *help;
221 char *output = nfmalloc(MAX_CMDLINE);
222 size_t hints_to_show = MAX_TAB_HINTS - 1;
223 size_t total_hints_shown = 0;
224 bool continue_showing_hints = true;
225
226 output[0] = 0;
227
228 while ((hint = hints_enum(name, NULL, &pos))) {
229 if ((found == 0) || (str_length(hint) > str_length(output)))
230 str_cpy(output, MAX_CMDLINE, hint);
231
232 found++;
233 }
234
235 /*
236 * If the number of possible completions is more than MAX_TAB_HINTS,
237 * ask the user whether to display them or not.
238 */
239 if (found > MAX_TAB_HINTS) {
240 printf("\n");
241 continue_showing_hints =
242 console_prompt_display_all_hints(indev, found);
243 }
244
245 if ((found > 1) && (str_length(output) != 0)) {
246 printf("\n");
247 pos = NULL;
248 while ((hint = hints_enum(name, &help, &pos))) {
249
250 if (continue_showing_hints) {
251 if (help)
252 printf("%s%s (%s)\n", name, hint, help);
253 else
254 printf("%s%s\n", name, hint);
255
256 --hints_to_show;
257 ++total_hints_shown;
258
259 if ((hints_to_show == 0) && (total_hints_shown != found)) {
260 /* Ask user to continue */
261 continue_showing_hints =
262 console_prompt_more_hints(indev, &hints_to_show);
263 }
264 }
265
266 max_match_len_tmp = 0;
267 while ((output[max_match_len_tmp] ==
268 hint[max_match_len_tmp]) &&
269 (max_match_len_tmp < max_match_len))
270 ++max_match_len_tmp;
271
272 max_match_len = max_match_len_tmp;
273 }
274
275 /* Keep only the characters common in all completions */
276 output[max_match_len] = 0;
277 }
278
279 if (found > 0)
280 str_cpy(input, size, output);
281
282 free(output);
283 return found;
284}
285
286NO_TRACE static cmd_info_t *parse_cmd(const wchar_t *cmdline)
287{
288 size_t start = 0;
289 size_t end;
290 char *tmp;
291
292 while (isspace(cmdline[start]))
293 start++;
294
295 end = start + 1;
296
297 while (!isspace(cmdline[end]))
298 end++;
299
300 tmp = malloc(STR_BOUNDS(end - start + 1));
301 if (!tmp)
302 return NULL;
303
304 wstr_to_str(tmp, end - start + 1, &cmdline[start]);
305
306 spinlock_lock(&cmd_lock);
307
308 list_foreach(cmd_list, link, cmd_info_t, hlp) {
309 spinlock_lock(&hlp->lock);
310
311 if (str_cmp(hlp->name, tmp) == 0) {
312 spinlock_unlock(&hlp->lock);
313 spinlock_unlock(&cmd_lock);
314 free(tmp);
315 return hlp;
316 }
317
318 spinlock_unlock(&hlp->lock);
319 }
320
321 free(tmp);
322 spinlock_unlock(&cmd_lock);
323
324 return NULL;
325}
326
327NO_TRACE static wchar_t *clever_readline(const char *prompt, indev_t *indev)
328{
329 printf("%s> ", prompt);
330
331 size_t position = 0;
332 wchar_t *current = history[history_pos];
333 current[0] = 0;
334 char *tmp = nfmalloc(STR_BOUNDS(MAX_CMDLINE));
335
336 while (true) {
337 wchar_t ch = indev_pop_character(indev);
338
339 if (ch == '\n') {
340 /* Enter */
341 putwchar(ch);
342 break;
343 }
344
345 if (ch == '\b') {
346 /* Backspace */
347 if (position == 0)
348 continue;
349
350 if (wstr_remove(current, position - 1)) {
351 position--;
352 putwchar('\b');
353 printf("%ls ", current + position);
354 print_cc('\b', wstr_length(current) - position + 1);
355 continue;
356 }
357 }
358
359 if (ch == '\t') {
360 /* Tab completion */
361
362 /* Move to the end of the word */
363 for (; (current[position] != 0) && (!isspace(current[position]));
364 position++)
365 putwchar(current[position]);
366
367
368 /*
369 * Find the beginning of the word
370 * and copy it to tmp
371 */
372 size_t beg;
373 unsigned narg = 0;
374 if (position == 0) {
375 tmp[0] = '\0';
376 beg = 0;
377 } else {
378 beg = position - 1;
379 while ((beg > 0) && (!isspace(current[beg])))
380 beg--;
381
382 if (isspace(current[beg]))
383 beg++;
384
385 wstr_to_str(tmp, position - beg + 1, current + beg);
386 }
387
388 /* Count which argument number are we tabbing (narg=0 is cmd) */
389 bool sp = false;
390 for (; beg > 0; beg--) {
391 if (isspace(current[beg])) {
392 if (!sp) {
393 narg++;
394 sp = true;
395 }
396 } else
397 sp = false;
398 }
399
400 if (narg && isspace(current[0]))
401 narg--;
402
403 int found;
404 if (narg == 0) {
405 /* Command completion */
406 found = cmdtab_compl(tmp, STR_BOUNDS(MAX_CMDLINE), indev,
407 cmdtab_enum);
408 } else {
409 /* Arguments completion */
410 cmd_info_t *cmd = parse_cmd(current);
411 if (!cmd || !cmd->hints_enum || cmd->argc < narg)
412 continue;
413 found = cmdtab_compl(tmp, STR_BOUNDS(MAX_CMDLINE), indev,
414 cmd->hints_enum);
415 }
416
417 if (found == 0)
418 continue;
419
420 /*
421 * We have hints, possibly many. In case of more than one hint,
422 * tmp will contain the common prefix.
423 */
424 size_t off = 0;
425 size_t i = 0;
426 while ((ch = str_decode(tmp, &off, STR_NO_LIMIT)) != 0) {
427 if (!wstr_linsert(current, ch, position + i, MAX_CMDLINE))
428 break;
429
430 i++;
431 }
432
433 if (found > 1) {
434 /* No unique hint, list was printed */
435 printf("%s> ", prompt);
436 printf("%ls", current);
437 position += str_length(tmp);
438 print_cc('\b', wstr_length(current) - position);
439 continue;
440 }
441
442 /* We have a hint */
443
444 printf("%ls", current + position);
445 position += str_length(tmp);
446 print_cc('\b', wstr_length(current) - position);
447
448 if (position == wstr_length(current)) {
449 /* Insert a space after the last completed argument */
450 if (wstr_linsert(current, ' ', position, MAX_CMDLINE)) {
451 printf("%ls", current + position);
452 position++;
453 }
454 }
455 continue;
456 }
457
458 if (ch == U_LEFT_ARROW) {
459 /* Left */
460 if (position > 0) {
461 putwchar('\b');
462 position--;
463 }
464 continue;
465 }
466
467 if (ch == U_RIGHT_ARROW) {
468 /* Right */
469 if (position < wstr_length(current)) {
470 putwchar(current[position]);
471 position++;
472 }
473 continue;
474 }
475
476 if ((ch == U_UP_ARROW) || (ch == U_DOWN_ARROW)) {
477 /* Up, down */
478 print_cc('\b', position);
479 print_cc(' ', wstr_length(current));
480 print_cc('\b', wstr_length(current));
481
482 if (ch == U_UP_ARROW) {
483 /* Up */
484 if (history_pos == 0)
485 history_pos = KCONSOLE_HISTORY - 1;
486 else
487 history_pos--;
488 } else {
489 /* Down */
490 history_pos++;
491 history_pos = history_pos % KCONSOLE_HISTORY;
492 }
493 current = history[history_pos];
494 printf("%ls", current);
495 position = wstr_length(current);
496 continue;
497 }
498
499 if (ch == U_HOME_ARROW) {
500 /* Home */
501 print_cc('\b', position);
502 position = 0;
503 continue;
504 }
505
506 if (ch == U_END_ARROW) {
507 /* End */
508 printf("%ls", current + position);
509 position = wstr_length(current);
510 continue;
511 }
512
513 if (ch == U_DELETE) {
514 /* Delete */
515 if (position == wstr_length(current))
516 continue;
517
518 if (wstr_remove(current, position)) {
519 printf("%ls ", current + position);
520 print_cc('\b', wstr_length(current) - position + 1);
521 }
522 continue;
523 }
524
525 if (wstr_linsert(current, ch, position, MAX_CMDLINE)) {
526 printf("%ls", current + position);
527 position++;
528 print_cc('\b', wstr_length(current) - position);
529 }
530 }
531
532 if (wstr_length(current) > 0) {
533 history_pos++;
534 history_pos = history_pos % KCONSOLE_HISTORY;
535 }
536
537 free(tmp);
538 return current;
539}
540
541bool kconsole_check_poll(void)
542{
543 return check_poll(stdin);
544}
545
546NO_TRACE static bool parse_int_arg(const char *text, size_t len,
547 sysarg_t *result)
548{
549 bool isaddr = false;
550 bool isptr = false;
551
552 /* If we get a name, try to find it in symbol table */
553 if (text[0] == '&') {
554 isaddr = true;
555 text++;
556 len--;
557 } else if (text[0] == '*') {
558 isptr = true;
559 text++;
560 len--;
561 }
562
563 if ((text[0] < '0') || (text[0] > '9')) {
564 char symname[MAX_SYMBOL_NAME];
565 str_ncpy(symname, MAX_SYMBOL_NAME, text, len + 1);
566
567 uintptr_t symaddr;
568 errno_t rc = symtab_addr_lookup(symname, &symaddr);
569 switch (rc) {
570 case ENOENT:
571 printf("Symbol %s not found.\n", symname);
572 return false;
573 case EOVERFLOW:
574 printf("Duplicate symbol %s.\n", symname);
575 symtab_print_search(symname);
576 return false;
577 case ENOTSUP:
578 printf("No symbol information available.\n");
579 return false;
580 case EOK:
581 if (isaddr)
582 *result = (sysarg_t) symaddr;
583 else if (isptr)
584 *result = **((sysarg_t **) symaddr);
585 else
586 *result = *((sysarg_t *) symaddr);
587 break;
588 default:
589 printf("Unknown error.\n");
590 return false;
591 }
592 } else {
593 /* It's a number - convert it */
594 uint64_t value;
595 char *end;
596 errno_t rc = str_uint64_t(text, &end, 0, false, &value);
597 if (end != text + len)
598 rc = EINVAL;
599 switch (rc) {
600 case EINVAL:
601 printf("Invalid number '%s'.\n", text);
602 return false;
603 case EOVERFLOW:
604 printf("Integer overflow in '%s'.\n", text);
605 return false;
606 case EOK:
607 *result = (sysarg_t) value;
608 if (isptr)
609 *result = *((sysarg_t *) *result);
610 break;
611 default:
612 printf("Unknown error parsing '%s'.\n", text);
613 return false;
614 }
615 }
616
617 return true;
618}
619
620/** Parse argument.
621 *
622 * Find start and end positions of command line argument.
623 *
624 * @param cmdline Command line as read from the input device.
625 * @param size Size (in bytes) of the string.
626 * @param start On entry, 'start' contains pointer to the offset
627 * of the first unprocessed character of cmdline.
628 * On successful exit, it marks beginning of the next argument.
629 * @param end Undefined on entry. On exit, 'end' is the offset of the first
630 * character behind the next argument.
631 *
632 * @return False on failure, true on success.
633 *
634 */
635NO_TRACE static bool parse_argument(const char *cmdline, size_t size,
636 size_t *start, size_t *end)
637{
638 assert(start != NULL);
639 assert(end != NULL);
640
641 bool found_start = false;
642 size_t offset = *start;
643 size_t prev = *start;
644 wchar_t ch;
645
646 while ((ch = str_decode(cmdline, &offset, size)) != 0) {
647 if (!found_start) {
648 if (!isspace(ch)) {
649 *start = prev;
650 found_start = true;
651 }
652 } else {
653 if (isspace(ch))
654 break;
655 }
656
657 prev = offset;
658 }
659 *end = prev;
660
661 return found_start;
662}
663
664/** Parse command line.
665 *
666 * @param cmdline Command line as read from input device.
667 * @param size Size (in bytes) of the string.
668 *
669 * @return Structure describing the command.
670 *
671 */
672NO_TRACE static cmd_info_t *parse_cmdline(const char *cmdline, size_t size)
673{
674 size_t start = 0;
675 size_t end = 0;
676 if (!parse_argument(cmdline, size, &start, &end)) {
677 /* Command line did not contain alphanumeric word. */
678 return NULL;
679 }
680 spinlock_lock(&cmd_lock);
681
682 cmd_info_t *cmd = NULL;
683
684 list_foreach(cmd_list, link, cmd_info_t, hlp) {
685 spinlock_lock(&hlp->lock);
686
687 if (str_lcmp(hlp->name, cmdline + start,
688 max(str_length(hlp->name),
689 str_nlength(cmdline + start, (size_t) (end - start)))) == 0) {
690 cmd = hlp;
691 break;
692 }
693
694 spinlock_unlock(&hlp->lock);
695 }
696
697 spinlock_unlock(&cmd_lock);
698
699 if (!cmd) {
700 /* Unknown command. */
701 printf("Unknown command.\n");
702 return NULL;
703 }
704
705 /* cmd == hlp is locked */
706
707 /*
708 * The command line must be further analyzed and
709 * the parameters therefrom must be matched and
710 * converted to those specified in the cmd info
711 * structure.
712 */
713
714 bool error = false;
715 size_t i;
716 for (i = 0; i < cmd->argc; i++) {
717 char *buf;
718
719 start = end;
720 if (!parse_argument(cmdline, size, &start, &end)) {
721 if (cmd->argv[i].type == ARG_TYPE_STRING_OPTIONAL) {
722 buf = (char *) cmd->argv[i].buffer;
723 str_cpy(buf, cmd->argv[i].len, "");
724 continue;
725 }
726
727 printf("Too few arguments.\n");
728 spinlock_unlock(&cmd->lock);
729 return NULL;
730 }
731
732 switch (cmd->argv[i].type) {
733 case ARG_TYPE_STRING:
734 case ARG_TYPE_STRING_OPTIONAL:
735 buf = (char *) cmd->argv[i].buffer;
736 str_ncpy(buf, cmd->argv[i].len, cmdline + start,
737 end - start);
738 break;
739 case ARG_TYPE_INT:
740 if (!parse_int_arg(cmdline + start, end - start,
741 &cmd->argv[i].intval))
742 error = true;
743 break;
744 case ARG_TYPE_VAR:
745 if ((start < end - 1) && (cmdline[start] == '"')) {
746 if (cmdline[end - 1] == '"') {
747 buf = (char *) cmd->argv[i].buffer;
748 str_ncpy(buf, cmd->argv[i].len,
749 cmdline + start + 1,
750 (end - start) - 1);
751 cmd->argv[i].intval = (sysarg_t) buf;
752 cmd->argv[i].vartype = ARG_TYPE_STRING;
753 } else {
754 printf("Wrong syntax.\n");
755 error = true;
756 }
757 } else if (parse_int_arg(cmdline + start,
758 end - start, &cmd->argv[i].intval)) {
759 cmd->argv[i].vartype = ARG_TYPE_INT;
760 } else {
761 printf("Unrecognized variable argument.\n");
762 error = true;
763 }
764 break;
765 case ARG_TYPE_INVALID:
766 default:
767 printf("Invalid argument type\n");
768 error = true;
769 break;
770 }
771 }
772
773 if (error) {
774 spinlock_unlock(&cmd->lock);
775 return NULL;
776 }
777
778 start = end;
779 if (parse_argument(cmdline, size, &start, &end)) {
780 printf("Too many arguments.\n");
781 spinlock_unlock(&cmd->lock);
782 return NULL;
783 }
784
785 spinlock_unlock(&cmd->lock);
786 return cmd;
787}
788
789/** Kernel console prompt.
790 *
791 * @param prompt Kernel console prompt (e.g kconsole/panic).
792 * @param msg Message to display in the beginning.
793 * @param kcon Wait for keypress to show the prompt
794 * and never exit.
795 *
796 */
797void kconsole(const char *prompt, const char *msg, bool kcon)
798{
799 if (!stdin) {
800 LOG("No stdin for kernel console");
801 return;
802 }
803
804 if (msg)
805 printf("%s", msg);
806
807 if (kcon)
808 indev_pop_character(stdin);
809 else
810 printf("Type \"exit\" to leave the console.\n");
811
812 char *cmdline = nfmalloc(STR_BOUNDS(MAX_CMDLINE));
813 while (true) {
814 wchar_t *tmp = clever_readline((char *) prompt, stdin);
815 size_t len = wstr_length(tmp);
816 if (!len)
817 continue;
818
819 wstr_to_str(cmdline, STR_BOUNDS(MAX_CMDLINE), tmp);
820
821 if ((!kcon) && (len == 4) && (str_lcmp(cmdline, "exit", 4) == 0))
822 break;
823
824 cmd_info_t *cmd_info = parse_cmdline(cmdline, STR_BOUNDS(MAX_CMDLINE));
825 if (!cmd_info)
826 continue;
827
828 (void) cmd_info->func(cmd_info->argv);
829 }
830 free(cmdline);
831}
832
833/** Kernel console managing thread.
834 *
835 */
836void kconsole_thread(void *data)
837{
838 kconsole("kconsole", "Kernel console ready (press any key to activate)\n", true);
839}
840
841/** @}
842 */
Note: See TracBrowser for help on using the repository browser.