]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
libxl: Use consistent parameter naming scheme
authorJim Fehlig <jfehlig@suse.com>
Tue, 15 Jan 2013 22:47:05 +0000 (15:47 -0700)
committerJim Fehlig <jfehlig@suse.com>
Wed, 16 Jan 2013 17:13:26 +0000 (10:13 -0700)
Use consistent parameter names throughout the libxl timeout and fd
event functions.

src/libxl/libxl_driver.c

index 44b6de8d9dd3a8fd1f5010372c3ee2a406a7268a..591ade27699527bbdd690cb7109840967e2cb058 100644 (file)
@@ -100,9 +100,9 @@ static void
 libxlFDEventCallback(int watch ATTRIBUTE_UNUSED,
                      int fd,
                      int vir_events,
-                     void *fdinfo)
+                     void *fd_info)
 {
-    struct libxlOSEventHookFDInfo *info = fdinfo;
+    struct libxlOSEventHookFDInfo *info = fd_info;
     int events = 0;
 
     if (vir_events & VIR_EVENT_HANDLE_READABLE)
@@ -182,11 +182,11 @@ libxlFDDeregisterEventHook(void *priv ATTRIBUTE_UNUSED,
 }
 
 static void
-libxlTimerCallback(int timer ATTRIBUTE_UNUSED, void *timer_v)
+libxlTimerCallback(int timer ATTRIBUTE_UNUSED, void *timer_info)
 {
-    struct libxlOSEventHookTimerInfo *timer_info = timer_v;
+    struct libxlOSEventHookTimerInfo *info = timer_info;
 
-    libxl_osevent_occurred_timeout(timer_info->priv->ctx, timer_info->xl_priv);
+    libxl_osevent_occurred_timeout(info->priv->ctx, info->xl_priv);
 }
 
 static void
@@ -199,7 +199,7 @@ static int
 libxlTimeoutRegisterEventHook(void *priv,
                               void **hndp,
                               struct timeval abs_t,
-                              void *for_libxl)
+                              void *xl_priv)
 {
     struct timeval now;
     struct libxlOSEventHookTimerInfo *timer_info;
@@ -221,7 +221,7 @@ libxlTimeoutRegisterEventHook(void *priv,
     }
 
     timer_info->priv = priv;
-    timer_info->xl_priv = for_libxl;
+    timer_info->xl_priv = xl_priv;
     timer_info->id = timer_id;
     *hndp = timer_info;
     return 0;