-struct command_table_struct {
- int num_args;
- char *name;
- void (*command)(void);
- int need_device;
- int need_status;
-} command_table[] = {
- { 0, "inquiry",ReportInquiry, 1,0},
- { 0, "status", Status, 1,1 },
- { 0, "invert", InvertCommand, 0,0},
- { 0, "noattach",NoAttach,0,0},
- { 1, "eepos", Eepos, 0,0},
- { 2, "load", Load, 1,1 },
- { 2, "unload", Unload, 1,1 },
- { 2, "transfer", Transfer, 1,1 },
- { 1, "first", First, 1,1 },
- { 1, "last", Last, 1,1 },
- { 1, "next", Next, 1,1 },
- { 0, "--version", Version, 0,0 },
- { 0, "inventory", do_Inventory, 1,0},
- { 0, "eject", do_Unload, 1, 0},
- { 0, "erase", do_Erase, 1, 0},
- { 0, "nobarcode", NoBarCode, 0,0},
- { 0, NULL, NULL }
+struct command_table_struct
+{
+ int num_args;
+ char *name;
+ void (*command)(void);
+ int need_device;
+ int need_status;
+}
+command_table[] =
+{
+ { 0, "inquiry",ReportInquiry, 1,0},
+ { 0, "status", Status, 1,1 },
+ { 0, "invert", InvertCommand, 0,0},
+ { 0, "noattach",NoAttach,0,0},
+ { 1, "eepos", Eepos, 0,0},
+ { 2, "load", Load, 1,1 },
+ { 2, "unload", Unload, 1,1 },
+ { 2, "transfer", Transfer, 1,1 },
+ { 1, "first", First, 1,1 },
+ { 1, "last", Last, 1,1 },
+ { 1, "previous", Previous, 1,1 },
+ { 1, "next", Next, 1,1 },
+ { 0, "--version", Version, 0,0 },
+ { 0, "inventory", do_Inventory, 1,0},
+ { 0, "eject", do_Unload, 1, 0},
+ { 0, "erase", do_Erase, 1, 0},
+ { 0, "nobarcode", NoBarCode, 0,0},
+ { 1, "position", do_Position, 1, 1},
+ { 0, "invert2", Invert2, 0, 0},
+ { 3, "exchange", Exchange, 1, 1 },
+ { 0, "altres", AltReadElementStatus, 0,0},
+ { 0, NULL, NULL }