diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 18:24:45 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 18:24:45 +0000 |
commit | 50bdb0bb5577944a150dfae5cd6a6a47cbf30b1c (patch) | |
tree | c9cecf2a43c19e4d053b52302166ae34b3860638 /include/libwapcaplet | |
parent | e091800dd4e21e7bd612aebdacae8f2029acdc1e (diff) | |
download | libwapcaplet-50bdb0bb5577944a150dfae5cd6a6a47cbf30b1c.tar.gz libwapcaplet-50bdb0bb5577944a150dfae5cd6a6a47cbf30b1c.tar.bz2 |
Add simple accessors for data and length
svn path=/trunk/libwapcaplet/; revision=6509
Diffstat (limited to 'include/libwapcaplet')
-rw-r--r-- | include/libwapcaplet/libwapcaplet.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/libwapcaplet/libwapcaplet.h b/include/libwapcaplet/libwapcaplet.h index ded5d58..c3b99ea 100644 --- a/include/libwapcaplet/libwapcaplet.h +++ b/include/libwapcaplet/libwapcaplet.h @@ -110,5 +110,21 @@ extern lwc_error lwc_context_string_caseless_isequal(lwc_context *ctx, lwc_string *str1, lwc_string *str2, bool *ret); +/** + * Retrieve the data pointer for an interned string. + * + * @note The data we point at belongs to the string and will + * die with the string. Keep a ref if you need it. + */ +extern const char *lwc_string_data(lwc_string *str); + +/** + * Retrieve the data length for an interned string. + * + * @note The data we point at belongs to the string and will + * die with the string. Keep a ref if you need it. + */ +extern size_t lwc_string_length(lwc_string *str); + #endif /* libwapcaplet_h_ */ |