WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] libxen patch

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Subject: [Xen-API] libxen patch
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Fri, 27 Oct 2006 13:46:18 -0600
Cc: Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 27 Oct 2006 12:47:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20060909)
Patch to fix uses of upper-case 'S' in session class.

Jim

# HG changeset patch
# User jfehlig@xxxxxxxxxxxxxxxxxxxxxxxxx
# Date 1161978211 21600
# Node ID 37bc4334ea223ca8d2add7ce27335ec6761f8679
# Parent  3923a7c48e1777692f7af8eb2caf06f9c35fe1b1
The 'session' class begings with lower-case 's' in XenAPI document.  Change 
occurrences of 'Session' with 'session'.

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>

diff -r 3923a7c48e17 -r 37bc4334ea22 tools/libxen/src/xen_common.c
--- a/tools/libxen/src/xen_common.c     Fri Oct 27 16:46:27 2006 +0100
+++ b/tools/libxen/src/xen_common.c     Fri Oct 27 13:43:31 2006 -0600
@@ -137,7 +137,7 @@ xen_session_login_with_password(xen_call
     session->error_description = NULL;
     session->error_description_count = 0;
 
-    call_raw(session, "Session.login_with_password", params, 2,
+    call_raw(session, "session.login_with_password", params, 2,
              &abstract_type_string, &session->session_id);
 
     return session;
@@ -150,7 +150,7 @@ xen_session_logout(xen_session *session)
     abstract_value params[] =
         {
         };
-    xen_call_(session, "Session.logout", params, 0, NULL, NULL);
+    xen_call_(session, "session.logout", params, 0, NULL, NULL);
 
     if (session->error_description != NULL)
     {
@@ -173,7 +173,7 @@ xen_session_get_this_host(xen_session *s
         {
         };
 
-    xen_call_(session, "Session.get_this_host", params, 0,
+    xen_call_(session, "session.get_this_host", params, 0,
               &abstract_type_string, result);
     return session->ok;
 }
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>