Re: [libvirt-php] 0.5.1 - missing arginfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 30/11/2015 10:23, Michal Privoznik a écrit :
> On 27.11.2015 16:48, Remi Collet wrote:
>> Hi,
>>
>> arginfo are very important in PHP extensions, useful for users
>> (documentation), and various tools rely on them (through reflection).
>>
>> Attached patch add some.
>>
>> Tell me if ok, and I will continue to add more.
>>
> 
> Yes, I had my eye on it in the past, but got side tracked and haven't
> find enough time to do that. Please post the patches if you have them.

Second part attached.

All done.


Remi.

>From f7ef0ce7bb2d33939b2bd594b2f4a1278128b888 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@xxxxxxxxxxxxxxxxx>
Date: Fri, 4 Dec 2015 09:18:59 +0100
Subject: [PATCH 5/5] add missing arginfo, part 2

---
 src/libvirt-php.c | 287 +++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 198 insertions(+), 89 deletions(-)

diff --git a/src/libvirt-php.c b/src/libvirt-php.c
index 5e8d75b..ae150c7 100644
--- a/src/libvirt-php.c
+++ b/src/libvirt-php.c
@@ -80,7 +80,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn, 0, 0, 1)
 ZEND_ARG_INFO(0, conn)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_connect_get_capabilities, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_xpath, 0, 0, 1)
 ZEND_ARG_INFO(0, conn)
 ZEND_ARG_INFO(0, xpath)
 ZEND_END_ARG_INFO()
@@ -121,11 +121,6 @@ ZEND_ARG_INFO(0, networks)
 ZEND_ARG_INFO(0, flags)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_domain_lookup_by_name, 0, 0, 2)
-ZEND_ARG_INFO(0, conn)
-ZEND_ARG_INFO(0, name)
-ZEND_END_ARG_INFO()
-
 ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_domain_change_vcpus, 0, 0, 2)
 ZEND_ARG_INFO(0, conn)
 ZEND_ARG_INFO(0, numCpus)
@@ -180,12 +175,12 @@ ZEND_ARG_INFO(0, conn)
 ZEND_ARG_INFO(0, id)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_domain_lookup_by_uuid, 0, 0, 2)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_uuid, 0, 0, 2)
 ZEND_ARG_INFO(0, conn)
 ZEND_ARG_INFO(0, uuid)
 ZEND_END_ARG_INFO()
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_domain_conn_xml, 0, 0, 2)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_xml, 0, 0, 2)
 ZEND_ARG_INFO(0, conn)
 ZEND_ARG_INFO(0, xml)
 ZEND_END_ARG_INFO()
