blob: fa440dc466be5144557932d9a24c0ed039ccaf08 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* These stubs get linked in when there is no equivalent OS-specific
* implementation.
*/
#include "mgmt/mgmt.h"
#include "img_mgmt/img_mgmt_impl.h"
int __attribute__((weak))
img_mgmt_impl_erase_slot(void)
{
return MGMT_ERR_ENOTSUP;
}
int __attribute__((weak))
img_mgmt_impl_write_pending(int slot, bool permanent)
{
return MGMT_ERR_ENOTSUP;
}
int __attribute__((weak))
img_mgmt_impl_write_confirmed(void)
{
return MGMT_ERR_ENOTSUP;
}
int __attribute__((weak))
img_mgmt_impl_read(int slot, unsigned int offset, void *dst,
unsigned int num_bytes)
{
return MGMT_ERR_ENOTSUP;
}
int __attribute__((weak))
img_mgmt_impl_write_image_data(unsigned int offset, const void *data,
unsigned int num_bytes, bool last)
{
return MGMT_ERR_ENOTSUP;
}
int __attribute__((weak))
img_mgmt_impl_swap_type(void)
{
return MGMT_ERR_ENOTSUP;
}