/**
 * @file network_stack.cpp
 * @brief NetworkStack component implementation
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "network_stack.hpp"
#include "logger.hpp"

static const char* TAG = "NetworkStack";

NetworkStack::NetworkStack()
    : m_isInitialized(false)
{
}

NetworkStack::~NetworkStack()
{
    deinitialize();
}

bool NetworkStack::initialize()
{
    // TODO: Implement initialization
    m_isInitialized = true;
    ASF_LOGI(TAG, 3100, asf::logger::Criticality::LOW, "NetworkStack initialized successfully");
    return true;
}

bool NetworkStack::deinitialize()
{
    if (!m_isInitialized)
    {
        return false;
    }

    // TODO: Implement deinitialization
    m_isInitialized = false;
    return true;
}

bool NetworkStack::isInitialized() const
{
    return m_isInitialized;
}
