From d8ff49d55c04e54f107b39b332df82ddb4290551 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 14 Jan 2014 11:15:25 -0500 Subject: [PATCH] added placeholder janus functions --- openbr/janus | 2 +- openbr/janus.cpp | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/openbr/janus b/openbr/janus index e5ab461..0eaa00f 160000 --- a/openbr/janus +++ b/openbr/janus @@ -1 +1 @@ -Subproject commit e5ab46119a65d936cb765e8515d5cec0b4cb958f +Subproject commit 0eaa00f19256fee2f24033ff68b526ea6320624d diff --git a/openbr/janus.cpp b/openbr/janus.cpp index 46a6475..3f6f75f 100644 --- a/openbr/janus.cpp +++ b/openbr/janus.cpp @@ -80,7 +80,7 @@ janus_error janus_finalize_template(janus_incomplete_template incomplete_templat templateBytes = currentTemplateBytes; if (templateBytes != currentTemplateBytes) return JANUS_UNKNOWN_ERROR; - if (*bytes + templateBytes > JANUS_MAX_TEMPLATE_SIZE) + if (*bytes + templateBytes > janus_max_template_size()) break; memcpy(pos, m.data, templateBytes); *bytes += templateBytes; @@ -126,3 +126,17 @@ janus_error janus_initialize_gallery(janus_incomplete_gallery *incomplete_galler *incomplete_gallery = new janus_incomplete_gallery_type(); return JANUS_SUCCESS; } + +janus_error janus_add_template(const janus_template template_, const size_t bytes, const janus_template_id template_id, janus_incomplete_gallery incomplete_gallery) +{ + (void) bytes; + incomplete_gallery->templates.append(QPair(template_, template_id)); + return JANUS_SUCCESS; +} + +janus_error janus_finalize_gallery(janus_incomplete_gallery incomplete_gallery, const char *gallery_file) +{ + (void) incomplete_gallery; + (void) gallery_file; + return JANUS_SUCCESS; +} -- libgit2 0.21.4