typedef struct
{
+ char shortName;
const char* longName;
enum {
NO_ARG,
REQUIRED_ARG,
- //OPTIONAL_ARG, // Not yet implemented because not supported by LTTV
+ OPTIONAL_ARG,
HAS_ARG_COUNT // This must be the last field
} hasArg;
- union
- {
- bool present;
- const char* arg;
- };
+ bool present;
+ // in the case of OPTIONAL_ARG, arg can be initialized to a default value.
+ // If an argument is present, arg will be modified
+ const char* arg;
const char* optionHelp;
const char* argHelp;
} ModuleOption;
extern GQueue analysisModules;
extern GQueue moduleOptions;
+void printStats(SyncState* const syncState);
void timeDiff(struct timeval* const end, const struct timeval* const start);
gint gcfCompareProcessing(gconstpointer a, gconstpointer b);
gint gcfCompareMatching(gconstpointer a, gconstpointer b);
gint gcfCompareAnalysis(gconstpointer a, gconstpointer b);
+void gfAppendAnalysisName(gpointer data, gpointer user_data);
#endif