From 1da7b161f8eb8e2afbb46e9e2904dc3973fc2458 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 15 Mar 2011 22:02:06 +0000 Subject: 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 --- content/hlcache.c | 6 ++++++ content/hlcache.h | 10 ++++++++++ 2 files changed, 16 insertions(+) (limited to 'content') 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 -- cgit v1.2.3