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] [PATCH 1 of 7] CA-34933: add proper interface for xapi_session

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH 1 of 7] CA-34933: add proper interface for xapi_session.ml functions
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Fri, 21 May 2010 14:46:04 +0100
Delivery-date: Fri, 21 May 2010 06:57:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1274449563@localhost>
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/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1274449563@localhost>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
 ocaml/xapi/xapi_session.mli |  36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)


# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1274449016 -3600
# Node ID 96d378af31d020fa0b3a961fbe6904618254de6d
# Parent  bd3789fcfcf8853f58b71407311f5399bfe1d89b
CA-34933: add proper interface for xapi_session.ml functions

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r bd3789fcfcf8 -r 96d378af31d0 ocaml/xapi/xapi_session.mli
--- /dev/null
+++ b/ocaml/xapi/xapi_session.mli
@@ -0,0 +1,36 @@
+(*
+ * Copyright (C) 2006-2009 Citrix Systems Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; version 2.1 only. with the special
+ * exception on linking described in file LICENSE.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *)
+(** Module that defines public API functions for Session objects
+ * @group XenAPI functions
+*)
+
+(** {2 (Fill in Title!)} *)
+
+(* TODO: consider updating sm_exec.ml and removing login_no_password from this 
mli *)
+val login_no_password: __context:Context.t -> uname:string option -> host:[ 
`host ] Ref.t -> pool:bool -> is_local_superuser:bool -> subject:[ `subject ] 
Ref.t -> auth_user_sid:string -> auth_user_name:string -> 
rbac_permissions:string list -> [ `session ] Ref.t
+
+(* public functions *)
+val destroy_db_session: __context:Context.t -> self:API.ref_session -> unit
+val revalidate_all_sessions: __context:Context.t -> unit
+val consider_touching_session: (XMLRPC.xmlrpc -> XMLRPC.xmlrpc) -> 
API.ref_session -> unit -> unit
+val slave_login: __context:Context.t -> host:[ `host ] Ref.t -> psecret:string 
-> [ `session ] Ref.t
+val slave_local_login: __context:Context.t -> psecret:string -> API.ref_session
+val slave_local_login_with_password: __context:Context.t -> uname:string -> 
pwd:string -> API.ref_session
+val login_with_password: __context:Context.t ->  uname:string -> pwd:string -> 
version:'a -> [ `session ] Ref.t
+val change_password: __context:Context.t -> old_pwd:string -> new_pwd:string 
-> unit
+val logout: __context:Context.t -> unit
+val local_logout: __context:Context.t -> unit
+val get_group_subject_identifier_from_session: __context:Context.t -> 
session:[ `session ] Ref.t -> string
+val get_all_subject_identifiers: __context:Context.t -> string list
+val logout_subject_identifier: __context:Context.t -> 
subject_identifier:string -> unit

Attachment: xen-api.hg-1.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api