Home | History | Annotate | Download | only in tools

Lines Matching refs:arg

193 type_from_name (const char *arg)
196 if (!strcmp (arg, "string"))
198 else if (!strcmp (arg, "int16"))
200 else if (!strcmp (arg, "uint16"))
202 else if (!strcmp (arg, "int32"))
204 else if (!strcmp (arg, "uint32"))
206 else if (!strcmp (arg, "int64"))
208 else if (!strcmp (arg, "uint64"))
210 else if (!strcmp (arg, "double"))
212 else if (!strcmp (arg, "byte"))
214 else if (!strcmp (arg, "boolean"))
216 else if (!strcmp (arg, "objpath"))
220 fprintf (stderr, "%s: Unknown type \"%s\"\n", appname, arg);
257 char *arg = argv[i];
259 if (strcmp (arg, "--system") == 0)
264 else if (strcmp (arg, "--session") == 0)
269 else if (strstr (arg, "--address") == arg)
271 address = strchr (arg, '=');
283 else if (strncmp (arg, "--print-reply", 13) == 0)
287 if (*(arg + 13) != '\0')
290 else if (strstr (arg, "--reply-timeout=") == arg)
292 reply_timeout = strtol (strchr (arg, '=') + 1,
295 else if (strstr (arg, "--dest=") == arg)
296 dest = strchr (arg, '=') + 1;
297 else if (strstr (arg, "--type=") == arg)
298 type_str = strchr (arg, '=') + 1;
299 else if (!strcmp(arg, "--help"))
301 else if (arg[0] == '-')
304 path = arg;
306 name = arg;
410 char *arg;
419 arg = argv[i++];
420 c = strchr (arg, ':');
424 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
432 if (strcmp (arg, "variant") == 0)
434 else if (strcmp (arg, "array") == 0)
436 else if (strcmp (arg, "dict") == 0)
441 arg = c;
442 c = strchr (arg, ':');
445 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
451 if (arg[0] == 0)
454 type = type_from_name (arg);
459 arg = c;
463 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
467 secondary_type = type_from_name (arg);