|
Revision 6330, 1.6 KB
(checked in by westram, 2 years ago)
|
- ARBDB structs
- removed typedef (and type synonyms caused by them)
- renamed several local types
|
| Line | |
|---|
| 1 | // =============================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : gb_aci.h // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 7 | // http://www.arb-home.de/ // |
|---|
| 8 | // // |
|---|
| 9 | // =============================================================== // |
|---|
| 10 | |
|---|
| 11 | #ifndef GB_ACI_H |
|---|
| 12 | #define GB_ACI_H |
|---|
| 13 | |
|---|
| 14 | #ifndef ARBDB_BASE_H |
|---|
| 15 | #include <arbdb_base.h> |
|---|
| 16 | #endif |
|---|
| 17 | |
|---|
| 18 | #define GBL_MAX_ARGUMENTS 500 |
|---|
| 19 | |
|---|
| 20 | struct GBL { |
|---|
| 21 | char *str; |
|---|
| 22 | }; |
|---|
| 23 | |
|---|
| 24 | struct GBL_command_arguments { |
|---|
| 25 | GBDATA *gb_ref; // the database entry on which the command is applied (may be species, gene, experiment, group and maybe more) |
|---|
| 26 | const char *default_tree_name; // if we have a default tree, its name is specified here (NULL otherwise) |
|---|
| 27 | const char *command; // the name of the current command |
|---|
| 28 | |
|---|
| 29 | // input streams: |
|---|
| 30 | int cinput; |
|---|
| 31 | const GBL *vinput; |
|---|
| 32 | |
|---|
| 33 | // parameter "streams": |
|---|
| 34 | int cparam; |
|---|
| 35 | const GBL *vparam; |
|---|
| 36 | |
|---|
| 37 | // output streams: |
|---|
| 38 | int *coutput; |
|---|
| 39 | GBL **voutput; |
|---|
| 40 | }; |
|---|
| 41 | |
|---|
| 42 | typedef GB_ERROR (*GBL_COMMAND)(GBL_command_arguments *args); |
|---|
| 43 | |
|---|
| 44 | struct GBL_command_table { |
|---|
| 45 | const char *command_identifier; |
|---|
| 46 | GBL_COMMAND function; |
|---|
| 47 | }; |
|---|
| 48 | |
|---|
| 49 | #else |
|---|
| 50 | #error gb_aci.h included twice |
|---|
| 51 | #endif // GB_ACI_H |
|---|