SML_TAG
#define SML_TAG__NULL ((SML_TAG*)NULL)
#define SML_TAG__R_NULL ((SML_TAG**)NULL)
((r_tag) != ((SML_TAG**)(SML_TAG__NULL)))
SML_TAG *tags; /* tag subtags */
SML_TAG *smlAddTag(SML_TAG **r_tag, int a_index,
SML_TAG *a_subTag);
SML_TAG *tag, char *path);
char *smlConvertTagToString(SML_TAG *tag);
void smlDbgPrintTag(SML_TAG *a_tag, char *a_format, ...);
void smlDelTag(SML_TAG *tag, SML_TAG *sub_tag);
void smlDelParam(SML_TAG *tag, char *name);
SML_TAG *smlDup(SML_TAG *tag);
boolean_t smlFindAndDelTag(SML_TAG *tag, char *findTag);
void smlFreeTag(SML_TAG *tag);
char *smlGetElementName(SML_TAG *a_tag);
int smlGetNumParams(SML_TAG *a_tag);
char *smlGetParam(SML_TAG *tag, char *name);
char *smlGetParamF(SML_TAG *tag, char *format, ...);
void smlGetParam_r(SML_TAG *tag, char *name, char *buf,
char *smlGetParamByTag(SML_TAG *tag, int index,
char *smlGetParamByTagParam(SML_TAG *tag, int index,
char *smlGetParamName(SML_TAG *tag, int index);
SML_TAG *smlGetTag(SML_TAG *tag, int index);
SML_TAG *smlGetTagByName(SML_TAG *tag, int index, char *name);
SML_TAG *smlGetTagByTagParam(SML_TAG *tag, int index,
int smlLoadTagFromFile(SML_TAG **r_tag, char *a_fileName);
SML_TAG *smlNewTag(char *name);
boolean_t smlParamEq(SML_TAG *tag, char *findTag,
boolean_t smlParamEqF(SML_TAG *tag, char *findTag, char *findParam,
void smlPrintTag(SML_TAG *tag);
int smlReadOneTag(SML_TAG **r_tag, char *a_str);
int smlConvertStringToTag(SML_TAG **r_tag, char *str);
void smlSetFileStatInfo(SML_TAG **tag,
void smlSetParam(SML_TAG *tag, char *name, char *value);
void smlSetParamF(SML_TAG *tag, char *name, char *format, ...);
int smlWriteTagToFd(SML_TAG *tag, int fd);
int smlWriteTagToFile(SML_TAG *tag, char *filename);
SML_TAG *tag = SML_TAG__NULL;
SML_TAG *ntag;
smlReadOneTag(SML_TAG **r_tag, char *a_str)
SML_TAG *
SML_TAG *tag;
tag = (SML_TAG *)calloc(1, sizeof (SML_TAG));
smlConvertTagToString(SML_TAG *tag)
smlDbgPrintTag(SML_TAG *a_tag, char *a_format, ...)
smlDelParam(SML_TAG *tag, char *name)
static int _smlReadTag(SML_TAG **r_tag, char **a_str, char *parent);
SML_TAG *tag);
static void _smlFreeTag(SML_TAG *tag);
smlSetParamF(SML_TAG *tag, char *name, char *format, ...)
smlGetParamF(SML_TAG *tag, char *format, ...)
smlSetParam(SML_TAG *tag, char *name, char *value)
smlParamEqF(SML_TAG *tag, char *findTag, char *findParam, char *format, ...)
smlParamEq(SML_TAG *tag, char *findTag, char *findParam, char *str)
SML_TAG *rtag;
smlFindAndDelTag(SML_TAG *tag, char *findTag)
SML_TAG *rtag = SML_TAG__NULL;
SML_TAG *
smlDup(SML_TAG *tag)
SML_TAG *rtag = SML_TAG__NULL;
rtag = (SML_TAG *)calloc(1, sizeof (SML_TAG));
rtag->tags = (SML_TAG *)
calloc(1, sizeof (SML_TAG)*rtag->tags_num);
bzero(rtag->tags, sizeof (SML_TAG)*rtag->tags_num);
SML_TAG *stag;
sizeof (SML_TAG));
SML_TAG *
smlAddTag(SML_TAG **r_tag, int a_index, SML_TAG *a_subTag)
smlSetFileStatInfo(SML_TAG **tag, struct stat *statbuf, char *path)
SML_TAG *rtag;
SML_TAG *tag;
smlFstatCompareEq(struct stat *statbuf, SML_TAG *tag, char *path)
tag->tags = (SML_TAG *)realloc(tag->tags,
sizeof (SML_TAG) * tag->tags_num);
sizeof (SML_TAG) * (tag->tags_num - a_index - 1));
sizeof (SML_TAG));
_smlReadTag(SML_TAG **r_tag, char **a_str, char *parent)
SML_TAG *tag;
SML_TAG *tmp_tag;
smlDelTag(SML_TAG *tag, SML_TAG *sub_tag)
tag = (SML_TAG *)calloc(1, sizeof (SML_TAG));
sizeof (SML_TAG) *(tag->tags_num - index - 1));
tag->tags = (SML_TAG *)realloc(tag->tags,
sizeof (SML_TAG) *tag->tags_num);
sizeof (SML_TAG));
tag->tags = (SML_TAG *)realloc(tag->tags,
sizeof (SML_TAG) *tag->tags_num);
_smlWriteSimpleTag(char **a_str, SML_TAG *tag)
_smlFreeTag(SML_TAG *tag)
smlFreeTag(SML_TAG *tag)
bzero(tag->tags, sizeof (SML_TAG)*tag->tags_num);
bzero(tag, sizeof (SML_TAG));
smlGetNumParams(SML_TAG *a_tag)
smlGetParam_r(SML_TAG *tag, char *name, char *buf, int bufLen)
smlGetParam(SML_TAG *tag, char *name)
smlGetParamName(SML_TAG *tag, int index)
smlGetParamByTag(SML_TAG *tag, int index,
SML_TAG *rtag;
SML_TAG *
smlGetTagByTagParam(SML_TAG *tag, int index,
smlGetParamByTagParam(SML_TAG *tag, int index,
smlGetElementName(SML_TAG *a_tag)
SML_TAG *
smlGetTag(SML_TAG *tag, int index)
SML_TAG *
smlGetTagByName(SML_TAG *tag, int index, char *name)
smlConvertStringToTag(SML_TAG **r_tag, char *str)
SML_TAG *tag = SML_TAG__NULL;
SML_TAG *tmp_tag;
tag->tags = (SML_TAG *)realloc(tag->tags,
sizeof (SML_TAG) *tag->tags_num);
sizeof (SML_TAG));
SML_TAG *tag;
SML_TAG *ntag;