Skip to content

Commit

Permalink
Merge pull request #4895 from kc284/master
Browse files Browse the repository at this point in the history
  • Loading branch information
psafont authored Feb 2, 2023
2 parents ec6d82b + 79c5ec2 commit 703479f
Show file tree
Hide file tree
Showing 72 changed files with 176 additions and 457 deletions.
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Copyright (c) Citrix Systems, Inc.
All rights reserved.
Copyright (c) Cloud Software Group, Inc.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion ocaml/sdk-gen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ README files. The (patched) third party libraries required for the compilation
of the C# and PowerShell source code can be obtained from
[xenserver/dotnet-packages](https://github.com/xenserver/dotnet-packages)

The repository [xenserver-samples](https://github.com/xenserver/xenserver-samples)
The repository [xenserver/xenserver-samples](https://github.com/xenserver/xenserver-samples)
contains a number of examples for each of the five programming languages to help
you get started with the SDK.

Expand Down
15 changes: 8 additions & 7 deletions ocaml/sdk-gen/c/README.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
libxenserver
============

libxenserver is a complete SDK for Citrix Hypervisor exposing the Citrix
Hypervisor API to C developers.
Copyright (c) 2007-2023 Cloud Software Group, Inc. All Rights Reserved.

libxenserver is a complete SDK for XenServer exposing the XenServer API to
C developers.

libxenserver includes a C function call for each API call, so API
documentation and examples written for for other languages can be easily
Expand All @@ -12,16 +14,15 @@ for developers wishing to use libxenserver.
libxenserver is free software. You can redistribute and modify it under the
terms of the BSD 2-Clause license. See COPYING for details.


Reference
---------

For Citrix Hypervisor documentation see https://docs.citrix.com/en-us/citrix-hypervisor/
For XenServer documentation see https://docs.citrix.com/en-us/citrix-hypervisor/

The Citrix Hypervisor Management API Reference is available at
The XenServer Management API Reference is available at
https://developer-docs.citrix.com/projects/citrix-hypervisor-management-api/en/latest/

The Citrix Hypervisor Software Development Kit Guide is available at
The XenServer Software Development Kit Guide is available at
https://developer-docs.citrix.com/projects/citrix-hypervisor-sdk/en/latest/

A number of examples to help you get started with the SDK is available at
Expand All @@ -30,7 +31,7 @@ https://github.com/xenserver/xenserver-samples
For community content, blogs, and downloads, visit
https://www.citrix.com/community/citrix-developer/

To network with other developers using Citrix Hypervisor visit
To network with other developers using XenServer visit
https://discussions.citrix.com/forum/101-hypervisor-formerly-xenserver/


Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/include/xen/api/xen_common.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/include/xen/api/xen_event_batch.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/include/xen/api/xen_int_set.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/include/xen/api/xen_string_set.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/include/xen/api/xen_string_set_set.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/src/xen_common.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/src/xen_event_batch.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/src/xen_int_set.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/src/xen_string_set.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/autogen/src/xen_string_set_set.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
28 changes: 1 addition & 27 deletions ocaml/sdk-gen/c/gen_c_binding.ml
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
(*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* Copyright (c) Cloud Software Group, Inc.
*)

(* Generator of C bindings from the datamodel *)
Expand Down
28 changes: 1 addition & 27 deletions ocaml/sdk-gen/c/helper.ml
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
(*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* Copyright (c) Cloud Software Group, Inc.
*)

let rec formatted_wrap formatter s =
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/templates/Makefile.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#
# Copyright (c) Citrix Systems, Inc.
# All rights reserved.
# Copyright (c) Cloud Software Group, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/templates/xen_all.h.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/templates/xen_api_version.c.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/templates/xen_api_version.h.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/c/templates/xen_internal.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
28 changes: 1 addition & 27 deletions ocaml/sdk-gen/common/CommonFunctions.ml
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
(*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* Copyright (c) Cloud Software Group, Inc.
*)

open Printf
Expand Down
31 changes: 2 additions & 29 deletions ocaml/sdk-gen/common/licence.ml
Original file line number Diff line number Diff line change
@@ -1,37 +1,10 @@
(*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* Copyright (c) Cloud Software Group, Inc.
*)

let bsd_two_clause =
"/*\n\
\ * Copyright (c) Citrix Systems, Inc.\n\
\ * All rights reserved.\n\
\ * Copyright (c) Cloud Software Group, Inc.\n\
\ *\n\
\ * Redistribution and use in source and binary forms, with or without\n\
\ * modification, are permitted provided that the following conditions\n\
Expand Down
2 changes: 2 additions & 0 deletions ocaml/sdk-gen/csharp/README-NuGet.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
XenServer.NET
=============

Copyright (c) 2007-2023 Cloud Software Group, Inc. All Rights Reserved.

XenServer.NET is a complete SDK for XenServer, exposing the XenServer
API as .NET classes. It is written in C#.

Expand Down
2 changes: 2 additions & 0 deletions ocaml/sdk-gen/csharp/README.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
XenServer.NET
=============

Copyright (c) 2007-2023 Cloud Software Group, Inc. All Rights Reserved.

XenServer.NET is a complete SDK for XenServer, exposing the XenServer
API as .NET classes. It is written in C#.

Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/csharp/autogen/src/Converters.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/csharp/autogen/src/DeprecatedAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
3 changes: 1 addition & 2 deletions ocaml/sdk-gen/csharp/autogen/src/Event.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
Loading

0 comments on commit 703479f

Please sign in to comment.