7976e2588e92dca0567231cf3998759bf6f1827f max Thu May 7 03:27:42 2015 -0700 implementing the external tools "send to" menu, refs #15113 diff --git src/hg/hgTracks/extTools.h src/hg/hgTracks/extTools.h new file mode 100644 index 0000000..71587a5 --- /dev/null +++ src/hg/hgTracks/extTools.h @@ -0,0 +1,27 @@ +/* extTools -- code to parse list of external tools and redirect the user to them */ + +/* Copyright (C) 2011 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + +#ifndef EXTTOOLS_H +#define EXTTOOLS_H + +struct extTool +/* describes an external tool */ +{ + struct extTool *next; /* next in singly linked list */ + char *tool; /* internal ID of an external tool, e.g. primer3 */ + char *shortLabel; /* shown in the drop down menu */ + char *longLabel; /* label for mouse over */ + char *url; /* target URL of the tool CGI */ + int maxSize; /* maximum size in bp that can be handled by tool or 0 for any */ + struct slPair *params; /* CGI vars we have to send to the tool */ + struct slName *dbs; /* if not null: list of DBS to show the entry */ +}; + +struct extTool *readExtToolRa(char *raFileName); +/* parse the extTools.ra file. */ + +void extToolRedirect(struct cart *cart, char *tool); +/* redirect to an external tool, sending the data specified in the ext tools config file */ +#endif