skeleton wip

This commit is contained in:
2019-11-13 23:08:13 +01:00
parent 65e2247b17
commit ab4a18f685
11 changed files with 431 additions and 13 deletions

View File

@@ -0,0 +1,89 @@
/*!
* domo-iot.cpp
*
* Copyright (c) 2015-2019, NADAL Jean-Baptiste. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*
* @Author: NADAL Jean-Baptiste
* @Date: 13/11/2019
*
*/
/*-------------------------------- INCLUDES ---------------------------------*/
#include <event.h>
#include "domo-server.h"
/*! ----------------------------------------------------------------------------
* @fn DomoServer
*
* @brief Constructor of the Domo Server Object.
*/
DomoServer::DomoServer(void) : m_evt_loop(NULL)
{
}
/*! ----------------------------------------------------------------------------
* @fn ~DomoServer
*
* @brief Destructor of the Domo Server Object.
*/
DomoServer::~DomoServer(void)
{
}
/*! ----------------------------------------------------------------------------
* @fn setup
*
* @brief setup the Domo Server.
*/
bool DomoServer::setup(void)
{
if (m_broker.setup())
{
return false;
}
m_evt_loop = event_base_new();
if (m_evt_loop == NULL)
{
return false;
}
return true;
}
/*! ----------------------------------------------------------------------------
* @fn terminate
*
* @brief terminate the Domo Server.
*/
void DomoServer::terminate(void)
{
}
/*! ----------------------------------------------------------------------------
* @fn loop
*
* @brief main loop function.
*/
int DomoServer::loop(void)
{
return 0;
}