libvirt-go.git
2 weeks agoAdd DomainGetConnect() func based on virDomainGetConnect master
s3rj1k [Thu, 2 Nov 2017 10:54:39 +0000]
Add DomainGetConnect() func based on virDomainGetConnect

2 weeks agoFix populating of subject identities in graphics event v3.9.0
Daniel P. Berrange [Wed, 1 Nov 2017 13:50:20 +0000]
Fix populating of subject identities in graphics event

The code is mistakenly pre-allocating the array and then appending the actual
data to this array, leaving the pre-allocated elements unused.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 weeks agoFix MemoryStats return struct
s3rj1k [Wed, 1 Nov 2017 13:13:31 +0000]
Fix MemoryStats return struct

If we do not initialize out struct if zero size, on every append empty element
will double, so if we request 10 memory parameters in nrStats the output out
length will be 20.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 weeks agoAdd virDomainSetLifecycleAction API support
Pavel Hrdina [Fri, 20 Oct 2017 12:25:39 +0000]
Add virDomainSetLifecycleAction API support

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>

4 weeks agoAdd VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE constant
Pavel Hrdina [Fri, 20 Oct 2017 12:24:38 +0000]
Add VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE constant

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>

2 months agoAdd support for new storage pool lifecycle events v3.8.0
Daniel P. Berrange [Wed, 20 Sep 2017 15:15:46 +0000]
Add support for new storage pool lifecycle events

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoGenerate links to C library API docs v3.7.0
Daniel P. Berrange [Fri, 1 Sep 2017 14:31:55 +0000]
Generate links to C library API docs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoFix method names for node caps
Daniel P. Berrange [Fri, 1 Sep 2017 14:24:15 +0000]
Fix method names for node caps

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoSwitch sasl to digest-md5 since Ubuntu lacks scram-sha-1
Daniel P. Berrange [Wed, 30 Aug 2017 16:43:45 +0000]
Switch sasl to digest-md5 since Ubuntu lacks scram-sha-1

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoUpdate travis conf for sasl config
Daniel P. Berrange [Wed, 30 Aug 2017 16:26:01 +0000]
Update travis conf for sasl config

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoUse standalone file for sasl config
Daniel P. Berrange [Wed, 30 Aug 2017 16:24:30 +0000]
Use standalone file for sasl config

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoExplicitly set sasl mechanism for tests
Daniel P. Berrange [Wed, 30 Aug 2017 16:08:16 +0000]
Explicitly set sasl mechanism for tests

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoAdd go 1.8 and 1.9 and libvirt 3.6.0
Daniel P. Berrange [Wed, 30 Aug 2017 15:41:12 +0000]
Add go 1.8 and 1.9 and libvirt 3.6.0

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoAllow passing NULL mount for FSTrim
Daniel P. Berrange [Wed, 30 Aug 2017 15:34:55 +0000]
Allow passing NULL mount for FSTrim

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoAdd new managed save APIs
Daniel P. Berrange [Wed, 30 Aug 2017 15:32:01 +0000]
Add new managed save APIs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

2 months agoAdd virDomainMigrateGetMaxDowntime API
Daniel P. Berrange [Wed, 30 Aug 2017 15:25:45 +0000]
Add virDomainMigrateGetMaxDowntime API

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoFix binding of VIR_FROM_RESCTRL
Daniel P. Berrange [Mon, 14 Aug 2017 11:00:14 +0000]
Fix binding of VIR_FROM_RESCTRL

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd VIR_FROM_RESCTRL constant
Daniel P. Berrange [Mon, 14 Aug 2017 10:35:27 +0000]
Add VIR_FROM_RESCTRL constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB constant v3.5.0
Daniel P. Berrange [Fri, 16 Jun 2017 09:53:40 +0000]
Add VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd new CCW_DEV node device filtering constant. v3.4.0
Daniel P. Berrange [Tue, 30 May 2017 10:02:55 +0000]
Add new CCW_DEV node device filtering constant.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoFix version number check for stream funcs
Daniel P. Berrange [Tue, 30 May 2017 09:30:21 +0000]
Fix version number check for stream funcs

