Greenbone Vulnerability Management Libraries
11.0.0
|
Go to the documentation of this file.
25 #ifndef _GVM_XMLUTILS_H
26 #define _GVM_XMLUTILS_H
31 #include <gnutls/gnutls.h>
int compare_entities(entity_t, entity_t)
Compare two XML entity.
entity_t add_entity(entities_t *, const char *, const char *)
Add an XML entity to a tree of entities.
char * entity_name(entity_t entity)
Get the name an entity.
int read_entity(gnutls_session_t *, entity_t *)
Read an XML entity tree from the manager.
char * entity_text(entity_t entity)
Get the text an entity.
entities_t entities
Children.
int read_string_c(gvm_connection_t *, GString **)
Read entity and text. Free the entity immediately.
const char * entity_attribute(entity_t, const char *)
Get an attribute of an entity.
void xml_string_append(GString *, const char *,...)
Append formatted escaped XML to a string.
int read_entity_and_text(gnutls_session_t *, entity_t *, char **)
Read an XML entity tree from the manager.
GHashTable * attributes
Attributes.
void xml_handle_start_element(context_data_t *, const gchar *, const gchar **, const gchar **)
Handle the start of an OMP XML element.
entity_t first_entity(entities_t)
Return the first entity from an entities_t.
void print_entity(FILE *, entity_t)
Print an XML entity.
GHashTable * find_attributes
void xml_handle_text(context_data_t *, const gchar *, gsize)
Handle additional text of an XML element.
int read_string(gnutls_session_t *, GString **)
Read entity and text. Free the entity immediately.
int try_read_entity(gnutls_session_t *, int, entity_t *)
Try read an XML entity tree from the manager.
int xml_count_entities(entities_t)
Count the number of entities.
GSList * current
The element currently being parsed.
int try_read_entity_and_string(gnutls_session_t *, int, entity_t *, GString **)
Try read an XML entity tree from the manager.
int read_entity_s(int, entity_t *)
Read an XML entity tree from the socket.
gboolean done
Flag which is true when the first element is closed.
int read_entity_and_string(gnutls_session_t *, entity_t *, GString **)
Try read an XML entity tree from the manager.
int read_entity_c(gvm_connection_t *, entity_t *)
Read an XML entity tree from the manager.
int read_entity_and_string_c(gvm_connection_t *, entity_t *, GString **)
Try read an XML entity tree from the manager.
int try_read_entity_c(gvm_connection_t *, int, entity_t *)
Try read an XML entity tree from the manager.
void print_entity_format(entity_t, gpointer indentation)
Print an XML entity to stdout, recursively printing its children.
GnuTLS based functions for server communication - header file.
Data for xml search functions.
void xml_handle_end_element(context_data_t *, const gchar *)
Handle the end of an XML element.
entity_t entity_child(entity_t, const char *)
Get a child of an entity.
entities_t next_entities(entities_t)
Return all the entities from an entities_t after the first.
int find_element_in_xml_file(gchar *, gchar *, GHashTable *)
Tests if an XML file contains an element with given attributes.
int parse_entity(const char *, entity_t *)
Read an XML entity tree from a string.
int read_entity_and_text_c(gvm_connection_t *, entity_t *, char **)
Read an XML entity tree from the manager.
GSList * first
The very first entity.
void print_entity_to_string(entity_t entity, GString *string)
Print an XML entity tree to a GString, appending it if string is not.
struct entity_s * entity_t
void free_entity(entity_t)
Free an entity, recursively.
GSList * entities_t
Entities.