2019-04-08 22:19:28 +02:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017-2019 by Löwenware Ltd
|
|
|
|
* Please, refer LICENSE file for legal information
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file mod-feedback.h
|
|
|
|
* @author Ilja Kartašov <ik@lowenware.com>
|
|
|
|
* @brief AISL feedback module header file
|
|
|
|
*
|
|
|
|
* @see https://lowenware.com/aisl/
|
|
|
|
*/
|
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
#ifndef FEEDBACK_H_6CC516E4_A7F2_4A9D_B467_75DCF6F58108
|
|
|
|
#define FEEDBACK_H_6CC516E4_A7F2_4A9D_B467_75DCF6F58108
|
2019-04-08 22:19:28 +02:00
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
#include <mods/context.h>
|
2019-04-17 10:17:27 +02:00
|
|
|
#include <mods/module.h>
|
2019-04-25 13:54:07 +02:00
|
|
|
#include <components/mail.h>
|
|
|
|
|
|
|
|
struct ax_feedback_cfg {
|
|
|
|
struct ax_mail_smtp smtp;
|
|
|
|
const char *end_point;
|
|
|
|
const char *name_email;
|
|
|
|
const char *name_msg;
|
|
|
|
const char *mail_subject;
|
|
|
|
const char *mail_from;
|
|
|
|
const char *mail_to;
|
2019-04-08 22:19:28 +02:00
|
|
|
};
|
|
|
|
|
2019-04-16 14:26:37 +02:00
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
struct ax_feedback {
|
|
|
|
struct ax_module root;
|
|
|
|
struct ax_mail_smtp smtp;
|
|
|
|
const char *name_email;
|
|
|
|
const char *name_msg;
|
|
|
|
const char *mail_subject;
|
|
|
|
const char *mail_from;
|
|
|
|
const char *mail_to;
|
|
|
|
uint16_t name_email_length;
|
|
|
|
uint16_t name_msg_length;
|
2019-04-08 22:19:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
typedef struct ax_feedback * AxFeedback;
|
2019-04-08 22:19:28 +02:00
|
|
|
|
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
AislStatus
|
|
|
|
ax_feedback_init(AxFeedback mod, const struct ax_feedback_cfg *cfg);
|
2019-04-08 22:19:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
void
|
2019-04-25 13:54:07 +02:00
|
|
|
ax_feedback_release(AxFeedback mod);
|
2019-04-08 22:19:28 +02:00
|
|
|
|
2019-04-25 13:54:07 +02:00
|
|
|
#endif /* !FEEDBACK_H */
|