Fix build on libvirt 3.2.0 & 3.3.0

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd missing assert header
Daniel P. Berrange [Tue, 30 May 2017 09:30:07 +0000]
Add missing assert header

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd sparse stream API support
Daniel P. Berrange [Fri, 26 May 2017 16:37:26 +0000]
Add sparse stream API support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd storage vol upload/download flag constants
Daniel P. Berrange [Fri, 26 May 2017 16:28:08 +0000]
Add storage vol upload/download flag constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd new guest shutdown constants.
Daniel P. Berrange [Fri, 26 May 2017 15:02:09 +0000]
Add new guest shutdown constants.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

5 months agoAdd new node device filter constants for mdevs
Daniel P. Berrange [Fri, 26 May 2017 14:56:42 +0000]
Add new node device filter constants for mdevs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd missing unsafe.Pointer() casts for Go 1.5 compat
Daniel P. Berrange [Mon, 8 May 2017 16:55:52 +0000]
Add missing unsafe.Pointer() casts for Go 1.5 compat

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoExtend API test suite to cover LXC & QEMU specific APIs v3.3.0
Daniel P. Berrange [Fri, 28 Apr 2017 11:16:10 +0000]
Extend API test suite to cover LXC & QEMU specific APIs

6 months agoAdd binding for virDomainLXCEnterCGroup
Daniel P. Berrange [Mon, 8 May 2017 16:18:33 +0000]
Add binding for virDomainLXCEnterCGroup

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoFix mistakes in compat functions calling themselves
Daniel P. Berrange [Mon, 8 May 2017 16:18:12 +0000]
Fix mistakes in compat functions calling themselves

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd binding for virDomainLxcEnterSecurityLabel
Daniel P. Berrange [Mon, 8 May 2017 10:53:04 +0000]
Add binding for virDomainLxcEnterSecurityLabel

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd support for LXC namespace APIs
Daniel P. Berrange [Fri, 28 Apr 2017 11:16:05 +0000]
Add support for LXC namespace APIs

6 months agoInclude compat header from cfuncs
Daniel P. Berrange [Fri, 28 Apr 2017 12:37:51 +0000]
Include compat header from cfuncs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoFix backcompat for monitor event constants
Daniel P. Berrange [Fri, 28 Apr 2017 12:07:50 +0000]
Fix backcompat for monitor event constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoFix back compat for monitor events API
Daniel P. Berrange [Fri, 28 Apr 2017 12:06:29 +0000]
Fix back compat for monitor events API

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd job operation constants
Daniel P. Berrange [Fri, 28 Apr 2017 11:48:55 +0000]
Add job operation constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd support for virConnectDomainQemuMonitorEvent APIs
Daniel P. Berrange [Wed, 26 Apr 2017 15:53:33 +0000]
Add support for virConnectDomainQemuMonitorEvent APIs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd binding for virDomainQemuAttach
Daniel P. Berrange [Wed, 26 Apr 2017 15:02:53 +0000]
Add binding for virDomainQemuAttach

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoSplit QEMU code into a separate file for conditional build
Daniel P. Berrange [Tue, 25 Apr 2017 20:26:33 +0000]
Split QEMU code into a separate file for conditional build

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd compat for VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN constant
Daniel P. Berrange [Tue, 25 Apr 2017 15:20:26 +0000]
Add compat for VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd note about development status
Daniel P. Berrange [Tue, 25 Apr 2017 14:48:29 +0000]
Add note about development status

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

6 months agoAdd binding for virDomainQemuAgentCommand
davei [Tue, 25 Apr 2017 14:22:23 +0000]
Add binding for virDomainQemuAgentCommand

7 months agovirDomainListGetStats accepts a nil terminated array
Muhamad Azmy [Tue, 11 Apr 2017 12:04:18 +0000]
virDomainListGetStats accepts a nil terminated array

virDomainListGetStats expectes a nil terminates array
hence we need to allocate the `cdoms` with len() + 1
to have a nil element at the end, otherwise this will
occasionally SIGFAULT

7 months agoFix data type for ListAllInterfaceAddresses parameter
Daniel P. Berrange [Tue, 11 Apr 2017 16:10:09 +0000]
Fix data type for ListAllInterfaceAddresses parameter

We have a constant defined for the interface address source, so should
use that data type, not uint.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoFix handling of domain interface list data
Daniel P. Berrange [Tue, 11 Apr 2017 16:07:59 +0000]
Fix handling of domain interface list data

