2019-07-25 14:34:16 -04:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Backup Protocol Handler
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#ifndef COMMAND_BACKUP_PROTOCOL_H
|
|
|
|
#define COMMAND_BACKUP_PROTOCOL_H
|
|
|
|
|
|
|
|
#include "common/type/string.h"
|
|
|
|
#include "common/type/variantList.h"
|
|
|
|
#include "protocol/server.h"
|
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Constants
|
|
|
|
***********************************************************************************************************************************/
|
2021-03-16 13:09:34 -04:00
|
|
|
#define PROTOCOL_COMMAND_BACKUP_FILE "backupFile"
|
2019-07-25 14:34:16 -04:00
|
|
|
STRING_DECLARE(PROTOCOL_COMMAND_BACKUP_FILE_STR);
|
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Functions
|
|
|
|
***********************************************************************************************************************************/
|
2020-04-03 18:01:28 -04:00
|
|
|
// Process protocol requests
|
2021-03-16 13:09:34 -04:00
|
|
|
void backupFileProtocol(const VariantList *paramList, ProtocolServer *server);
|
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Protocol commands for ProtocolServerHandler arrays passed to protocolServerProcess()
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#define PROTOCOL_SERVER_HANDLER_BACKUP_LIST \
|
|
|
|
{.command = PROTOCOL_COMMAND_BACKUP_FILE, .handler = backupFileProtocol},
|
2019-07-25 14:34:16 -04:00
|
|
|
|
|
|
|
#endif
|