op_xml_out.c File Reference

C utility routines for writing XML. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "op_xml_out.h"
Include dependency graph for op_xml_out.c:

Defines

#define MAX_BUF_LEN   2048

Functions

char const * xml_tag_name (tag_t tag)
void open_xml_element (tag_t tag, int with_attrs, char *buffer, size_t max)
void close_xml_element (tag_t tag, int has_nested, char *buffer, size_t max)
void init_xml_int_attr (tag_t attr, int value, char *buffer, size_t max)
void init_xml_dbl_attr (tag_t attr, double value, char *buffer, size_t max)
void init_xml_str_attr (tag_t attr, char const *str, char *buffer, size_t max)

Variables

char const * xml_tag_map []

Detailed Description

C utility routines for writing XML.

Remarks:
Copyright 2008 OProfile authors
Read the file COPYING
Author:
Dave Nomura

Define Documentation

#define MAX_BUF_LEN   2048

Function Documentation

void close_xml_element ( tag_t  tag,
int  has_nested,
char *  buffer,
size_t  max 
)
void init_xml_dbl_attr ( tag_t  attr,
double  value,
char *  buffer,
size_t  max 
)

References xml_tag_name().

Referenced by init_attr().

void init_xml_int_attr ( tag_t  attr,
int  value,
char *  buffer,
size_t  max 
)

References xml_tag_name().

Referenced by init_attr(), and xml_help_for_event().

void init_xml_str_attr ( tag_t  attr,
char const *  str,
char *  buffer,
size_t  max 
)
void open_xml_element ( tag_t  tag,
int  with_attrs,
char *  buffer,
size_t  max 
)
char const* xml_tag_name ( tag_t  tag  ) 

Variable Documentation

char const* xml_tag_map[]

Referenced by xml_tag_name().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1