The approach to handling the domain interface list data was broken and
only worked by luck when there was a single interface, with a single
address. If there were multiple interfaces or multiple addresses a
Go exception would result.

Rewrite it to use pointer arithmetic instead of trying to turn the C
array into a go slice

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoAdd compat for BLOCK_THRESHOLD event v3.2.0
Daniel P. Berrange [Mon, 3 Apr 2017 16:00:22 +0000]
Add compat for BLOCK_THRESHOLD event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoAdd virConnectDomainEventBlockThresholdCallback binding
Daniel P. Berrange [Mon, 3 Apr 2017 15:28:58 +0000]
Add virConnectDomainEventBlockThresholdCallback binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoAdd virDomainSetBlockThreshold API binding
Daniel P. Berrange [Mon, 3 Apr 2017 15:12:42 +0000]
Add virDomainSetBlockThreshold API binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoMove perf constants to right place in domain_compat.h
Daniel P. Berrange [Mon, 3 Apr 2017 14:55:26 +0000]
Move perf constants to right place in domain_compat.h

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoAdd VIR_MIGRATE_TLS constant
Daniel P. Berrange [Mon, 3 Apr 2017 14:23:21 +0000]
Add VIR_MIGRATE_TLS constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoPass NULL to virDomainOpenConsole if dvename is an empty string
Roman Mohr [Mon, 3 Apr 2017 07:30:48 +0000]
Pass NULL to virDomainOpenConsole if dvename is an empty string

In order to let libvirt select the first available serial console, NULL
needs to be passed in. If an empty string is passsed in, libvirt tries
to find a console with that name instead.

8 months agoFix encoding of typed parameters which are not set
Daniel P. Berrange [Wed, 8 Mar 2017 11:51:50 +0000]
Fix encoding of typed parameters which are not set

Fixes bug #9

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoFix typos in VIR_PERF constants from previous commit
Daniel P. Berrange [Tue, 7 Mar 2017 23:08:16 +0000]
Fix typos in VIR_PERF constants from previous commit

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdd support for perf events
Nitesh Konkar [Fri, 24 Feb 2017 12:12:53 +0000]
Add support for perf events

Signed-off-by: Nitesh Konkar <nitkon12@linux.vnet.ibm.com>

8 months agoClarify error message when a function is not implemented v3.1.0
Daniel P. Berrange [Wed, 1 Mar 2017 17:40:41 +0000]
Clarify error message when a function is not implemented

The current message reported when Go code is disabled due
to libvirt missing a function is very similar to message
reported when libvirtd doesn't support a function.

Clarify it so it is clear when the missing feature is in
the Go language binding, as opposed to libvirtd.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agodomain.go: wrong calculation of bitmask in PinVcpuFlags()
Leonid Podolny [Tue, 28 Feb 2017 00:23:12 +0000]
domain.go: wrong calculation of bitmask in PinVcpuFlags()

8 months agoAdd virDomainSetVcpu API binding
Daniel P. Berrange [Thu, 23 Feb 2017 11:39:57 +0000]
Add virDomainSetVcpu API binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoAdd CONNECT_LIST_NODE_DEVICES_CAP_DRM constant
Daniel P. Berrange [Mon, 20 Feb 2017 17:10:40 +0000]
Add CONNECT_LIST_NODE_DEVICES_CAP_DRM constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agodomain.go: construct cpumaps correctly for CPU pinning verbs
Leonid Podolny [Wed, 15 Feb 2017 09:49:40 +0000]
domain.go: construct cpumaps correctly for CPU pinning verbs

In PinEmulator() and PinIOThread() there is an identical code that
converts []bool into a bitmask. It calculates the location in the
bitmask and then sets it always to 1, instead of looking at the
actual bool value.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoOnly set ptr to nil for Connect object when free'ing
Daniel P. Berrange [Tue, 14 Feb 2017 14:51:47 +0000]
Only set ptr to nil for Connect object when free'ing

The virXXXXFree() methods do not in fact return the remaining
reference count for the object - they always return 0. So we
cannot set 'ptr' to nil when calling Free() on a Go level object.

