Commit d8ff49d55c04e54f107b39b332df82ddb4290551
1 parent
5386d69d
added placeholder janus functions
Showing
2 changed files
with
16 additions
and
2 deletions
openbr/janus.cpp
| @@ -80,7 +80,7 @@ janus_error janus_finalize_template(janus_incomplete_template incomplete_templat | @@ -80,7 +80,7 @@ janus_error janus_finalize_template(janus_incomplete_template incomplete_templat | ||
| 80 | templateBytes = currentTemplateBytes; | 80 | templateBytes = currentTemplateBytes; |
| 81 | if (templateBytes != currentTemplateBytes) | 81 | if (templateBytes != currentTemplateBytes) |
| 82 | return JANUS_UNKNOWN_ERROR; | 82 | return JANUS_UNKNOWN_ERROR; |
| 83 | - if (*bytes + templateBytes > JANUS_MAX_TEMPLATE_SIZE) | 83 | + if (*bytes + templateBytes > janus_max_template_size()) |
| 84 | break; | 84 | break; |
| 85 | memcpy(pos, m.data, templateBytes); | 85 | memcpy(pos, m.data, templateBytes); |
| 86 | *bytes += templateBytes; | 86 | *bytes += templateBytes; |
| @@ -126,3 +126,17 @@ janus_error janus_initialize_gallery(janus_incomplete_gallery *incomplete_galler | @@ -126,3 +126,17 @@ janus_error janus_initialize_gallery(janus_incomplete_gallery *incomplete_galler | ||
| 126 | *incomplete_gallery = new janus_incomplete_gallery_type(); | 126 | *incomplete_gallery = new janus_incomplete_gallery_type(); |
| 127 | return JANUS_SUCCESS; | 127 | return JANUS_SUCCESS; |
| 128 | } | 128 | } |
| 129 | + | ||
| 130 | +janus_error janus_add_template(const janus_template template_, const size_t bytes, const janus_template_id template_id, janus_incomplete_gallery incomplete_gallery) | ||
| 131 | +{ | ||
| 132 | + (void) bytes; | ||
| 133 | + incomplete_gallery->templates.append(QPair<janus_template, janus_template_id>(template_, template_id)); | ||
| 134 | + return JANUS_SUCCESS; | ||
| 135 | +} | ||
| 136 | + | ||
| 137 | +janus_error janus_finalize_gallery(janus_incomplete_gallery incomplete_gallery, const char *gallery_file) | ||
| 138 | +{ | ||
| 139 | + (void) incomplete_gallery; | ||
| 140 | + (void) gallery_file; | ||
| 141 | + return JANUS_SUCCESS; | ||
| 142 | +} |