AREA_ARG,
AREAS_ARG,
AREA_SIZE_ARG,
- AUX_DATA_ARG,
BOUNDS_ARG,
CHECKS_ARG,
CLEAR_ARG,
UNBUFFERED_ARG,
UNITS_ARG,
UNQUOTED_ARG,
+ USER_DATA_ARG,
UUID_ARG,
VERBOSE_ARG,
VERIFYUDEV_ARG,
if (!strlen(program_id) && !_switches[FORCE_ARG])
program_id = DM_STATS_PROGRAM_ID;
- if (_switches[AUX_DATA_ARG])
- user_data = _string_args[AUX_DATA_ARG];
+ if (_switches[USER_DATA_ARG])
+ user_data = _string_args[USER_DATA_ARG];
if (!(dms = dm_stats_create(DM_STATS_PROGRAM_ID)))
return_0;
* clear [--regionid id] <device_name>
* create [--areas nr_areas] [--areasize size]
* [ [--start start] [--length len] | [--segments]]
- * [--auxdata data] [--programid id] [<device_name>]
+ * [--userdata data] [--programid id] [<device_name>]
* delete [--regionid] <device_name>
* delete_all [--programid id]
* group [--alias name] [--alldevices] [--regions <regions>] [<device_name>]
#define AREA_OPTS "[--areas <nr_areas>] [--areasize <size>] "
#define CREATE_OPTS "[--start <start> [--length <len>]]\n\t\t" AREA_OPTS
-#define ID_OPTS "[--programid <id>] [--auxdata <data> ] "
+#define ID_OPTS "[--programid <id>] [--userdata <data> ] "
#define SELECT_OPTS "[--programid <id>] [--regionid <id>] "
#define PRINT_OPTS "[--clear] " SELECT_OPTS
#define REPORT_OPTS "[--interval <seconds>] [--count <cnt>]\n\t\t[--units <u>]" SELECT_OPTS
fprintf(out, " [-h|--help]\n");
fprintf(out, " [-v|--verbose [-v|--verbose ...]]\n");
fprintf(out, " [--areas <nr_areas>] [--areasize <size>]\n");
- fprintf(out, " [--auxdata <data>] [--clear]\n");
+ fprintf(out, " [--userdata <data>] [--clear]\n");
fprintf(out, " [--count <count>] [--interval <seconds>]\n");
fprintf(out, " [-o <fields>] [-O|--sort <sort_fields>]\n");
fprintf(out, " [--programid <id>]\n");
{"area", 0, &ind, AREA_ARG},
{"areas", 1, &ind, AREAS_ARG},
{"areasize", 1, &ind, AREA_SIZE_ARG},
- {"auxdata", 1, &ind, AUX_DATA_ARG},
{"bounds", 1, &ind, BOUNDS_ARG},
{"checks", 0, &ind, CHECKS_ARG},
{"clear", 0, &ind, CLEAR_ARG},
{"uuid", 1, &ind, UUID_ARG},
{"unbuffered", 0, &ind, UNBUFFERED_ARG},
{"unquoted", 0, &ind, UNQUOTED_ARG},
+ {"userdata", 1, &ind, USER_DATA_ARG},
{"verbose", 1, &ind, VERBOSE_ARG},
{"verifyudev", 0, &ind, VERIFYUDEV_ARG},
{"version", 0, &ind, VERSION_ARG},
_switches[AREA_SIZE_ARG]++;
_string_args[AREA_SIZE_ARG] = optarg;
}
- if (ind == AUX_DATA_ARG) {
- _switches[AUX_DATA_ARG]++;
- _string_args[AUX_DATA_ARG] = optarg;
+ if (ind == USER_DATA_ARG) {
+ _switches[USER_DATA_ARG]++;
+ _string_args[USER_DATA_ARG] = optarg;
}
if (c == ':' || c == '?')
return_0;