[test-API][PATCH 1/3] Remove API wrappers that have been flagged internal use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    *lib/connectAPI.py
---
 lib/connectAPI.py |  108 -----------------------------------------------------
 1 files changed, 0 insertions(+), 108 deletions(-)

diff --git a/lib/connectAPI.py b/lib/connectAPI.py
index cfa4fea..9f2b728 100644
--- a/lib/connectAPI.py
+++ b/lib/connectAPI.py
@@ -248,114 +248,6 @@ class ConnectAPI(object):
             code = e.get_error_code()
             raise exception.LibvirtAPI(message, code)
 
-    def dispatch_domain_event_callback(self, dom, event, detail):
-        try:
-            return self.conn.dispatchDomainEventCallbacks(dom, event, detail)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_generic_callback(self, dom, cbData):
-        try:
-            return self.conn.dispatchDomainEventGenericCallback(dom, cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_graphics_callback(self,
-                                                dom,
-                                                phase,
-                                                localAddr,
-                                                remoteAddr,
-                                                authScheme,
-                                                subject,
-                                                cbData):
-        try:
-            return self.conn.dispatchDomainEventGraphicsCallback(dom,
-                                                                 phase,
-                                                                 localAddr,
-                                                                 remoteAddr,
-                                                                 authScheme,
-                                                                 subject,
-                                                                 cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_IOError_callback(self,
-                                               dom,
-                                               srcPath,
-                                               devAlias,
-                                               action,
-                                               cbData):
-        try:
-            return self.conn.dispatchDomainEventIOErrorCallback(dom,
-                                                                srcPath,
-                                                                devAlias,
-                                                                action,
-                                                                cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_IOError_reason_callback(self,
-                                                      dom,
-                                                      srcPath,
-                                                      devAlias,
-                                                      action,
-                                                      reason,
-                                                      cbData):
-        try:
-            return self.conn.dispatchDomainEventIOErrorReasonCallback(dom,
-                                                                      srcPath,
-                                                                      devAlias,
-                                                                      action,
-                                                                      reason,
-                                                                      cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_lifecycle_callback(self,
-                                                 dom,
-                                                 event,
-                                                 detail,
-                                                 cbData):
-        try:
-            return self.conn.dispatchDomainEventLifecycleCallback(dom,
-                                                                  event,
-                                                                  detail,
-                                                                  cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_RTC_change_callback(self, dom, offset, cbData):
-        try:
-            return self.conn.dispatchDomainEventRTCChangeCallback(dom,
-                                                                  offset,
-                                                                  cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
-    def dispatch_domain_event_watchdog_callback(self, dom, action, cbData):
-        try:
-            return self.conn.dispatchDomainEventWatchdogCallback(dom,
-                                                                 action,
-                                                                 cbData)
-        except libvirt.libvirtError, e:
-            message = e.get_error_message()
-            code = e.get_error_code()
-            raise exception.LibvirtAPI(message, code)
-
     def domain_event_deregister(self, cb):
         try:
             return self.conn.domainEventDeregister(cb)
-- 
1.7.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]