X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fsync_chain.h;h=d187b30402c14f79cbe33c1aed605659594436dc;hb=49c335f194a889e54de18abf4c11d135ed6b6a0e;hp=c64fa93ef29dbd3a28f2de68c0788a28d1cbf52f;hpb=8d7d16dd4f5f6ae09f556a9b0b477baaa93d468c;p=lttv.git diff --git a/lttv/lttv/sync/sync_chain.h b/lttv/lttv/sync/sync_chain.h index c64fa93e..d187b304 100644 --- a/lttv/lttv/sync/sync_chain.h +++ b/lttv/lttv/sync/sync_chain.h @@ -43,18 +43,18 @@ typedef struct _SyncState typedef struct { + const 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; @@ -66,13 +66,11 @@ extern GQueue analysisModules; extern GQueue moduleOptions; -void syncTraceset(LttvTracesetContext* const traceSetContext); - -char* changeToGraphDir(const char* const graphs); 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