3#ifndef LIGHTLY_EDGE_RS_BINDINGS_EXT_H 
    4#define LIGHTLY_EDGE_RS_BINDINGS_EXT_H 
    6#include "lightly_edge_error.h" 
    7#include "lightly_edge_rs_bindings.h" 
    8#include "tl/expected.hpp" 
   10namespace lightly_edge_rs {
 
   13inline auto create_status(uint16_t code, 
const char *error_message) -> CStatus {
 
   14  return create_status_impl(code, error_message);
 
   19inline auto status_to_unexpected(CStatus *status)
 
   20    -> tl::unexpected<lightly_edge_sdk::Error> {
 
   22  if (status->error_message != 
nullptr) {
 
   23    message = status->error_message;
 
   24    free_status_message(status);
 
Error struct to hold error code and message.
Definition lightly_edge_error.h:20