|
Packit Service |
ea0369 |
/*
|
|
Packit Service |
ea0369 |
* libvirt-gconfig-object-private.h: base object for XML configuration
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* Copyright (C) 2011 Red Hat, Inc.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
ea0369 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
ea0369 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
ea0369 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
ea0369 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
ea0369 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
ea0369 |
* Lesser General Public License for more details.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
ea0369 |
* License along with this library. If not, see
|
|
Packit Service |
ea0369 |
* <http://www.gnu.org/licenses/>.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* Author: Christophe Fergeau <cfergeau@redhat.com>
|
|
Packit Service |
ea0369 |
*/
|
|
Packit Service |
ea0369 |
#ifndef __LIBVIRT_GCONFIG_OBJECT_PRIVATE_H__
|
|
Packit Service |
ea0369 |
#define __LIBVIRT_GCONFIG_OBJECT_PRIVATE_H__
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
G_BEGIN_DECLS
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
#include <libvirt-gconfig/libvirt-gconfig-xml-doc.h>
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
GVirConfigObject *gvir_config_object_new_from_tree(GType type,
|
|
Packit Service |
ea0369 |
GVirConfigXmlDoc *doc,
|
|
Packit Service |
ea0369 |
const char *schema,
|
|
Packit Service |
ea0369 |
xmlNodePtr tree);
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
GVirConfigXmlDoc *gvir_config_object_get_xml_doc(GVirConfigObject *config);
|
|
Packit Service |
ea0369 |
xmlNodePtr gvir_config_object_get_xml_node(GVirConfigObject *config);
|
|
Packit Service |
ea0369 |
const char *gvir_config_object_get_node_content(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name);
|
|
Packit Service |
ea0369 |
guint64 gvir_config_object_get_node_content_uint64(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name);
|
|
Packit Service |
ea0369 |
gint gvir_config_object_get_node_content_genum(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
GType enum_type,
|
|
Packit Service |
ea0369 |
gint default_value);
|
|
Packit Service |
ea0369 |
const char *gvir_config_object_get_attribute(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
const char *attr_name);
|
|
Packit Service |
ea0369 |
guint64 gvir_config_object_get_attribute_uint64(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
guint64 default_value);
|
|
Packit Service |
ea0369 |
gint gvir_config_object_get_attribute_genum(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
GType enum_type,
|
|
Packit Service |
ea0369 |
gint default_value);
|
|
Packit Service |
ea0369 |
gboolean gvir_config_object_get_attribute_boolean(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
gboolean default_value);
|
|
Packit Service |
ea0369 |
void gvir_config_object_set_node_content(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
const char *value);
|
|
Packit Service |
ea0369 |
void gvir_config_object_set_node_content_uint64(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *node_name,
|
|
Packit Service |
ea0369 |
guint64 value);
|
|
Packit Service |
ea0369 |
GVirConfigObject *gvir_config_object_add_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name);
|
|
Packit Service |
ea0369 |
void gvir_config_object_add_child_with_attribute(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
const char *attr_value);
|
|
Packit Service |
ea0369 |
void gvir_config_object_add_child_with_attribute_enum(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
GType attr_type,
|
|
Packit Service |
ea0369 |
unsigned int attr_value);
|
|
Packit Service |
ea0369 |
GVirConfigObject *gvir_config_object_replace_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name);
|
|
Packit Service |
ea0369 |
void gvir_config_object_replace_child_with_attribute(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
const char *attr_value);
|
|
Packit Service |
ea0369 |
void gvir_config_object_replace_child_with_attribute_enum(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
const char *attr_name,
|
|
Packit Service |
ea0369 |
GType attr_type,
|
|
Packit Service |
ea0369 |
unsigned int attr_value);
|
|
Packit Service |
ea0369 |
void gvir_config_object_delete_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
const char *ns_href);
|
|
Packit Service |
ea0369 |
void gvir_config_object_delete_children(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
const char *ns_href);
|
|
Packit Service |
ea0369 |
void gvir_config_object_set_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
xmlNodePtr child);
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
void gvir_config_object_attach_add(GVirConfigObject *parent,
|
|
Packit Service |
ea0369 |
GVirConfigObject *child);
|
|
Packit Service |
ea0369 |
void gvir_config_object_attach_replace(GVirConfigObject *parent,
|
|
Packit Service |
ea0369 |
const char *child_name,
|
|
Packit Service |
ea0369 |
GVirConfigObject *child);
|
|
Packit Service |
ea0369 |
void gvir_config_object_set_attribute(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
...) G_GNUC_NULL_TERMINATED;
|
|
Packit Service |
ea0369 |
void gvir_config_object_set_attribute_with_type(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
...) G_GNUC_NULL_TERMINATED;
|
|
Packit Service |
ea0369 |
void gvir_config_object_remove_attribute(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *attr_name);
|
|
Packit Service |
ea0369 |
void gvir_config_object_foreach_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *parent_name,
|
|
Packit Service |
ea0369 |
GVirConfigXmlNodeIterator iter_func,
|
|
Packit Service |
ea0369 |
gpointer opaque);
|
|
Packit Service |
ea0369 |
gboolean gvir_config_object_set_namespace(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const char *ns,
|
|
Packit Service |
ea0369 |
const char *ns_uri,
|
|
Packit Service |
ea0369 |
gboolean ns_children);
|
|
Packit Service |
ea0369 |
GVirConfigObject *gvir_config_object_get_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const gchar *child_name);
|
|
Packit Service |
ea0369 |
GVirConfigObject *gvir_config_object_get_child_with_type(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const gchar *child_name,
|
|
Packit Service |
ea0369 |
GType child_type);
|
|
Packit Service |
ea0369 |
gboolean gvir_config_object_has_child(GVirConfigObject *object,
|
|
Packit Service |
ea0369 |
const gchar *child_name);
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
G_END_DECLS
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
#endif /* __LIBVIRT_GCONFIG_OBJECT_H__ */
|