The virConnectClose() method, however, is an exception as it
returns 1 if references remain, 0 if no references remain.
So we should be setting 'ptr' to nil for the Connect object.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoOnly clear internal pointer if refcount hit zero
Daniel P. Berrange [Thu, 9 Feb 2017 17:22:34 +0000]
Only clear internal pointer if refcount hit zero

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoExpose the 'Ref' methods on objects
Daniel P. Berrange [Thu, 9 Feb 2017 13:48:17 +0000]
Expose the 'Ref' methods on objects

Since Go code is responsible for manually releasing the C object
by calling Free, there is a need for acquire extra references
to cope with the scenario that multiple go threads are using the
same object

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoAdd support for VSTORAGE constant
Daniel P. Berrange [Mon, 30 Jan 2017 16:08:14 +0000]
Add support for VSTORAGE constant

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoSet metadata on live instance during tests
Daniel P. Berrange [Wed, 25 Jan 2017 14:22:39 +0000]
Set metadata on live instance during tests

Older versions of libvirt were buggy if trying to set metadata
on inactive guests in the test driver.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoFix ability to clear metadata
Daniel P. Berrange [Wed, 25 Jan 2017 13:56:58 +0000]
Fix ability to clear metadata

We need to turn "" into NULL when calling virDomainSetMetadata
to ensure it can be cleared

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoFix array pointer access in GetCPUStats method
Daniel P. Berrange [Mon, 23 Jan 2017 09:47:41 +0000]
Fix array pointer access in GetCPUStats method

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoFix segfault in Connect.GetMemoryStats
Matvey Kruglov [Sun, 22 Jan 2017 22:01:10 +0000]
Fix segfault in Connect.GetMemoryStats

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoFix segfault in GetIOThreadInfo v3.0.0
Leonid Podolny [Wed, 18 Jan 2017 16:49:01 +0000]
Fix segfault in GetIOThreadInfo

The pointers calculation included a typo which caused segfaults.

Signed-off-by: Leonid Podolny <leonid@podolny.net>

10 months agoRevert "Add support for perf cache_l1d event"
Daniel P. Berrange [Mon, 16 Jan 2017 17:26:24 +0000]
Revert "Add support for perf cache_l1d event"

This reverts commit 73c68e67965b65c920e93535bdef7020d79baf6c.

The corresponding libvirt public API was reverted

10 months agoAdd support for perf cache_l1d event
Daniel P. Berrange [Tue, 10 Jan 2017 10:47:37 +0000]
Add support for perf cache_l1d event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoFix check version for secret events API
Daniel P. Berrange [Tue, 10 Jan 2017 10:31:45 +0000]
Fix check version for secret events API

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoAdd binding for secret event APIs
Daniel P. Berrange [Mon, 9 Jan 2017 17:46:19 +0000]
Add binding for secret event APIs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoAdd missing binding for storage pool refresh event
Daniel P. Berrange [Mon, 9 Jan 2017 17:45:43 +0000]
Add missing binding for storage pool refresh event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoAdd support for domain metadata change event
Daniel P. Berrange [Mon, 9 Jan 2017 17:27:58 +0000]
Add support for domain metadata change event

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoRevert "Fix package name in docs s/libvirt/libvirt-go/"
Daniel P. Berrange [Thu, 5 Jan 2017 12:46:39 +0000]
Revert "Fix package name in docs s/libvirt/libvirt-go/"

This reverts commit a5bd97a14c35a49efe3690d0a5d7751626ddc5bc.

If they differ, the package name should indeed be the Go package
name, not the git repo base name.

10 months agoFix package name in docs s/libvirt/libvirt-go/
Daniel P. Berrange [Thu, 5 Jan 2017 12:39:47 +0000]
Fix package name in docs s/libvirt/libvirt-go/

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

10 months agoChange SetVcpus/SetVcpusFlags to use uint
Daniel P. Berrange [Tue, 3 Jan 2017 14:51:38 +0000]
Change SetVcpus/SetVcpusFlags to use uint

The underlying C API uses an 'unsigned int', so the Go layer
should use 'uint' not 'uint16', which would artifically limit
the binding.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd support for registering an event loop implementation
Daniel P. Berrange [Wed, 21 Dec 2016 11:29:58 +0000]
Add support for registering an event loop implementation

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd support for virStorageVolGetInfoFlags & associated constants
Daniel P. Berrange [Wed, 21 Dec 2016 11:29:06 +0000]
Add support for virStorageVolGetInfoFlags & associated constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoFix connect callback to take *Connect instead of Connect
Daniel P. Berrange [Tue, 20 Dec 2016 17:37:01 +0000]
Fix connect callback to take *Connect instead of Connect

