view dpip/dpip.h @ 1037:a72e5506e280

Implemented Instant client-side redirects (META refresh with delay=0) http://www.w3.org/TR/2008/NOTE-WCAG20-TECHS-20081211/H76.html
author Jorge Arellano Cid <jcid@dillo.org>
date Sat, 18 Apr 2009 16:16:18 -0400
parents 7a76f872ce73
children b912173aecd1
line wrap: on
line source
/*
 * Library for dealing with dpip tags (dillo plugin protocol tags).
 */

#ifndef __DPIP_H__
#define __DPIP_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


/*
 * Printf like function for building dpip commands.
 * It takes care of dpip escaping of its arguments.
 * NOTE : It ONLY accepts string parameters, and
 *        only one %s per parameter.
 */
char *a_Dpip_build_cmd(const char *format, ...);

/*
 * Task: given a tag and an attribute name, return its value.
 *       (dpip character escaping is removed here)
 * Return value: the attribute value, or NULL if not present or malformed.
 */
char *a_Dpip_get_attr(char *tag, size_t tagsize, const char *attrname);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __DPIP_H__ */