Lines Matching defs: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;
408 char *arg;
417 arg = argv[i++];
418 c = strchr (arg, ':');
422 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
430 if (strcmp (arg, "variant") == 0)
432 else if (strcmp (arg, "array") == 0)
434 else if (strcmp (arg, "dict") == 0)
439 arg = c;
440 c = strchr (arg, ':');
443 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
449 if (arg[0] == 0)
452 type = type_from_name (arg);
457 arg = c;
461 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
465 secondary_type = type_from_name (arg);