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