Don't hard-code Storage API errors, in case building with older libvirt.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 19 Jan 2008 17:41:51 +0000 (17:41 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 19 Jan 2008 17:41:51 +0000 (17:41 +0000)
libvirt/libvirt_c_epilogue.c

index a43d8e2..78bd23e 100644 (file)
@@ -111,8 +111,8 @@ not_supported (const char *fn)
  * to convert it into VIR_*_UNKNOWN (code).
  */
 
-#define MAX_VIR_CODE VIR_ERR_NO_STORAGE_VOL
-#define MAX_VIR_DOMAIN VIR_FROM_STORAGE
+#define MAX_VIR_CODE 50 /* VIR_ERR_NO_STORAGE_VOL */
+#define MAX_VIR_DOMAIN 17 /* VIR_FROM_STORAGE */
 #define MAX_VIR_LEVEL VIR_ERR_ERROR
 
 static inline value