/*
* This file is part of PKM (Persistent Knowledge Monitor).
* Copyright (c) 2020 Capgemini Group, Commissariat à l'énergie atomique et aux énergies alternatives,
* OW2, Sysgo AG, Technikon, Tree Technology, Universitat Politècnica de València.
*
* PKM is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation.
*
* PKM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with PKM. If not, see <https://www.gnu.org/licenses/>.
*/
/** Update C source code
*
* @memberof PKM
* @instance
* @param {string} dbName - Database name
* @param {Array.<Object>} c_source_code_documents - C source code documents following schema from pkm-c-source-code-schema-1.0.0.json
* @param {Object} [options] - options
*
* @return Promise a promise
*/
function update_c_source_code(dbName, c_source_code_documents, options = {})
{
return this.update_documents(dbName, 'sourcecodeC', c_source_code_documents, { ...options, signature : { sourceFile : 1 } });
}
module.exports.update_c_source_code = update_c_source_code;