diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-01-16 17:34:39 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-01-28 12:47:11 -0500 |
commit | 57d3e1b3f52d07d215ed96df946ee01f8d9f9526 (patch) | |
tree | f7f8878e8a800b87076adfc8a1e90fe480b42881 /include/sysemu/rng.h | |
parent | 269e09f3fc922b800d118d9c8a721be46b5462a3 (diff) |
virtio_rng: replace custom backend API with UserCreatable.complete() callback
in addition fix default backend leak by releasing it if its
initialization failed.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/sysemu/rng.h')
-rw-r--r-- | include/sysemu/rng.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/sysemu/rng.h b/include/sysemu/rng.h index 7637fac52d..0a27c9b88c 100644 --- a/include/sysemu/rng.h +++ b/include/sysemu/rng.h @@ -79,15 +79,4 @@ void rng_backend_request_entropy(RngBackend *s, size_t size, * to stop tracking any request. */ void rng_backend_cancel_requests(RngBackend *s); - -/** - * rng_backend_open: - * @s: the backend to open - * @errp: a pointer to return the #Error object if an error occurs. - * - * This function will open the backend if it is not already open. Calling this - * function on an already opened backend will not result in an error. - */ -void rng_backend_open(RngBackend *s, Error **errp); - #endif |