11 Commits

Author SHA1 Message Date
Michal Novotny
3b9d910d28 Implement resource object counters and API to print the memory sizes and fix several memory leaks
Also, version in configure.ac has been changed to 0.4.2.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-06-21 16:32:16 +02:00
Michal Novotny
31bca38b93 Implement debug support using libvirt_logfile_set() API function
This is a very useful patch to implement the debug logging for libvirt-php
module. The debug logging can be turned on using the libvirt_logfile_set()
API function that accepts both filename and maximum log file size in KiB.
Debug support have to be compiled into the module which is enabled by in
this version with default set to logging disabled.

Also, version number in the PHPInfo() has been changed from 0.4.1 to
0.4.2.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-06-20 18:32:29 +02:00
Michal Novotny
cbfbb08f71 Introduce libvirt_domain_send_keys() API to send the keys to the guest's VNC window
Hi,
this patch introduces the libvirt_domain_send_keys() API function which
is using the direct VNC connection to the host machine and accessing
the VNC port for the domain. Also, the remote connectivity for both
screenshots and libvirt_domain_send_keys() API functions has been
introduced. The libvirt_domain_send_keys() accepts also escaping
characters '\r' and '\n'. Those characters should be written as
plain text characters in the input, i.e. 2 characters like '\' and
'n' instead of one character '\n'. This is being processed
automatically by the send_keys() API function.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-06-09 04:00:18 +02:00
Michal Novotny
170e968e08 Fix example scripts and class
Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-06-08 16:23:46 +02:00
Michal Novotny
37cbd581bb Introduce libvirt_has_feature() function and add minor fixes for getting screenshots
Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-05-26 20:29:54 +02:00
Michal Novotny
9b72e46387 Add support for getting domain screenshot
A new function libvirt_domain_get_screenshot() can grab the screenshot
of the active domain if gvnccapture utility could be found on the system.
Example scripts has been upgraded as well.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-04-27 18:23:19 +02:00
Michal Novotny
382b8624f7 Add API functions to add and remove the network card
This commit is implementing libvirt_domain_disk_{add|remove}() like
functions except for network cards (NICs). They are named using the
same schema with substitution of _disk_ to _nic_ in the function
names, i.e. libvirt_domain_nic_{add|remove}().

Example PHP scripts has been added as well.

Michal

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-04-20 17:22:19 +02:00
Michal Novotny
2f314ebc6c Fix example for libvirt_nodedev_get_xml()
Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-04-07 09:53:45 +02:00
Michal Novotny
d9996ba707 Implement libvirt_domain_disk_add() and libvirt_domain_disk_remove() functions
Those are functions to allow very easy administration of disk images for
the virtual machines. Example scripts have been modified to use those
new functions in the VM details window (when you click the name of VM
on the main page).

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-04-05 19:59:24 +02:00
Michal Novotny
6f55650641 Update the example scripts
Thanks to Yukihiro Kawada <warp.kawada@gmail.com> I noticed that the
new example scripts are not being updated to the repo so pushing now.

Signed-off-by: Michal Novotny <minovotn@redhat.com>
2011-03-31 12:27:08 +02:00
Michal Novotny
45880e9e5a Move php-libvirt from github 2011-02-08 11:01:25 +01:00