diff options
author | jcid <devnull@localhost> | 2007-10-07 00:36:34 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-10-07 00:36:34 +0200 |
commit | 93715c46a99c96d6c866968312691ec9ab0f6a03 (patch) | |
tree | 573f19ec6aa740844f53a7c0eb7114f04096bf64 /dpip/dpip.h |
Initial revision
Diffstat (limited to 'dpip/dpip.h')
-rw-r--r-- | dpip/dpip.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dpip/dpip.h b/dpip/dpip.h new file mode 100644 index 00000000..8a8623bc --- /dev/null +++ b/dpip/dpip.h @@ -0,0 +1,34 @@ +/* + * 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, char *attrname); + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __DPIP_H__ */ + |