@@ -343,6 +338,117 @@ ZEND_ARG_INFO(0, xml)
 ZEND_ARG_INFO(0, flags)
 ZEND_END_ARG_INFO()
 
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_optflags, 0, 0, 1)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_domain_snapshot_lookup_by_name, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, name)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_name, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, name)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_storagevolume_lookup_by_path, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, path)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_storagevolume_get_xml_desc, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, xpath)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_storagevolume_create_xml_from, 0, 0, 3)
+ZEND_ARG_INFO(0, pool)
+ZEND_ARG_INFO(0, xml)
+ZEND_ARG_INFO(0, original_volume)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_storagevolume_download, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, stream)
+ZEND_ARG_INFO(0, offset)
+ZEND_ARG_INFO(0, length)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_storagevolume_resize, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, capacity)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_storagepool_define_xml, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, xml)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_optcpunr, 0, 0, 1)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, cpunr)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_opttime, 0, 0, 1)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, time)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_optcap, 0, 0, 1)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, cap)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_opttype, 0, 0, 0)
+ZEND_ARG_INFO(0, type)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_check_version, 0, 0, 3)
+ZEND_ARG_INFO(0, major)
+ZEND_ARG_INFO(0, minor)
+ZEND_ARG_INFO(0, micro)
+ZEND_ARG_INFO(0, type)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_name, 0, 0, 1)
+ZEND_ARG_INFO(0, name)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_optpath, 0, 0, 0)
+ZEND_ARG_INFO(0, path)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_image_create, 0, 0, 4)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, name)
+ZEND_ARG_INFO(0, size)
+ZEND_ARG_INFO(0, format)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_conn_image, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, image)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_logfile_set, 0, 0, 1)
+ZEND_ARG_INFO(0, filename)
+ZEND_ARG_INFO(0, maxsize)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_libvirt_domain_qemu_agent_command, 0, 0, 2)
+ZEND_ARG_INFO(0, conn)
+ZEND_ARG_INFO(0, cmd)
+ZEND_ARG_INFO(0, timeout)
+ZEND_ARG_INFO(0, flags)
+ZEND_END_ARG_INFO()
+
 static zend_function_entry libvirt_functions[] = {
     /* Common functions */
     PHP_FE(libvirt_get_last_error,               arginfo_libvirt_void)
@@ -350,7 +456,7 @@ static zend_function_entry libvirt_functions[] = {
     PHP_FE(libvirt_connect,                      arginfo_libvirt_connect)
     PHP_FE(libvirt_connect_get_uri,              arginfo_libvirt_conn)
     PHP_FE(libvirt_connect_get_hostname,         arginfo_libvirt_conn)
-    PHP_FE(libvirt_connect_get_capabilities,     arginfo_libvirt_connect_get_capabilities)
+    PHP_FE(libvirt_connect_get_capabilities,     arginfo_libvirt_conn_xpath)
     PHP_FE(libvirt_connect_get_emulator,         arginfo_libvirt_connect_get_emulator)
     PHP_FE(libvirt_connect_get_nic_models,       arginfo_libvirt_connect_get_emulator)
     PHP_FE(libvirt_connect_get_soundhw_models,   arginfo_libvirt_connect_get_soundhw_models)
@@ -374,8 +480,8 @@ static zend_function_entry libvirt_functions[] = {
     PHP_FE(libvirt_domain_new_get_vnc,           arginfo_libvirt_void)
     PHP_FE(libvirt_domain_get_counts,            arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_is_persistent,         arginfo_libvirt_conn)
-    PHP_FE(libvirt_domain_lookup_by_name,        arginfo_libvirt_domain_lookup_by_name)
-    PHP_FE(libvirt_domain_get_xml_desc,          arginfo_libvirt_connect_get_capabilities)
+    PHP_FE(libvirt_domain_lookup_by_name,        arginfo_libvirt_conn_name)
+    PHP_FE(libvirt_domain_get_xml_desc,          arginfo_libvirt_conn_xpath)
     PHP_FE(libvirt_domain_get_disk_devices,      arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_get_interface_devices, arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_change_vcpus,          arginfo_libvirt_domain_change_vcpus)
@@ -391,10 +497,10 @@ static zend_function_entry libvirt_functions[] = {
     PHP_FE(libvirt_domain_get_uuid_string,       arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_get_id,                arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_lookup_by_id,          arginfo_libvirt_domain_lookup_by_id)
-    PHP_FE(libvirt_domain_lookup_by_uuid,        arginfo_libvirt_domain_lookup_by_uuid)
-    PHP_FE(libvirt_domain_lookup_by_uuid_string, arginfo_libvirt_domain_lookup_by_uuid)
+    PHP_FE(libvirt_domain_lookup_by_uuid,        arginfo_libvirt_conn_uuid)
+    PHP_FE(libvirt_domain_lookup_by_uuid_string, arginfo_libvirt_conn_uuid)
     PHP_FE(libvirt_domain_destroy,               arginfo_libvirt_conn)
-    PHP_FE(libvirt_domain_create,                arginfo_libvirt_domain_conn_xml)
+    PHP_FE(libvirt_domain_create,                arginfo_libvirt_conn_xml)
     PHP_FE(libvirt_domain_resume,                arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_core_dump,             arginfo_libvirt_domain_core_dump)
     PHP_FE(libvirt_domain_shutdown,              arginfo_libvirt_conn)
@@ -402,8 +508,8 @@ static zend_function_entry libvirt_functions[] = {
     PHP_FE(libvirt_domain_managedsave,           arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_undefine,              arginfo_libvirt_conn)
     PHP_FE(libvirt_domain_reboot,                arginfo_libvirt_conn_flags)
-    PHP_FE(libvirt_domain_define_xml,            arginfo_libvirt_domain_conn_xml)
-    PHP_FE(libvirt_domain_create_xml,            arginfo_libvirt_domain_conn_xml)
+    PHP_FE(libvirt_domain_define_xml,            arginfo_libvirt_conn_xml)
+    PHP_FE(libvirt_domain_create_xml,            arginfo_libvirt_conn_xml)
     PHP_FE(libvirt_domain_memory_peek,           arginfo_libvirt_domain_memory_peek)
     PHP_FE(libvirt_domain_memory_stats,          arginfo_libvirt_conn_flags)
     PHP_FE(libvirt_domain_set_memory,            arginfo_libvirt_domain_set_memory)
@@ -435,87 +541,87 @@ static zend_function_entry libvirt_functions[] = {
     PHP_FE(libvirt_domain_send_pointer_event,    arginfo_libvirt_domain_send_pointer_event)
     PHP_FE(libvirt_domain_update_device,         arginfo_libvirt_domain_update_device)
     /* Domain snapshot functions */
-    PHP_FE(libvirt_domain_has_current_snapshot, NULL)
-    PHP_FE(libvirt_domain_snapshot_create, NULL)
-    PHP_FE(libvirt_domain_snapshot_get_xml, NULL)
-    PHP_FE(libvirt_domain_snapshot_revert, NULL)
-    PHP_FE(libvirt_domain_snapshot_delete, NULL)
-    PHP_FE(libvirt_domain_snapshot_lookup_by_name, NULL)
+    PHP_FE(libvirt_domain_has_current_snapshot,  arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_domain_snapshot_create,       arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_domain_snapshot_get_xml,      arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_domain_snapshot_revert,       arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_domain_snapshot_delete,       arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_domain_snapshot_lookup_by_name, arginfo_libvirt_domain_snapshot_lookup_by_name)
     /* Storagepool functions */
-    PHP_FE(libvirt_storagepool_lookup_by_name,NULL)
-    PHP_FE(libvirt_storagepool_lookup_by_volume,NULL)
-    PHP_FE(libvirt_storagepool_get_info,NULL)
-    PHP_FE(libvirt_storagevolume_lookup_by_name,NULL)
-    PHP_FE(libvirt_storagevolume_lookup_by_path,NULL)
-    PHP_FE(libvirt_storagevolume_get_name,NULL)
-    PHP_FE(libvirt_storagevolume_get_path,NULL)
-    PHP_FE(libvirt_storagevolume_get_info,NULL)
-    PHP_FE(libvirt_storagevolume_get_xml_desc,NULL)
-    PHP_FE(libvirt_storagevolume_create_xml,NULL)
-    PHP_FE(libvirt_storagevolume_create_xml_from,NULL)
-    PHP_FE(libvirt_storagevolume_delete,NULL)
-    PHP_FE(libvirt_storagevolume_download,NULL)
-    PHP_FE(libvirt_storagevolume_upload,NULL)
-    PHP_FE(libvirt_storagevolume_resize,NULL)
-    PHP_FE(libvirt_storagepool_get_uuid_string, NULL)
-    PHP_FE(libvirt_storagepool_get_name, NULL)
-    PHP_FE(libvirt_storagepool_lookup_by_uuid_string, NULL)
-    PHP_FE(libvirt_storagepool_get_xml_desc, NULL)
-    PHP_FE(libvirt_storagepool_define_xml, NULL)
-    PHP_FE(libvirt_storagepool_undefine, NULL)
-    PHP_FE(libvirt_storagepool_create, NULL)
-    PHP_FE(libvirt_storagepool_destroy, NULL)
-    PHP_FE(libvirt_storagepool_is_active, NULL)
-    PHP_FE(libvirt_storagepool_get_volume_count, NULL)
-    PHP_FE(libvirt_storagepool_refresh, NULL)
-    PHP_FE(libvirt_storagepool_set_autostart, NULL)
-    PHP_FE(libvirt_storagepool_get_autostart, NULL)
-    PHP_FE(libvirt_storagepool_build, NULL)
-    PHP_FE(libvirt_storagepool_delete, NULL)
+    PHP_FE(libvirt_storagepool_lookup_by_name,   arginfo_libvirt_conn_name)
+    PHP_FE(libvirt_storagepool_lookup_by_volume, arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_get_info,         arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagevolume_lookup_by_name, arginfo_libvirt_conn_name)
+    PHP_FE(libvirt_storagevolume_lookup_by_path, arginfo_libvirt_storagevolume_lookup_by_path)
+    PHP_FE(libvirt_storagevolume_get_name,       arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagevolume_get_path,       arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagevolume_get_info,       arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagevolume_get_xml_desc,   arginfo_libvirt_storagevolume_get_xml_desc)
+    PHP_FE(libvirt_storagevolume_create_xml,     arginfo_libvirt_conn_xml)
+    PHP_FE(libvirt_storagevolume_create_xml_from,arginfo_libvirt_storagevolume_create_xml_from)
+    PHP_FE(libvirt_storagevolume_delete,         arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_storagevolume_download,       arginfo_libvirt_storagevolume_download)
+    PHP_FE(libvirt_storagevolume_upload,         arginfo_libvirt_storagevolume_download)
+    PHP_FE(libvirt_storagevolume_resize,         arginfo_libvirt_storagevolume_resize)
+    PHP_FE(libvirt_storagepool_get_uuid_string,  arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_get_name,         arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_lookup_by_uuid_string, arginfo_libvirt_conn_uuid)
+    PHP_FE(libvirt_storagepool_get_xml_desc,     arginfo_libvirt_conn_xpath)
+    PHP_FE(libvirt_storagepool_define_xml,       arginfo_libvirt_storagepool_define_xml)
+    PHP_FE(libvirt_storagepool_undefine,         arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_create,           arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_destroy,          arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_is_active,        arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_get_volume_count, arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_refresh,          arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_storagepool_set_autostart,    arginfo_libvirt_conn_flags)
+    PHP_FE(libvirt_storagepool_get_autostart,    arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_build,            arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_delete,           arginfo_libvirt_conn)
     /* Network functions */
-    PHP_FE(libvirt_network_define_xml, NULL)
-    PHP_FE(libvirt_network_undefine, NULL)
-    PHP_FE(libvirt_network_get, NULL)
-    PHP_FE(libvirt_network_get_xml_desc, NULL)
-    PHP_FE(libvirt_network_get_bridge, NULL)
-    PHP_FE(libvirt_network_get_information, NULL)
-    PHP_FE(libvirt_network_get_active, NULL)
-    PHP_FE(libvirt_network_set_active, NULL)
+    PHP_FE(libvirt_network_define_xml,           arginfo_libvirt_conn_xml)
+    PHP_FE(libvirt_network_undefine,             arginfo_libvirt_conn)
+    PHP_FE(libvirt_network_get,                  arginfo_libvirt_conn_name)
+    PHP_FE(libvirt_network_get_xml_desc,         arginfo_libvirt_conn_xpath)
+    PHP_FE(libvirt_network_get_bridge,           arginfo_libvirt_conn)
+    PHP_FE(libvirt_network_get_information,      arginfo_libvirt_conn)
+    PHP_FE(libvirt_network_get_active,           arginfo_libvirt_conn)
+    PHP_FE(libvirt_network_set_active,           arginfo_libvirt_conn_flags)
     /* Node functions */
-    PHP_FE(libvirt_node_get_info, NULL)
-    PHP_FE(libvirt_node_get_cpu_stats, NULL)
-    PHP_FE(libvirt_node_get_cpu_stats_for_each_cpu, NULL)
-    PHP_FE(libvirt_node_get_mem_stats, NULL)
+    PHP_FE(libvirt_node_get_info,                arginfo_libvirt_conn)
+    PHP_FE(libvirt_node_get_cpu_stats,           arginfo_libvirt_conn_optcpunr)
+    PHP_FE(libvirt_node_get_cpu_stats_for_each_cpu, arginfo_libvirt_conn_opttime)
+    PHP_FE(libvirt_node_get_mem_stats,           arginfo_libvirt_conn)
     /* Nodedev functions */
-    PHP_FE(libvirt_nodedev_get, NULL)
-    PHP_FE(libvirt_nodedev_capabilities, NULL)
-    PHP_FE(libvirt_nodedev_get_xml_desc, NULL)
-    PHP_FE(libvirt_nodedev_get_information, NULL)
+    PHP_FE(libvirt_nodedev_get,                  arginfo_libvirt_conn)
+    PHP_FE(libvirt_nodedev_capabilities,         arginfo_libvirt_conn)
+    PHP_FE(libvirt_nodedev_get_xml_desc,         arginfo_libvirt_conn_xpath)
+    PHP_FE(libvirt_nodedev_get_information,      arginfo_libvirt_conn)
     /* List functions */
-    PHP_FE(libvirt_list_domains, NULL)
-    PHP_FE(libvirt_list_domain_snapshots, NULL)
-    PHP_FE(libvirt_list_domain_resources, NULL)
-    PHP_FE(libvirt_list_nodedevs, NULL)
-    PHP_FE(libvirt_list_networks,NULL)
-    PHP_FE(libvirt_list_storagepools,NULL)
-    PHP_FE(libvirt_list_active_storagepools,NULL)
-    PHP_FE(libvirt_list_inactive_storagepools,NULL)
-    PHP_FE(libvirt_storagepool_list_volumes,NULL)
-    PHP_FE(libvirt_list_active_domains, NULL)
-    PHP_FE(libvirt_list_active_domain_ids, NULL)
-    PHP_FE(libvirt_list_inactive_domains, NULL)
+    PHP_FE(libvirt_list_domains,                 arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_domain_snapshots,        arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_list_domain_resources,        arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_nodedevs,                arginfo_libvirt_conn_optcap)
+    PHP_FE(libvirt_list_networks,                arginfo_libvirt_conn_optflags)
+    PHP_FE(libvirt_list_storagepools,            arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_active_storagepools,     arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_inactive_storagepools,   arginfo_libvirt_conn)
+    PHP_FE(libvirt_storagepool_list_volumes,     arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_active_domains,          arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_active_domain_ids,       arginfo_libvirt_conn)
+    PHP_FE(libvirt_list_inactive_domains,        arginfo_libvirt_conn)
     /* Version information and common function */
-    PHP_FE(libvirt_version, NULL)
-    PHP_FE(libvirt_check_version, NULL)
-    PHP_FE(libvirt_has_feature, NULL)
-    PHP_FE(libvirt_get_iso_images, NULL)
-    PHP_FE(libvirt_image_create, NULL)
-    PHP_FE(libvirt_image_remove, NULL)
+    PHP_FE(libvirt_version,                      arginfo_libvirt_opttype)
+    PHP_FE(libvirt_check_version,                arginfo_libvirt_check_version)
+    PHP_FE(libvirt_has_feature,                  arginfo_libvirt_name)
+    PHP_FE(libvirt_get_iso_images,               arginfo_libvirt_optpath)
+    PHP_FE(libvirt_image_create,                 arginfo_libvirt_image_create)
+    PHP_FE(libvirt_image_remove,                 arginfo_libvirt_conn_image)
     /* Debugging functions */
-    PHP_FE(libvirt_logfile_set, NULL)
-    PHP_FE(libvirt_print_binding_resources, NULL)
+    PHP_FE(libvirt_logfile_set,                  arginfo_libvirt_logfile_set)
+    PHP_FE(libvirt_print_binding_resources,      arginfo_libvirt_void)
     /* Agent functions */
-    PHP_FE(libvirt_domain_qemu_agent_command, NULL)
+    PHP_FE(libvirt_domain_qemu_agent_command,    arginfo_libvirt_domain_qemu_agent_command)
 #ifdef PHP_FE_END
     PHP_FE_END
 #else
@@ -3924,6 +4030,7 @@ PHP_FUNCTION(libvirt_domain_lookup_by_uuid)
  * Since version:  0.5.2(-1)
  * Description:    Function is used to send qemu-ga command
  * Arguments:      @res [resource]: libvirt domain resource, e.g. from libvirt_domain_lookup_by_*()
+ *                 @cmd [string]: command
  *                 @timeout [int] timeout for waiting (-2 block, -1 default, 0 no wait, >0 wait specific time
  *                 @flags [int]: unknown
  * Returns:        String on success and FALSE on error
@@ -7344,6 +7451,7 @@ PHP_FUNCTION(libvirt_storagevolume_get_info)
  * Description:     Function is used to get the storage volume XML description
  * Arguments:       @res [resource]: libvirt storagevolume resource
  *                  @xpath [string]: optional xPath expression string to get just this entry, can be NULL
+ *                  @flags [int]: optional flags
  * Returns:         storagevolume XML description or result of xPath expression
  */
 PHP_FUNCTION(libvirt_storagevolume_get_xml_desc)
@@ -9012,6 +9120,7 @@ PHP_FUNCTION(libvirt_network_get_information)
  * Since version:   0.4.1(-1)
  * Description:     Function is used to set the activity state of the network
  * Arguments:       @res [resource]: libvirt network resource
+ *                  @flags [int]: active
  * Returns:         TRUE if success, FALSE on error
  */
 PHP_FUNCTION(libvirt_network_set_active)
-- 
2.1.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]