sch.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. ischeme_t sch = {
  2. PLUGIN_LIST
  3. PLUGIN {
  4. .name = "plugin1",
  5. .id = "id1",
  6. .file = "file1",
  7. .global = "true",
  8. },
  9. PLUGIN {
  10. .name = "plugin2",
  11. .id = "id2",
  12. .file = "file2",
  13. .global = "false",
  14. },
  15. END_PLUGIN_LIST,
  16. PTYPE_LIST
  17. PTYPE {
  18. .name = "ptype1",
  19. .help = "help1",
  20. ACTION_LIST
  21. ACTION {
  22. .sym = "internal",
  23. .script = "cat /etc/passwd",
  24. },
  25. ACTION {
  26. .sym = "internal",
  27. .script = "cat /etc/group",
  28. },
  29. END_ACTION_LIST,
  30. },
  31. PTYPE {
  32. .name = "ptype2",
  33. .help = "help2",
  34. },
  35. END_PTYPE_LIST,
  36. VIEW_LIST
  37. VIEW {
  38. .name = "view1",
  39. COMMAND_LIST
  40. COMMAND {
  41. .name = "command1",
  42. .help = "help1",
  43. },
  44. COMMAND {
  45. .name = "command2",
  46. .help = "help1",
  47. },
  48. COMMAND {
  49. .name = "command3",
  50. .help = "help1",
  51. },
  52. END_COMMAND_LIST,
  53. },
  54. VIEW {
  55. .name = "view2",
  56. },
  57. VIEW {
  58. .name = "view1",
  59. COMMAND_LIST
  60. COMMAND {
  61. .name = "command4",
  62. .help = "help1",
  63. },
  64. COMMAND {
  65. .name = "command5",
  66. .help = "help1",
  67. PARAM_LIST
  68. PARAM {
  69. .name = "param1",
  70. .help = "helpparam1",
  71. .ptype = "ptype1",
  72. },
  73. PARAM {
  74. .name = "param2",
  75. .help = "helpparam2",
  76. .ptype = "ptype2",
  77. PARAM_LIST
  78. PARAM {
  79. .name = "param3",
  80. .help = "helpparam1",
  81. .ptype = "ptype1",
  82. },
  83. PARAM {
  84. .name = "param4",
  85. .help = "helpparam2",
  86. .ptype = "ptype2",
  87. },
  88. END_PARAM_LIST,
  89. },
  90. END_PARAM_LIST,
  91. ACTION_LIST
  92. ACTION {
  93. .sym = "internal",
  94. .script = "cat /etc/passwd",
  95. },
  96. ACTION {
  97. .sym = "internal",
  98. .script = "cat /etc/group",
  99. },
  100. END_ACTION_LIST,
  101. },
  102. END_COMMAND_LIST,
  103. },
  104. //VIEW {
  105. // },
  106. END_VIEW_LIST,
  107. };