libgpac
Documentation of the core library of GPAC
xml_ns.c File Reference
#include <gpac/internal/scenegraph_dev.h>
#include <gpac/nodes_svg.h>
#include <gpac/base_coding.h>
+ Include dependency graph for xml_ns.c:

Data Structures

struct  xml_att_def
 
struct  xml_elt_def
 

Enumerations

enum  {
  GF_SVG_ATTOPT_NONE = 0 , GF_SVG_ATTOPT_SMIL = 1 , GF_SVG_ATTOPT_TEXT = 2 , GF_SVG_ATTOPT_CURSOR = 3 ,
  GF_SVG_ATTOPT_LISTENER = 4 , GF_SVG_ATTOPT_FILTER = 5
}
 

Functions

void gf_xml_push_namespaces (GF_DOMNode *elt)
 
void gf_xml_pop_namespaces (GF_DOMNode *elt)
 
static u32 gf_xml_get_namespace (GF_DOMNode *elt, const char *attribute_name)
 
static char * gf_xml_get_namespace_qname (GF_DOMNode *elt, u32 ns)
 
u32 gf_xml_get_attribute_tag (GF_Node *elt, char *attribute_name, GF_NamespaceType ns)
 
u32 gf_xml_get_attribute_type (u32 tag)
 
const char * gf_svg_get_attribute_name (GF_Node *node, u32 tag)
 
GF_DOMAttributegf_xml_create_attribute (GF_Node *node, u32 tag)
 
GF_EXPORT u32 gf_xml_get_element_tag (const char *element_name, u32 ns)
 
const char * gf_xml_get_element_name (GF_Node *n)
 
GF_NamespaceType gf_xml_get_element_namespace (GF_Node *n)
 
u32 gf_node_get_attribute_count (GF_Node *node)
 
GF_Err gf_node_get_attribute_info (GF_Node *node, GF_FieldInfo *info)
 
void gf_node_delete_attributes (GF_Node *node)
 
SVGAttributegf_node_create_attribute_from_datatype (u32 data_type, u32 attribute_tag)
 
GF_EXPORT GF_Err gf_node_get_attribute_by_name (GF_Node *node, char *name, u32 xmlns_code, Bool create_if_not_found, Bool set_default, GF_FieldInfo *field)
 
static void attributes_set_default_value (GF_Node *node, SVGAttribute *att)
 
GF_EXPORT GF_Err gf_node_get_attribute_by_tag (GF_Node *node, u32 attribute_tag, Bool create_if_not_found, Bool set_default, GF_FieldInfo *field)
 
GF_EXPORT void gf_node_register_iri (GF_SceneGraph *sg, XMLRI *target)
 
GF_EXPORT void gf_node_unregister_iri (GF_SceneGraph *sg, XMLRI *target)
 
GF_Nodegf_sg_xml_node_clone (GF_SceneGraph *inScene, GF_Node *orig, GF_Node *cloned_parent, char *inst_id, Bool deep)
 
static u32 check_existing_file (char *base_file, char *ext, char *data, u32 data_size, u32 idx)
 
GF_EXPORT GF_Err gf_node_store_embedded_data (XMLRI *iri, const char *cache_dir, const char *base_filename)
 

Variables

enum { ... }  GF_SVGAttOption
 
static const struct xml_att_def xml_attributes []
 
static const struct xml_elt_def xml_elements []
 

Data Structure Documentation

◆ xml_att_def

struct xml_att_def
Data Fields
const char * name
u32 tag
u32 type
u32 opts
u32 xmlns

◆ xml_elt_def

struct xml_elt_def
Data Fields
const char * name
u32 tag
u32 xmlns

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GF_SVG_ATTOPT_NONE 
GF_SVG_ATTOPT_SMIL 
GF_SVG_ATTOPT_TEXT 
GF_SVG_ATTOPT_CURSOR 
GF_SVG_ATTOPT_LISTENER 
GF_SVG_ATTOPT_FILTER 

Function Documentation

◆ gf_xml_get_namespace()

static u32 gf_xml_get_namespace ( GF_DOMNode elt,
const char *  attribute_name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_xml_get_namespace_qname()

static char* gf_xml_get_namespace_qname ( GF_DOMNode elt,
u32  ns 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_xml_get_element_name()

const char* gf_xml_get_element_name ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_node_get_attribute_count()

u32 gf_node_get_attribute_count ( GF_Node node)
+ Here is the caller graph for this function:

◆ gf_node_get_attribute_info()

GF_Err gf_node_get_attribute_info ( GF_Node node,
GF_FieldInfo info 
)
+ Here is the caller graph for this function:

◆ gf_node_delete_attributes()

void gf_node_delete_attributes ( GF_Node node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_node_create_attribute_from_datatype()

SVGAttribute* gf_node_create_attribute_from_datatype ( u32  data_type,
u32  attribute_tag 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_node_get_attribute_by_name()

GF_EXPORT GF_Err gf_node_get_attribute_by_name ( GF_Node node,
char *  name,
u32  xmlns_code,
Bool  create_if_not_found,
Bool  set_default,
GF_FieldInfo field 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ attributes_set_default_value()

static void attributes_set_default_value ( GF_Node node,
SVGAttribute att 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_xml_node_clone()

GF_Node* gf_sg_xml_node_clone ( GF_SceneGraph *  inScene,
GF_Node orig,
GF_Node cloned_parent,
char *  inst_id,
Bool  deep 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_existing_file()

static u32 check_existing_file ( char *  base_file,
char *  ext,
char *  data,
u32  data_size,
u32  idx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ 

enum { ... } GF_SVGAttOption

◆ xml_attributes

const struct xml_att_def xml_attributes[]
static

◆ xml_elements

const struct xml_elt_def xml_elements[]
static