+/* }}} ident_get_* methods */
+
+/* ident_set_* methods {{{ */
+int ident_set_host (graph_ident_t *ident, const char *host) /* {{{ */
+{
+ char *tmp;
+
+ if ((ident == NULL) || (host == NULL))
+ return (EINVAL);
+
+ tmp = strdup (host);
+ if (tmp == NULL)
+ return (ENOMEM);
+
+ free (ident->host);
+ ident->host = tmp;
+
+ return (0);
+} /* }}} int ident_set_host */
+
+int ident_set_plugin (graph_ident_t *ident, const char *plugin) /* {{{ */
+{
+ char *tmp;
+
+ if ((ident == NULL) || (plugin == NULL))
+ return (EINVAL);
+
+ tmp = strdup (plugin);
+ if (tmp == NULL)
+ return (ENOMEM);
+
+ free (ident->plugin);
+ ident->plugin = tmp;
+
+ return (0);
+} /* }}} int ident_set_plugin */
+
+int ident_set_plugin_instance (graph_ident_t *ident, const char *plugin_instance) /* {{{ */
+{
+ char *tmp;
+
+ if ((ident == NULL) || (plugin_instance == NULL))
+ return (EINVAL);
+
+ tmp = strdup (plugin_instance);
+ if (tmp == NULL)
+ return (ENOMEM);
+
+ free (ident->plugin_instance);
+ ident->plugin_instance = tmp;
+
+ return (0);
+} /* }}} int ident_set_plugin_instance */
+
+int ident_set_type (graph_ident_t *ident, const char *type) /* {{{ */
+{
+ char *tmp;
+
+ if ((ident == NULL) || (type == NULL))
+ return (EINVAL);
+
+ tmp = strdup (type);
+ if (tmp == NULL)
+ return (ENOMEM);
+
+ free (ident->type);
+ ident->type = tmp;
+
+ return (0);
+} /* }}} int ident_set_type */
+
+int ident_set_type_instance (graph_ident_t *ident, const char *type_instance) /* {{{ */
+{
+ char *tmp;
+
+ if ((ident == NULL) || (type_instance == NULL))
+ return (EINVAL);
+
+ tmp = strdup (type_instance);
+ if (tmp == NULL)
+ return (ENOMEM);
+
+ free (ident->type_instance);
+ ident->type_instance = tmp;
+
+ return (0);
+} /* }}} int ident_set_type_instance */
+
+/* }}} ident_set_* methods */