+static graph_ident_t *inst_get_selector_from_params (void) /* {{{ */
+{
+ const char *host = get_part_from_param ("inst_host", "host");
+ const char *plugin = get_part_from_param ("inst_plugin", "plugin");
+ const char *plugin_instance = get_part_from_param ("inst_plugin_instance",
+ "plugin_instance");
+ const char *type = get_part_from_param ("inst_type", "type");
+ const char *type_instance = get_part_from_param ("inst_type_instance",
+ "type_instance");
+
+ graph_ident_t *ident;
+
+ if ((host == NULL)
+ || (plugin == NULL) || (plugin_instance == NULL)
+ || (type == NULL) || (type_instance == NULL))
+ {
+ fprintf (stderr, "inst_get_selected: A parameter is NULL\n");
+ return (NULL);
+ }
+
+ ident = ident_create (host, plugin, plugin_instance, type, type_instance);
+ if (ident == NULL)
+ {
+ fprintf (stderr, "inst_get_selected: ident_create failed\n");
+ return (NULL);
+ }
+
+ return (ident);
+} /* }}} graph_ident_t *inst_get_selector_from_params */
+