lttng-view: clean-up: rename `parse_options()` -> `parse_viewer_option()`
[lttng-tools.git] / src / bin / lttng / commands / view.c
index 1a9ad6c3a3868978467563b791cff34a133f6b35..3ba5766ea00c0e45dd332126956434d579bdf7d9 100644 (file)
@@ -58,7 +58,7 @@ enum viewer_type {
        VIEWER_USER_DEFINED  = 2,
 };
 
-static const struct viewers {
+static const struct viewer {
        const char *exec_name;
        enum viewer_type type;
 } viewers[] = {
@@ -70,10 +70,10 @@ static const struct viewers {
 /* Is the session we are trying to view is in live mode. */
 static int session_live_mode;
 
-static const struct viewers *parse_options(void)
+static const struct viewer *parse_viewer_option(void)
 {
        if (opt_viewer == NULL) {
-               /* Default is babeltrace */
+               /* Default is babeltrace2 */
                return &(viewers[VIEWER_BABELTRACE2]);
        }
 
@@ -192,11 +192,11 @@ static int spawn_viewer(const char *trace_path)
        int ret = 0;
        struct stat status;
        const char *viewer_bin = NULL;
-       const struct viewers *viewer;
+       const struct viewer *viewer;
        char **argv = NULL;
 
-       /* Check for --viewer options */
-       viewer = parse_options();
+       /* Check for --viewer option. */
+       viewer = parse_viewer_option();
        if (viewer == NULL) {
                ret = CMD_ERROR;
                goto error;
This page took 0.024651 seconds and 5 git commands to generate.