All methods should take pointers to the main objects

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoEnsure we set parameter type correctly
Daniel P. Berrange [Tue, 20 Dec 2016 14:33:28 +0000]
Ensure we set parameter type correctly

When allocating a new virTypedParameter array we were forgetting
to initialize the parameter type, causing non-deterministic
failures

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoUse a fixed domain name in integration tests
Daniel P. Berrange [Tue, 20 Dec 2016 12:57:18 +0000]
Use a fixed domain name in integration tests

Instead of generating a random domain name based on the time,
use a fixed domain name, and add some logic to cleanup if
previous invokation left the domain running.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoFix leak of defined QEMU guests
Daniel P. Berrange [Tue, 20 Dec 2016 12:46:29 +0000]
Fix leak of defined QEMU guests

Some integration tests forgot to undefine the QEMU guest

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd test case to validate BlockCopy function
Daniel P. Berrange [Tue, 20 Dec 2016 12:22:03 +0000]
Add test case to validate BlockCopy function

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoRemove blacklist entries for some funcs we autodetect
Daniel P. Berrange [Tue, 20 Dec 2016 11:40:24 +0000]
Remove blacklist entries for some funcs we autodetect

We now auto-detect usage with a _cgo suffix, so can stop
blacklisting event register funcs.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd event loop handler callback support
Daniel P. Berrange [Tue, 20 Dec 2016 11:38:37 +0000]
Add event loop handler callback support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd stream event callback support
Daniel P. Berrange [Tue, 20 Dec 2016 09:56:27 +0000]
Add stream event callback support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoRename CloseConnection to simply Close
Daniel P. Berrange [Mon, 19 Dec 2016 15:47:20 +0000]
Rename CloseConnection to simply Close

The go method names should match the C library names in general.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd support for new perf event constants
Daniel P. Berrange [Fri, 16 Dec 2016 12:01:53 +0000]
Add support for new perf event constants

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoTweak formatting of links to git repos to use list
Daniel P. Berrange [Fri, 16 Dec 2016 11:56:42 +0000]
Tweak formatting of links to git repos to use list

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAlso look for _cgo suffix when checking API support
Daniel P. Berrange [Fri, 16 Dec 2016 11:56:11 +0000]
Also look for _cgo suffix when checking API support

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd block quotes to README.md example snippets
Daniel P. Berrange [Fri, 16 Dec 2016 11:20:55 +0000]
Add block quotes to README.md example snippets

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd stream sendall/recvall functions
Daniel P. Berrange [Thu, 15 Dec 2016 13:19:35 +0000]
Add stream sendall/recvall functions

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoRename stream Close to Finish to match the C API
Daniel P. Berrange [Thu, 15 Dec 2016 12:05:01 +0000]
Rename stream Close to Finish to match the C API

The Go binding seeks to match C API naming in general.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoRename stream Read/Write to Recv/Send to match the C API
Daniel P. Berrange [Thu, 15 Dec 2016 12:05:01 +0000]
Rename stream Read/Write to Recv/Send to match the C API

The Go binding seeks to match C API naming in general.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoUse appropriate flags enum type in all methods
Daniel P. Berrange [Wed, 14 Dec 2016 15:32:10 +0000]
Use appropriate flags enum type in all methods

A number of methods were still using flags uint32, instead of the
strongly typed enum type.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoA blank line is required after build conditional tags
Daniel P. Berrange [Wed, 14 Dec 2016 14:19:26 +0000]
A blank line is required after build conditional tags

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoFix some docs typos
Daniel P. Berrange [Wed, 14 Dec 2016 14:11:02 +0000]
Fix some docs typos

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd new constants from 3.0.0 release
Daniel P. Berrange [Wed, 14 Dec 2016 12:10:53 +0000]
Add new constants from 3.0.0 release

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

11 months agoAdd some initial package level docs to introduce the binding
Daniel P. Berrange [Wed, 14 Dec 2016 11:53:36 +0000]
Add some initial package level docs to introduce the binding

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>