Home | History | Annotate | Download | only in tools

Lines Matching refs:arg

178 type_from_name (const char *arg)
181 if (!strcmp (arg, "string"))
183 else if (!strcmp (arg, "int16"))
185 else if (!strcmp (arg, "uint16"))
187 else if (!strcmp (arg, "int32"))
189 else if (!strcmp (arg, "uint32"))
191 else if (!strcmp (arg, "int64"))
193 else if (!strcmp (arg, "uint64"))
195 else if (!strcmp (arg, "double"))
197 else if (!strcmp (arg, "byte"))
199 else if (!strcmp (arg, "boolean"))
201 else if (!strcmp (arg, "objpath"))
205 fprintf (stderr, "%s: Unknown type \"%s\"\n", appname, arg);
240 char *arg = argv[i];
242 if (strcmp (arg, "--system") == 0)
244 else if (strcmp (arg, "--session") == 0)
246 else if (strncmp (arg, "--print-reply", 13) == 0)
250 if (*(arg + 13) != '\0')
253 else if (strstr (arg, "--reply-timeout=") == arg)
255 reply_timeout = strtol (strchr (arg, '=') + 1,
258 else if (strstr (arg, "--dest=") == arg)
259 dest = strchr (arg, '=') + 1;
260 else if (strstr (arg, "--type=") == arg)
261 type_str = strchr (arg, '=') + 1;
262 else if (!strcmp(arg, "--help"))
264 else if (arg[0] == '-')
267 path = arg;
269 name = arg;
356 char *arg;
365 arg = argv[i++];
366 c = strchr (arg, ':');
370 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
378 if (strcmp (arg, "variant") == 0)
380 else if (strcmp (arg, "array") == 0)
382 else if (strcmp (arg, "dict") == 0)
387 arg = c;
388 c = strchr (arg, ':');
391 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
397 if (arg[0] == 0)
400 type = type_from_name (arg);
405 arg = c;
409 fprintf (stderr, "%s: Data item \"%s\" is badly formed\n", argv[0], arg);
413 secondary_type = type_from_name (arg);