2019-07-14 20:59:56 +02:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017-2019 by Löwenware Ltd
|
|
|
|
* Please, refer LICENSE file for legal information
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file agent.c
|
|
|
|
* @author Ilja Kartašov <ik@lowenware.com>
|
|
|
|
* @brief
|
|
|
|
*
|
|
|
|
* @see https://lowenware.com/
|
|
|
|
*/
|
|
|
|
|
2019-07-29 11:31:10 +02:00
|
|
|
#include "surgard.h"
|
2019-07-14 20:59:56 +02:00
|
|
|
#include "agent.h"
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
agent_init(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
agent_release(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
agent_run_cycle(void)
|
|
|
|
{
|
2019-07-29 11:31:10 +02:00
|
|
|
int result = 1, rc;
|
2019-07-25 09:59:25 +02:00
|
|
|
|
2019-07-29 11:31:10 +02:00
|
|
|
if (!(rc = surgard_run_cycle())) {
|
2019-07-25 09:59:25 +02:00
|
|
|
result = rc;
|
|
|
|
}
|
2019-07-29 11:31:10 +02:00
|
|
|
|
|
|
|
return result;
|
2019-07-14 20:59:56 +02:00
|
|
|
}
|