diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-15 22:02:06 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-15 22:02:06 +0000 |
commit | 1da7b161f8eb8e2afbb46e9e2904dc3973fc2458 (patch) | |
tree | b8e3f8f4fdd19d316c12dc39d515f053a6723a9a /content | |
parent | b69816ff79aec1a472cdb184c45452d6926cf6f7 (diff) | |
download | netsurf-1da7b161f8eb8e2afbb46e9e2904dc3973fc2458.tar.gz netsurf-1da7b161f8eb8e2afbb46e9e2904dc3973fc2458.tar.bz2 |
Stop gtk printing from exploding if its unable to initialise the job
add interface to clone a high level cache handle
make generic printing core call new hlcache interface
svn path=/trunk/netsurf/; revision=12068
Diffstat (limited to 'content')
-rw-r--r-- | content/hlcache.c | 6 | ||||
-rw-r--r-- | content/hlcache.h | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/content/hlcache.c b/content/hlcache.c index d1da79509..a53db5d9f 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -370,6 +370,12 @@ nserror hlcache_handle_replace_callback(hlcache_handle *handle, return NSERROR_OK; } +nserror hlcache_handle_clone(hlcache_handle *handle, hlcache_handle **result) +{ + *result = NULL; + return NSERROR_CLONE_FAILED; +} + /****************************************************************************** * High-level cache internals * ******************************************************************************/ diff --git a/content/hlcache.h b/content/hlcache.h index 3006b9e4d..c4e10915a 100644 --- a/content/hlcache.h +++ b/content/hlcache.h @@ -165,4 +165,14 @@ nserror hlcache_handle_replace_callback(hlcache_handle *handle, */ struct content *hlcache_handle_get_content(const hlcache_handle *handle); +/** + * Clone a high level cache handle. + * + * \param handle The handle to clone. + * \param result The cloned handle. + * \return NSERROR_OK on success, appropriate error otherwise + * + */ +nserror hlcache_handle_clone(hlcache_handle *handle, hlcache_handle **result); + #endif |