[libvirt] [dbus PATCH 05/10] Rename virtDBusEventsRegisterEvent to virtDBusDomainEventsRegisterEvent

Pavel Hrdina phrdina at redhat.com
Thu Apr 5 14:00:52 UTC 2018


On Thu, Apr 05, 2018 at 03:29:29PM +0200, Katerina Koukiou wrote:
> This function was specific to Domain Lifecycle Events.
> Rename it now, so that we can keep consistent naming when introducing
> Events for other entities.
> 
> Signed-off-by: Katerina Koukiou <kkoukiou at redhat.com>
> ---
>  src/events.c | 36 ++++++++++++++++++------------------
>  1 file changed, 18 insertions(+), 18 deletions(-)
> 
> diff --git a/src/events.c b/src/events.c
> index eb85a3a..c6896d4 100644
> --- a/src/events.c
> +++ b/src/events.c
> @@ -171,9 +171,9 @@ virtDBusEventsDomainDiskChange(virConnectPtr connection G_GNUC_UNUSED,
>  }
>  
>  static void
> -virtDBusEventsRegisterEvent(virtDBusConnect *connect,
> -                            gint id,
> -                            virConnectDomainEventGenericCallback callback)
> +virtDBusDomainEventsRegisterEvent(virtDBusConnect *connect,

The name should be virtDBusEventsRegisterDomainEvent.  virtDBusEvents
is prefix for this file.

> +                                  gint id,
> +                                  virConnectDomainEventGenericCallback callback)
>  {
>      g_assert(connect->callback_ids[id] == -1);

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180405/5ef9f412/attachment-0001.sig>


More information about the libvir-list mailing list