Home | History | Annotate | Download | only in qemu

Lines Matching full:value

40  * The return value is the position of the delimiter/zero byte after the option
60 * Extracts the value of an option from the parameter string p (p points at the
61 * first byte of the option value)
65 * option value that contains commas, double each comma.
105 * Sets the value of a parameter in a given option list. The parsing of the
106 * value depends on the type of option:
108 * OPT_FLAG (uses value.n):
109 * If no value is given, the flag is set to 1.
110 * Otherwise the value must be "on" (set to 1) or "off" (set to 0)
112 * OPT_STRING (uses value.s):
113 * value is strdup()ed and assigned as option value
115 * OPT_SIZE (uses value.n):
116 * The value is converted to an integer. Suffixes for kilobytes etc. are
122 const char *value)
134 if (value != NULL) {
135 if (!strcmp(value, "on")) {
136 list->value.n = 1;
137 } else if (!strcmp(value, "off")) {
138 list->value.n = 0;
144 list->value.n = 1;
149 if (value != NULL) {
150 list->value.s = strdup(value);
158 if (value != NULL) {
159 double sizef = strtod(value, (char**) &value);
161 switch (*value) {
173 list->value.n = (uint64_t) sizef;
201 uint64_t value)
215 list->value.n = value;
234 free(cur->value.s);
249 * Each parameter consists of its name and possibly of a value. In the latter
250 * case, the value is delimited by an = character. To specify a value which
265 char value[256];
291 // Find parameter name and value in the string
304 param = get_opt_value(value, sizeof(value), param + 1);
311 if (set_option_parameter(dest, name, value_delim ? value : NULL)) {
325 * Prints all options of a list that have a value to stdout
332 if (list->value.s != NULL) {
333 printf("%s='%s' ", list->name, list->value.s);
337 printf("%s=%s ", list->name, list->value.n ? "on" : "off");
341 printf("%s=%" PRId64 " ", list->name, list->value.n);