|
|
9ae3a8 |
From d8f12c525de1b28b9505d38842b5dece8cbcd61a Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
Message-Id: <d8f12c525de1b28b9505d38842b5dece8cbcd61a.1387298827.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
In-Reply-To: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
References: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com>
|
|
|
9ae3a8 |
From: "Michael S. Tsirkin" <mst@redhat.com>
|
|
|
9ae3a8 |
Date: Tue, 17 Dec 2013 15:17:50 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 24/56] qom: cleanup struct Error references
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1387293161-4085-25-git-send-email-mst@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 56330
|
|
|
9ae3a8 |
O-Subject: [PATCH qemu-kvm RHEL7.0 v2 24/57] qom: cleanup struct Error references
|
|
|
9ae3a8 |
Bugzilla: 1034876
|
|
|
9ae3a8 |
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
now that a typedef for struct Error is available,
|
|
|
9ae3a8 |
use it in qom/object.h to match coding style rules.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
9ae3a8 |
Tested-by: Igor Mammedov <imammedo@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit e82df24873970742778e4a960f059ba9f8b1b2a7)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
include/qom/object.h | 50 +++++++++++++++++++++++++-------------------------
|
|
|
9ae3a8 |
1 file changed, 25 insertions(+), 25 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Michal Novotny <minovotn@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
include/qom/object.h | 50 +++++++++++++++++++++++++-------------------------
|
|
|
9ae3a8 |
1 file changed, 25 insertions(+), 25 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/include/qom/object.h b/include/qom/object.h
|
|
|
9ae3a8 |
index c37f3ca..dbe1413 100644
|
|
|
9ae3a8 |
--- a/include/qom/object.h
|
|
|
9ae3a8 |
+++ b/include/qom/object.h
|
|
|
9ae3a8 |
@@ -301,7 +301,7 @@ typedef void (ObjectPropertyAccessor)(Object *obj,
|
|
|
9ae3a8 |
struct Visitor *v,
|
|
|
9ae3a8 |
void *opaque,
|
|
|
9ae3a8 |
const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* ObjectPropertyRelease:
|
|
|
9ae3a8 |
@@ -785,9 +785,9 @@ void object_property_add(Object *obj, const char *name, const char *type,
|
|
|
9ae3a8 |
ObjectPropertyAccessor *get,
|
|
|
9ae3a8 |
ObjectPropertyAccessor *set,
|
|
|
9ae3a8 |
ObjectPropertyRelease *release,
|
|
|
9ae3a8 |
- void *opaque, struct Error **errp);
|
|
|
9ae3a8 |
+ void *opaque, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
-void object_property_del(Object *obj, const char *name, struct Error **errp);
|
|
|
9ae3a8 |
+void object_property_del(Object *obj, const char *name, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_find:
|
|
|
9ae3a8 |
@@ -798,7 +798,7 @@ void object_property_del(Object *obj, const char *name, struct Error **errp);
|
|
|
9ae3a8 |
* Look up a property for an object and return its #ObjectProperty if found.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
ObjectProperty *object_property_find(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
void object_unparent(Object *obj);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -813,7 +813,7 @@ void object_unparent(Object *obj);
|
|
|
9ae3a8 |
* Reads a property from a object.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_get(Object *obj, struct Visitor *v, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_set_str:
|
|
|
9ae3a8 |
@@ -824,7 +824,7 @@ void object_property_get(Object *obj, struct Visitor *v, const char *name,
|
|
|
9ae3a8 |
* Writes a string value to a property.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_set_str(Object *obj, const char *value,
|
|
|
9ae3a8 |
- const char *name, struct Error **errp);
|
|
|
9ae3a8 |
+ const char *name, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_get_str:
|
|
|
9ae3a8 |
@@ -837,7 +837,7 @@ void object_property_set_str(Object *obj, const char *value,
|
|
|
9ae3a8 |
* The caller should free the string.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
char *object_property_get_str(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_set_link:
|
|
|
9ae3a8 |
@@ -848,7 +848,7 @@ char *object_property_get_str(Object *obj, const char *name,
|
|
|
9ae3a8 |
* Writes an object's canonical path to a property.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_set_link(Object *obj, Object *value,
|
|
|
9ae3a8 |
- const char *name, struct Error **errp);
|
|
|
9ae3a8 |
+ const char *name, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_get_link:
|
|
|
9ae3a8 |
@@ -861,7 +861,7 @@ void object_property_set_link(Object *obj, Object *value,
|
|
|
9ae3a8 |
* string or not a valid object path).
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
Object *object_property_get_link(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_set_bool:
|
|
|
9ae3a8 |
@@ -872,7 +872,7 @@ Object *object_property_get_link(Object *obj, const char *name,
|
|
|
9ae3a8 |
* Writes a bool value to a property.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_set_bool(Object *obj, bool value,
|
|
|
9ae3a8 |
- const char *name, struct Error **errp);
|
|
|
9ae3a8 |
+ const char *name, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_get_bool:
|
|
|
9ae3a8 |
@@ -884,7 +884,7 @@ void object_property_set_bool(Object *obj, bool value,
|
|
|
9ae3a8 |
* an error occurs (including when the property value is not a bool).
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
bool object_property_get_bool(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_set_int:
|
|
|
9ae3a8 |
@@ -895,7 +895,7 @@ bool object_property_get_bool(Object *obj, const char *name,
|
|
|
9ae3a8 |
* Writes an integer value to a property.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_set_int(Object *obj, int64_t value,
|
|
|
9ae3a8 |
- const char *name, struct Error **errp);
|
|
|
9ae3a8 |
+ const char *name, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_get_int:
|
|
|
9ae3a8 |
@@ -907,7 +907,7 @@ void object_property_set_int(Object *obj, int64_t value,
|
|
|
9ae3a8 |
* an error occurs (including when the property value is not an integer).
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
int64_t object_property_get_int(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_set:
|
|
|
9ae3a8 |
@@ -921,7 +921,7 @@ int64_t object_property_get_int(Object *obj, const char *name,
|
|
|
9ae3a8 |
* Writes a property to a object.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_set(Object *obj, struct Visitor *v, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_parse:
|
|
|
9ae3a8 |
@@ -933,7 +933,7 @@ void object_property_set(Object *obj, struct Visitor *v, const char *name,
|
|
|
9ae3a8 |
* Parses a string and writes the result into a property of an object.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_parse(Object *obj, const char *string,
|
|
|
9ae3a8 |
- const char *name, struct Error **errp);
|
|
|
9ae3a8 |
+ const char *name, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_print:
|
|
|
9ae3a8 |
@@ -945,7 +945,7 @@ void object_property_parse(Object *obj, const char *string,
|
|
|
9ae3a8 |
* caller shall free the string.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
char *object_property_print(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_get_type:
|
|
|
9ae3a8 |
@@ -956,7 +956,7 @@ char *object_property_print(Object *obj, const char *name,
|
|
|
9ae3a8 |
* Returns: The type name of the property.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
const char *object_property_get_type(Object *obj, const char *name,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_get_root:
|
|
|
9ae3a8 |
@@ -1049,7 +1049,7 @@ Object *object_resolve_path_component(Object *parent, const gchar *part);
|
|
|
9ae3a8 |
* The child object itself can be retrieved using object_property_get_link().
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_add_child(Object *obj, const char *name,
|
|
|
9ae3a8 |
- Object *child, struct Error **errp);
|
|
|
9ae3a8 |
+ Object *child, Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_add_link:
|
|
|
9ae3a8 |
@@ -1072,7 +1072,7 @@ void object_property_add_child(Object *obj, const char *name,
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_add_link(Object *obj, const char *name,
|
|
|
9ae3a8 |
const char *type, Object **child,
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_add_str:
|
|
|
9ae3a8 |
@@ -1087,9 +1087,9 @@ void object_property_add_link(Object *obj, const char *name,
|
|
|
9ae3a8 |
* property of type 'string'.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_add_str(Object *obj, const char *name,
|
|
|
9ae3a8 |
- char *(*get)(Object *, struct Error **),
|
|
|
9ae3a8 |
- void (*set)(Object *, const char *, struct Error **),
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ char *(*get)(Object *, Error **),
|
|
|
9ae3a8 |
+ void (*set)(Object *, const char *, Error **),
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_property_add_bool:
|
|
|
9ae3a8 |
@@ -1103,9 +1103,9 @@ void object_property_add_str(Object *obj, const char *name,
|
|
|
9ae3a8 |
* property of type 'bool'.
|
|
|
9ae3a8 |
*/
|
|
|
9ae3a8 |
void object_property_add_bool(Object *obj, const char *name,
|
|
|
9ae3a8 |
- bool (*get)(Object *, struct Error **),
|
|
|
9ae3a8 |
- void (*set)(Object *, bool, struct Error **),
|
|
|
9ae3a8 |
- struct Error **errp);
|
|
|
9ae3a8 |
+ bool (*get)(Object *, Error **),
|
|
|
9ae3a8 |
+ void (*set)(Object *, bool, Error **),
|
|
|
9ae3a8 |
+ Error **errp);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/**
|
|
|
9ae3a8 |
* object_child_foreach:
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.11.7
|
|
|
9ae3a8 |
|