2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: c_api.C /main/4 1996/08/21 15:52:45 drk $ */
25 #include "oliasdb/DtMmdb.h"
30 char __pure_virtual_called()
40 void usage(int argc, char** argv)
42 fprintf(stderr, "Usage:\n");
43 fprintf(stderr, " %s 0 libpath [bookcaseName]\n", argv[0]);
44 fprintf(stderr, " %s 1 libpath bookcaseName locator (show bookcase)\n", argv[0]);
45 fprintf(stderr, " %s 2 libpath bookcaseName locator (show section)\n", argv[0]);
46 fprintf(stderr, " %s 3 libpath bookcaseName mmdboid (show section)\n", argv[0]);
47 fprintf(stderr, " %s 4 libpath bookcaseName mmdboid (show TOC)\n", argv[0]);
48 fprintf(stderr, " %s 5 libpath bookcaseName loc (show LOC)\n", argv[0]);
49 fprintf(stderr, " %s 6 libpath bookcaseName mmdboid (show LOC)\n", argv[0]);
50 fprintf(stderr, " %s 7 libpath bookcaseName loc (show graphic)\n", argv[0]);
51 fprintf(stderr, " %s 8 libpath bookcaseName mmdboid (show graphic)\n", argv[0]);
52 fprintf(stderr, " %s 9 libpath bookcaseName loc (show stylesheet)\n", argv[0]);
53 fprintf(stderr, " %s 10 libpath bookcaseName mmdboid (show stylesheet)\n", argv[0]);
54 fprintf(stderr, " %s 11 libpath bookcaseName mmdboid (show dlp)\n", argv[0]);
55 fprintf(stderr, " %s 12 libpath bookcaseName TOC_section_mmdboid (show book)\n", argv[0]);
56 fprintf(stderr, " %s 13 libpath bookcaseName book_mmdboid (show book)\n", argv[0]);
57 fprintf(stderr, " %s 14 libpath bookcaseName book_seq_num (show book)\n", argv[0]);
60 extern "C" int test0(int argc, char** argv);
61 extern "C" int test1(int argc, char** argv);
62 extern "C" int test2(int argc, char** argv);
63 extern "C" int test3(int argc, char** argv);
64 extern "C" int test4(int argc, char** argv);
65 extern "C" int test_loc1(int argc, char** argv);
66 extern "C" int test_loc2(int argc, char** argv);
67 extern "C" int test_graphic1(int argc, char** argv);
68 extern "C" int test_graphic2(int argc, char** argv);
69 extern "C" int test_ss1(int argc, char** argv);
70 extern "C" int test_ss2(int argc, char** argv);
71 extern "C" int test_dlp(int argc, char** argv);
72 extern "C" int test_book1(int argc, char** argv);
73 extern "C" int test_book2(int argc, char** argv);
74 extern "C" int test_book3(int argc, char** argv);
78 main( int argc, char** argv )
84 if ( argc == 1 || 0==isdigit(argv[1][0]) ) {
87 switch ( atoi(argv[1]) ) {
104 test_loc1(argc, argv);
107 test_loc2(argc, argv);
110 test_graphic1(argc, argv);
113 test_graphic2(argc, argv);
116 test_ss1(argc, argv);
119 test_ss2(argc, argv);
122 test_dlp(argc, argv);
125 test_book1(argc, argv);
128 test_book2(argc, argv);
131 test_book3(argc, argv);