XML parser and serializer for topology objects. More...
#include <Padico/Puk.h>#include <Padico/Module.h>#include "Topology.h"#include "Topology-internals.h"#include <netinet/in.h>#include <arpa/inet.h>
Go to the source code of this file.
Variables | |
| struct puk_mod_binary_s | padico_mod_binary__Topology |
Detailed Description
XML parser and serializer for topology objects.
Definition in file topo-xml.c.
Function Documentation
◆ __attribute__()
| __attribute__ | ( | (visibility("internal")) | ) |
Init the parser.
Definition at line 744 of file topo-xml.c.
References done, NULL, topo_binding_end_handler(), topo_host_end_handler(), topo_host_start_handler(), topo_hostname_end_handler(), topo_hwaddr_end_handler(), topo_lstopo_end_handler(), topo_network_end_handler(), topo_node_end_handler(), topo_node_start_handler(), topo_performance_end_handler(), and topo_property_end_handler().
◆ na_bindings_serialize()
|
static |
Definition at line 153 of file topo-xml.c.
References assert(), b, done, i, NULL, s, and topo_binding_serialize().
Referenced by padico_topo_host_serialize(), and padico_topo_node_serialize().
◆ padico_module_import_initializer__Topology()
Definition at line 39 of file topo-xml.c.
◆ topo_binding_end_handler()
|
static |
Definition at line 593 of file topo-xml.c.
References done, e, i, network, NULL, padico_topo_network_getbyid(), topo_binding_s::props, topo_binding_create(), and topo_property_destroy().
Referenced by __attribute__().
◆ topo_binding_serialize()
|
static |
Definition at line 70 of file topo-xml.c.
References topo_address_s::_addr_storage, assert(), b, topo_perf_s::bw, done, topo_address_s::family, filter, topo_perf_s::lat, NULL, p, padico_topo_network_getname(), s, topo_address_s::size, topo_filter_policy_getname(), topo_filter_protocol_getname(), TOPO_PROPERTY_ADDR, TOPO_PROPERTY_FILTER, TOPO_PROPERTY_GW_ADDR, TOPO_PROPERTY_GW_HWADDR, TOPO_PROPERTY_HOSTNAME, TOPO_PROPERTY_HWADDR, TOPO_PROPERTY_INDEX, TOPO_PROPERTY_PERF, and TOPO_PROPERTY_ROUTE.
Referenced by na_bindings_serialize(), and padico_topo_network_serialize().
◆ topo_host_end_handler()
|
static |
Definition at line 388 of file topo-xml.c.
References done, e, host, topo_property_s::hwaddr, i, topo_property_s::label, NULL, padico_topo_host_add_name(), padico_topo_host_add_service(), padico_topo_host_getproperty(), padico_topo_hwaddr_add(), topo_host_s::props, topo_binding_bind_host(), topo_property_destroy(), TOPO_PROPERTY_MISC, TOPO_PROPERTY_SERVICE, and topo_property_s::value.
Referenced by __attribute__().
◆ topo_host_start_handler()
|
static |
Definition at line 374 of file topo-xml.c.
References done, e, host, padico_topo_host_create(), and topo_host_lookup().
Referenced by __attribute__().
◆ topo_hostname_end_handler()
|
static |
Definition at line 706 of file topo-xml.c.
References done, e, and topo_hostname_s::resolvable.
Referenced by __attribute__().
◆ topo_hostname_serialize()
|
static |
Definition at line 58 of file topo-xml.c.
Referenced by padico_topo_host_serialize().
◆ topo_hwaddr_end_handler()
|
static |
Definition at line 686 of file topo-xml.c.
References topo_property_s::addr, done, e, topo_property_s::hwaddr, topo_property_s::index, name, NULL, and padico_topo_hwaddr_create().
Referenced by __attribute__().
◆ topo_hwaddr_serialize()
|
static |
Definition at line 46 of file topo-xml.c.
Referenced by padico_topo_host_serialize().
◆ topo_lstopo_end_handler()
|
static |
Definition at line 726 of file topo-xml.c.
References done, e, NULL, padico_na_topology_serialize(), PADICO_TOPO_SCOPE_ALL, PADICO_TOPO_SCOPE_HOST, PADICO_TOPO_SCOPE_NODE, and rc.
Referenced by __attribute__().
◆ topo_network_end_handler()
|
static |
Definition at line 637 of file topo-xml.c.
References topo_perf_s::bw, done, e, topo_binding_s::entity, i, topo_net_entity_s::kind, topo_perf_s::lat, network, topo_net_entity_s::network, NULL, padico_topo_network_create(), padico_topo_network_getbyid(), PADICO_TOPO_SCOPE_HOST, PADICO_TOPO_SCOPE_NODE, topo_network_s::perf, topo_binding_merge(), and topo_network_s::uplink.
Referenced by __attribute__().
◆ topo_node_end_handler()
|
static |
Definition at line 351 of file topo-xml.c.
References done, e, i, node, NULL, and topo_binding_bind_node().
Referenced by __attribute__().
◆ topo_node_start_handler()
|
static |
Definition at line 299 of file topo-xml.c.
References boot_id, topo_node_s::canonical_nodename, done, e, host, name, node, NULL, padico_topo_getnodebyname(), padico_topo_getnodebyuuid(), padico_topo_host_getnodes(), padico_topo_host_resolvebyname(), padico_topo_node_vect_t, topo_node_create(), and uuid.
Referenced by __attribute__().
◆ topo_performance_end_handler()
|
static |
Definition at line 716 of file topo-xml.c.
References topo_perf_s::bw, done, e, and topo_perf_s::lat.
Referenced by __attribute__().
◆ topo_property_end_handler()
|
static |
Definition at line 448 of file topo-xml.c.
References _PADICO_TOPO_FILTER_NONE, topo_property_s::addr, done, e, topo_network_s::family, topo_property_s::ifname, network, NULL, padico_topo_network_getbyid(), port, topo_filter_policy_getbyname(), topo_filter_protocol_getnumber(), TOPO_HWADDR_NAMSIZ, TOPO_PROPERTY_ADDR, TOPO_PROPERTY_FILTER, TOPO_PROPERTY_GW_ADDR, TOPO_PROPERTY_HOSTNAME, TOPO_PROPERTY_HWADDR, TOPO_PROPERTY_INDEX, TOPO_PROPERTY_MISC, TOPO_PROPERTY_PERF, TOPO_PROPERTY_ROUTE, and TOPO_PROPERTY_SERVICE.
Referenced by __attribute__().
Variable Documentation
◆ padico_mod_binary__Topology
|
extern |
Definition at line 78 of file topology.c.