2008-12-05 01:03:24 +03:00
/* Automatically generated by remote_generate_stubs.pl.
* Do not edit this file . Any changes you make will be lost .
*/
remote_open_args val_remote_open_args ;
remote_get_max_vcpus_args val_remote_get_max_vcpus_args ;
remote_domain_attach_device_args val_remote_domain_attach_device_args ;
remote_domain_create_args val_remote_domain_create_args ;
remote_domain_create_xml_args val_remote_domain_create_xml_args ;
remote_domain_define_xml_args val_remote_domain_define_xml_args ;
remote_domain_destroy_args val_remote_domain_destroy_args ;
remote_domain_detach_device_args val_remote_domain_detach_device_args ;
remote_domain_dump_xml_args val_remote_domain_dump_xml_args ;
remote_domain_get_autostart_args val_remote_domain_get_autostart_args ;
remote_domain_get_info_args val_remote_domain_get_info_args ;
remote_domain_get_max_memory_args val_remote_domain_get_max_memory_args ;
remote_domain_get_max_vcpus_args val_remote_domain_get_max_vcpus_args ;
remote_domain_get_os_type_args val_remote_domain_get_os_type_args ;
remote_domain_get_vcpus_args val_remote_domain_get_vcpus_args ;
remote_list_defined_domains_args val_remote_list_defined_domains_args ;
remote_domain_lookup_by_id_args val_remote_domain_lookup_by_id_args ;
remote_domain_lookup_by_name_args val_remote_domain_lookup_by_name_args ;
remote_domain_lookup_by_uuid_args val_remote_domain_lookup_by_uuid_args ;
remote_domain_pin_vcpu_args val_remote_domain_pin_vcpu_args ;
remote_domain_reboot_args val_remote_domain_reboot_args ;
remote_domain_resume_args val_remote_domain_resume_args ;
remote_domain_set_autostart_args val_remote_domain_set_autostart_args ;
remote_domain_set_max_memory_args val_remote_domain_set_max_memory_args ;
remote_domain_set_memory_args val_remote_domain_set_memory_args ;
remote_domain_set_vcpus_args val_remote_domain_set_vcpus_args ;
remote_domain_shutdown_args val_remote_domain_shutdown_args ;
remote_domain_suspend_args val_remote_domain_suspend_args ;
remote_domain_undefine_args val_remote_domain_undefine_args ;
remote_list_defined_networks_args val_remote_list_defined_networks_args ;
remote_list_domains_args val_remote_list_domains_args ;
remote_list_networks_args val_remote_list_networks_args ;
remote_network_create_args val_remote_network_create_args ;
remote_network_create_xml_args val_remote_network_create_xml_args ;
remote_network_define_xml_args val_remote_network_define_xml_args ;
remote_network_destroy_args val_remote_network_destroy_args ;
remote_network_dump_xml_args val_remote_network_dump_xml_args ;
remote_network_get_autostart_args val_remote_network_get_autostart_args ;
remote_network_get_bridge_name_args val_remote_network_get_bridge_name_args ;
remote_network_lookup_by_name_args val_remote_network_lookup_by_name_args ;
remote_network_lookup_by_uuid_args val_remote_network_lookup_by_uuid_args ;
remote_network_set_autostart_args val_remote_network_set_autostart_args ;
remote_network_undefine_args val_remote_network_undefine_args ;
remote_domain_core_dump_args val_remote_domain_core_dump_args ;
remote_domain_restore_args val_remote_domain_restore_args ;
remote_domain_save_args val_remote_domain_save_args ;
remote_domain_get_scheduler_type_args val_remote_domain_get_scheduler_type_args ;
remote_domain_get_scheduler_parameters_args val_remote_domain_get_scheduler_parameters_args ;
remote_domain_set_scheduler_parameters_args val_remote_domain_set_scheduler_parameters_args ;
remote_supports_feature_args val_remote_supports_feature_args ;
remote_domain_migrate_prepare_args val_remote_domain_migrate_prepare_args ;
remote_domain_migrate_perform_args val_remote_domain_migrate_perform_args ;
remote_domain_migrate_finish_args val_remote_domain_migrate_finish_args ;
remote_domain_block_stats_args val_remote_domain_block_stats_args ;
remote_domain_interface_stats_args val_remote_domain_interface_stats_args ;
remote_auth_sasl_start_args val_remote_auth_sasl_start_args ;
remote_auth_sasl_step_args val_remote_auth_sasl_step_args ;
remote_list_storage_pools_args val_remote_list_storage_pools_args ;
remote_list_defined_storage_pools_args val_remote_list_defined_storage_pools_args ;
remote_find_storage_pool_sources_args val_remote_find_storage_pool_sources_args ;
remote_storage_pool_create_xml_args val_remote_storage_pool_create_xml_args ;
remote_storage_pool_define_xml_args val_remote_storage_pool_define_xml_args ;
remote_storage_pool_create_args val_remote_storage_pool_create_args ;
remote_storage_pool_build_args val_remote_storage_pool_build_args ;
remote_storage_pool_destroy_args val_remote_storage_pool_destroy_args ;
remote_storage_pool_delete_args val_remote_storage_pool_delete_args ;
remote_storage_pool_undefine_args val_remote_storage_pool_undefine_args ;
remote_storage_pool_refresh_args val_remote_storage_pool_refresh_args ;
remote_storage_pool_lookup_by_name_args val_remote_storage_pool_lookup_by_name_args ;
remote_storage_pool_lookup_by_uuid_args val_remote_storage_pool_lookup_by_uuid_args ;
remote_storage_pool_lookup_by_volume_args val_remote_storage_pool_lookup_by_volume_args ;
remote_storage_pool_get_info_args val_remote_storage_pool_get_info_args ;
remote_storage_pool_dump_xml_args val_remote_storage_pool_dump_xml_args ;
remote_storage_pool_get_autostart_args val_remote_storage_pool_get_autostart_args ;
remote_storage_pool_set_autostart_args val_remote_storage_pool_set_autostart_args ;
remote_storage_pool_num_of_volumes_args val_remote_storage_pool_num_of_volumes_args ;
remote_storage_pool_list_volumes_args val_remote_storage_pool_list_volumes_args ;
remote_storage_vol_create_xml_args val_remote_storage_vol_create_xml_args ;
remote_storage_vol_delete_args val_remote_storage_vol_delete_args ;
remote_storage_vol_lookup_by_name_args val_remote_storage_vol_lookup_by_name_args ;
remote_storage_vol_lookup_by_key_args val_remote_storage_vol_lookup_by_key_args ;
remote_storage_vol_lookup_by_path_args val_remote_storage_vol_lookup_by_path_args ;
remote_storage_vol_get_info_args val_remote_storage_vol_get_info_args ;
remote_storage_vol_dump_xml_args val_remote_storage_vol_dump_xml_args ;
remote_storage_vol_get_path_args val_remote_storage_vol_get_path_args ;
remote_node_get_cells_free_memory_args val_remote_node_get_cells_free_memory_args ;
remote_domain_block_peek_args val_remote_domain_block_peek_args ;
remote_domain_memory_peek_args val_remote_domain_memory_peek_args ;
remote_domain_migrate_prepare2_args val_remote_domain_migrate_prepare2_args ;
remote_domain_migrate_finish2_args val_remote_domain_migrate_finish2_args ;
remote_node_num_of_devices_args val_remote_node_num_of_devices_args ;
remote_node_list_devices_args val_remote_node_list_devices_args ;
remote_node_device_lookup_by_name_args val_remote_node_device_lookup_by_name_args ;
remote_node_device_dump_xml_args val_remote_node_device_dump_xml_args ;
remote_node_device_get_parent_args val_remote_node_device_get_parent_args ;
remote_node_device_num_of_caps_args val_remote_node_device_num_of_caps_args ;
remote_node_device_list_caps_args val_remote_node_device_list_caps_args ;
2009-03-02 19:30:59 +03:00
remote_node_device_dettach_args val_remote_node_device_dettach_args ;
remote_node_device_re_attach_args val_remote_node_device_re_attach_args ;
remote_node_device_reset_args val_remote_node_device_reset_args ;
2009-03-03 12:27:02 +03:00
remote_domain_get_security_label_args val_remote_domain_get_security_label_args ;
2009-04-24 17:11:23 +04:00
remote_node_device_create_xml_args val_remote_node_device_create_xml_args ;
remote_node_device_destroy_args val_remote_node_device_destroy_args ;
2009-05-13 00:13:52 +04:00
remote_storage_vol_create_xml_from_args val_remote_storage_vol_create_xml_from_args ;
2009-05-20 18:26:49 +04:00
remote_list_interfaces_args val_remote_list_interfaces_args ;
remote_interface_lookup_by_name_args val_remote_interface_lookup_by_name_args ;
remote_interface_lookup_by_mac_string_args val_remote_interface_lookup_by_mac_string_args ;
remote_interface_get_xml_desc_args val_remote_interface_get_xml_desc_args ;
remote_interface_define_xml_args val_remote_interface_define_xml_args ;
remote_interface_undefine_args val_remote_interface_undefine_args ;
remote_interface_create_args val_remote_interface_create_args ;
remote_interface_destroy_args val_remote_interface_destroy_args ;
2009-05-21 17:50:56 +04:00
remote_domain_xml_from_native_args val_remote_domain_xml_from_native_args ;
remote_domain_xml_to_native_args val_remote_domain_xml_to_native_args ;
2009-07-16 19:58:15 +04:00
remote_list_defined_interfaces_args val_remote_list_defined_interfaces_args ;
2009-07-28 06:01:00 +04:00
remote_list_secrets_args val_remote_list_secrets_args ;
Fix UUID handling in secrets/storage encryption APIs
Convert all the secret/storage encryption APIs / wire format to
handle UUIDs in raw format instead of non-canonical printable
format. Guarentees data format correctness.
* docs/schemas/storageencryption.rng: Make UUID mandatory for a secret
and validate fully
* docs/schemas/secret.rng: Fully validate UUID
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add
virSecretLookupByUUID and virSecretGetUUID. Make
virSecretGetUUIDString follow normal API design pattern
* python/generator.py: Skip generation of virSecretGetUUID,
virSecretGetUUIDString and virSecretLookupByUUID
* python/libvir.c, python/libvirt-python-api.xml: Manual impl
of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID
* qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/
Fix get_nonnull_secret/make_nonnull_secret to use unsigned char
* qemud/remote_protocol.x: Fix remote_nonnull_secret to use a
remote_uuid instead of remote_nonnull_string for UUID field.
Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to
REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an
remote_uuid value
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.h, src/datatypes.c: Store UUID in raw format instead
of printable. Change virGetSecret to use raw format UUID
* src/driver.h: Rename virDrvSecretLookupByUUIDString to
virDrvSecretLookupByUUID and use raw format UUID
* src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID
and re-implement virSecretLookupByUUIDString and
virSecretGetUUIDString in terms of those
* src/libvirt_public.syms: Add virSecretLookupByUUID and
virSecretGetUUID
* src/remote_internal.c: Rename remoteSecretLookupByUUIDString
to remoteSecretLookupByUUID. Fix typo in args for
remoteSecretDefineXML impl. Use raw UUID format for
get_nonnull_secret and make_nonnull_secret
* src/storage_encryption_conf.c, src/storage_encryption_conf.h:
Storage UUID in raw format, and require it to be present in
XML. Use UUID parser to validate.
* secret_conf.h, secret_conf.c: Generate a UUID if none is provided.
Storage UUID in raw format.
* src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets
in a filed with printable UUID, instead of base64 UUID.
* src/virsh.c: Adjust for changed public API contract of
virSecretGetUUIDString.
* src/storage_Backend.c: DOn't undefine secret we just generated
upon successful volume creation. Fix to handle raw UUIDs. Generate
a non-clashing UUID
* src/qemu_driver.c: Change to use lookupByUUID instead of
lookupByUUIDString
2009-09-10 20:44:12 +04:00
remote_secret_lookup_by_uuid_args val_remote_secret_lookup_by_uuid_args ;
2009-07-28 06:01:00 +04:00
remote_secret_define_xml_args val_remote_secret_define_xml_args ;
remote_secret_get_xml_desc_args val_remote_secret_get_xml_desc_args ;
remote_secret_set_value_args val_remote_secret_set_value_args ;
remote_secret_get_value_args val_remote_secret_get_value_args ;
remote_secret_undefine_args val_remote_secret_undefine_args ;
Add usage type/id as a public API property of virSecret
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in: Add
virSecretGetUsageType, virSecretGetUsageID and virLookupSecretByUsage
* python/generator.py: Mark virSecretGetUsageType, virSecretGetUsageID
as not throwing exceptions
* qemud/remote.c: Implement dispatch for virLookupSecretByUsage
* qemud/remote_protocol.x: Add usage type & ID as attributes of
remote_nonnull_secret. Add RPC calls for new public APIs
* qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
* src/datatypes.c, src/datatypes.h: Add usageType and usageID as
properties of virSecretPtr
* src/driver.h: Add virLookupSecretByUsage driver entry point
* src/libvirt.c: Implement virSecretGetUsageType, virSecretGetUsageID
and virLookupSecretByUsage
* src/libvirt_public.syms: Export virSecretGetUsageType, virSecretGetUsageID
and virLookupSecretByUsage
* src/remote_internal.c: Implement virLookupSecretByUsage entry
* src/secret_conf.c, src/secret_conf.h: Remove the
virSecretUsageType enum, now in public API. Make volume
path mandatory when parsing XML
* src/secret_driver.c: Enforce usage uniqueness when defining secrets.
Implement virSecretLookupByUsage api method
* src/virsh.c: Include usage for secret-list command
2009-09-11 17:06:15 +04:00
remote_secret_lookup_by_usage_args val_remote_secret_lookup_by_usage_args ;
2009-09-30 14:51:54 +04:00
remote_domain_migrate_prepare_tunnel_args val_remote_domain_migrate_prepare_tunnel_args ;
Implmentation of new APIs to checking state/persistence of objects
This implements the virConnectIsSecure, virConnectIsEncrypted,
virDomainIsPersistent, virDomainIsActive, virNetworkIsActive,
virNetworkIsPersistent, virStoragePoolIsActive,
virStoragePoolIsPersistent, virInterfaceIsActive APIs in
(nearly) all drivers. Exceptions are:
phyp: missing domainIsActive/Persistent
esx: missing domainIsPersistent
opennebula: missing domainIsActive/Persistent
* src/remote/remote_protocol.x: Define remote wire ABI for newly
added APIs.
* daemon/remote_dispatch*.h: Re-generated from remote_protocol.x
* src/esx/esx_driver.c, src/lxc/lxc_driver.c, src/network/bridge_driver.c,
src/opennebula/one_driver.c, src/openvz/openvz_conf.c,
src/openvz/openvz_driver.c, src/phyp/phyp_driver.c,
src/remote/remote_driver.c, src/storage/storage_driver.c,
src/test/test_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
src/xen/xen_driver.c, src/xen/xen_driver.h, src/xen/xen_inotify.c,
src/xen/xen_inotify.h: Implement all the new APIs where possible
2009-10-20 18:12:03 +04:00
remote_domain_is_active_args val_remote_domain_is_active_args ;
remote_domain_is_persistent_args val_remote_domain_is_persistent_args ;
remote_network_is_active_args val_remote_network_is_active_args ;
remote_network_is_persistent_args val_remote_network_is_persistent_args ;
remote_storage_pool_is_active_args val_remote_storage_pool_is_active_args ;
remote_storage_pool_is_persistent_args val_remote_storage_pool_is_persistent_args ;
remote_interface_is_active_args val_remote_interface_is_active_args ;
2009-12-18 17:49:34 +03:00
remote_cpu_compare_args val_remote_cpu_compare_args ;
2009-12-20 15:43:19 +03:00
remote_domain_memory_stats_args val_remote_domain_memory_stats_args ;
2010-02-09 15:09:05 +03:00
remote_domain_attach_device_flags_args val_remote_domain_attach_device_flags_args ;
remote_domain_detach_device_flags_args val_remote_domain_detach_device_flags_args ;
2010-02-02 16:39:05 +03:00
remote_cpu_baseline_args val_remote_cpu_baseline_args ;
2010-02-03 17:10:13 +03:00
remote_domain_get_job_info_args val_remote_domain_get_job_info_args ;
2010-02-04 19:18:57 +03:00
remote_domain_abort_job_args val_remote_domain_abort_job_args ;
2010-03-01 23:32:35 +03:00
remote_storage_vol_wipe_args val_remote_storage_vol_wipe_args ;
2010-03-12 18:21:10 +03:00
remote_domain_migrate_set_max_downtime_args val_remote_domain_migrate_set_max_downtime_args ;
Remote driver & daemon impl of new event API
This wires up the remote driver to handle the new events APIs.
The public API allows an application to request a callback filters
events to a specific domain object, and register multiple callbacks
for the same event type. On the wire there are two strategies for
this
- Register multiple callbacks with the remote daemon, each
with filtering as needed
- Register only one callback per event type, with no filtering
Both approaches have potential inefficiency. In the first scheme,
the same event gets sent over the wire many times if multiple
callbacks are registered. With the second scheme, unneccessary
events get sent over the wire if a per-domain filter is set on
the client. The second scheme is far easier to implement though,
so this patch takes that approach.
* daemon/dispatch.h: Don't export remoteRelayDomainEvent since it
is no longer needed for unregistering callbacks, instead the
unique callback ID is used
* daemon/libvirtd.c, daemon/libvirtd.h: Track and unregister
callbacks based on callback ID, instead of function pointer
* daemon/remote.c: Switch over to using virConnectDomainEventRegisterAny
instead of legacy virConnectDomainEventRegister function. Refactor
remoteDispatchDomainEventSend() to cope with arbitrary event types
* src/driver.h, src/driver.c: Move verify() call into source file
instead of header, to avoid polluting the global namespace with
the verify function name
* src/remote/remote_driver.c: Implement new APIs for event
registration. Refactor processCallDispatchMessage() to cope
with arbitrary incoming event types. Merge remoteDomainQueueEvent()
into processCallDispatchMessage() to avoid duplication of code.
Rename remoteDomainReadEvent() to remoteDomainReadEventLifecycle()
* src/remote/remote_protocol.x: Define wire format for the new
virConnectDomainEventRegisterAny and virConnectDomainEventDeregisterAny
functions
2010-03-18 17:56:56 +03:00
remote_domain_events_register_any_args val_remote_domain_events_register_any_args ;
remote_domain_events_deregister_any_args val_remote_domain_events_deregister_any_args ;
2010-03-22 15:26:05 +03:00
remote_domain_update_device_flags_args val_remote_domain_update_device_flags_args ;
2010-03-25 20:46:03 +03:00
remote_nwfilter_lookup_by_name_args val_remote_nwfilter_lookup_by_name_args ;
remote_nwfilter_lookup_by_uuid_args val_remote_nwfilter_lookup_by_uuid_args ;
remote_nwfilter_get_xml_desc_args val_remote_nwfilter_get_xml_desc_args ;
remote_list_nwfilters_args val_remote_list_nwfilters_args ;
remote_nwfilter_define_xml_args val_remote_nwfilter_define_xml_args ;
remote_nwfilter_undefine_args val_remote_nwfilter_undefine_args ;
2010-04-01 12:54:12 +04:00
remote_domain_managed_save_args val_remote_domain_managed_save_args ;
remote_domain_has_managed_save_image_args val_remote_domain_has_managed_save_image_args ;
remote_domain_managed_save_remove_args val_remote_domain_managed_save_remove_args ;
2010-04-01 00:33:13 +04:00
remote_domain_snapshot_create_xml_args val_remote_domain_snapshot_create_xml_args ;
remote_domain_snapshot_dump_xml_args val_remote_domain_snapshot_dump_xml_args ;
remote_domain_snapshot_num_args val_remote_domain_snapshot_num_args ;
remote_domain_snapshot_list_names_args val_remote_domain_snapshot_list_names_args ;
remote_domain_snapshot_lookup_by_name_args val_remote_domain_snapshot_lookup_by_name_args ;
remote_domain_has_current_snapshot_args val_remote_domain_has_current_snapshot_args ;
remote_domain_snapshot_current_args val_remote_domain_snapshot_current_args ;
remote_domain_revert_to_snapshot_args val_remote_domain_revert_to_snapshot_args ;
remote_domain_snapshot_delete_args val_remote_domain_snapshot_delete_args ;
2010-04-27 23:29:15 +04:00
remote_domain_get_block_info_args val_remote_domain_get_block_info_args ;
2010-06-10 18:53:28 +04:00
remote_domain_create_with_flags_args val_remote_domain_create_with_flags_args ;