You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
4.1 KiB
98 lines
4.1 KiB
/**
|
|
* Digital Voice Modem - Host Software
|
|
* GPLv2 Open Source. Use is subject to license terms.
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* @package DVM / Host Software
|
|
*
|
|
*/
|
|
/*
|
|
* Copyright (C) 2023 by Bryan Biedenkapp N2PLL
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
#if !defined(__REST_DEFINES_H__)
|
|
#define __REST_DEFINES_H__
|
|
|
|
#include "Defines.h"
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Constants
|
|
// ---------------------------------------------------------------------------
|
|
|
|
#define DVM_REST_RAND_MAX 0xfffffffffffffffe
|
|
|
|
#define PUT_AUTHENTICATE "/auth"
|
|
|
|
#define GET_VERSION "/version"
|
|
#define GET_STATUS "/status"
|
|
#define GET_VOICE_CH "/voice-ch"
|
|
|
|
#define PUT_MDM_MODE "/mdm/mode"
|
|
#define MODE_OPT_IDLE "idle"
|
|
#define MODE_OPT_LCKOUT "lockout"
|
|
#define MODE_OPT_FDMR "dmr"
|
|
#define MODE_OPT_FP25 "p25"
|
|
#define MODE_OPT_FNXDN "nxdn"
|
|
|
|
#define RID_CMD_P25_SET_MFID "p25-setmfid"
|
|
#define RID_CMD_PAGE "page"
|
|
#define RID_CMD_CHECK "check"
|
|
#define RID_CMD_INHIBIT "inhibit"
|
|
#define RID_CMD_UNINHIBIT "uninhibit"
|
|
#define RID_CMD_GAQ "group-aff-req"
|
|
#define RID_CMD_UREG "unit-reg"
|
|
|
|
#define PUT_MDM_KILL "/mdm/kill"
|
|
|
|
#define PUT_PERMIT_TG "/permit-tg"
|
|
#define PUT_GRANT_TG "/grant-tg"
|
|
#define GET_RELEASE_GRNTS "/release-grants"
|
|
#define GET_RELEASE_AFFS "/release-affs"
|
|
|
|
#define GET_RID_WHITELIST_BASE "/rid-whitelist/"
|
|
#define GET_RID_WHITELIST GET_RID_WHITELIST_BASE"(\\d+)"
|
|
#define GET_RID_BLACKLIST_BASE "/rid-blacklist/"
|
|
#define GET_RID_BLACKLIST GET_RID_BLACKLIST_BASE"(\\d+)"
|
|
|
|
#define GET_DMR_BEACON "/dmr/beacon"
|
|
#define GET_DMR_DEBUG_BASE "/dmr/debug/"
|
|
#define GET_DMR_DEBUG GET_DMR_DEBUG_BASE"(\\d+)/(\\d+)"
|
|
#define GET_DMR_DUMP_CSBK_BASE "/dmr/dump-csbk/"
|
|
#define GET_DMR_DUMP_CSBK GET_DMR_DUMP_CSBK_BASE"(\\d+)"
|
|
#define PUT_DMR_RID "/dmr/rid"
|
|
#define GET_DMR_CC_DEDICATED "/dmr/cc-enable"
|
|
#define GET_DMR_CC_BCAST "/dmr/cc-broadcast"
|
|
|
|
#define GET_P25_CC "/p25/cc"
|
|
//#define GET_P25_CC_FALLBACK_BASE "/p25/cc-fallback/"
|
|
//#define GET_P25_CC_FALLBACK GET_P25_CC_FALLBACK_BASE"(\\d+)"
|
|
#define GET_P25_DEBUG_BASE "/p25/debug/(\\d+)/(\\d+)"
|
|
#define GET_P25_DEBUG GET_P25_DEBUG_BASE"(\\d+)/(\\d+)"
|
|
#define GET_P25_DUMP_TSBK_BASE "/p25/dump-tsbk/(\\d+)"
|
|
#define GET_P25_DUMP_TSBK GET_P25_DUMP_TSBK_BASE"(\\d+)"
|
|
#define PUT_P25_RID "/p25/rid"
|
|
#define GET_P25_CC_DEDICATED "/p25/cc-enable"
|
|
#define GET_P25_CC_BCAST "/p25/cc-broadcast"
|
|
|
|
#define GET_NXDN_CC "/nxdn/cc"
|
|
#define GET_NXDN_DEBUG_BASE "/nxdn/debug/(\\d+)/(\\d+)"
|
|
#define GET_NXDN_DEBUG GET_NXDN_DEBUG_BASE"(\\d+)/(\\d+)"
|
|
#define GET_NXDN_DUMP_RCCH_BASE "/nxdn/dump-rcch/(\\d+)"
|
|
#define GET_NXDN_DUMP_RCCH GET_NXDN_DUMP_RCCH_BASE"(\\d+)"
|
|
#define GET_NXDN_CC_DEDICATED "/nxdn/cc-enable"
|
|
|
|
#endif // __REST_API_H__
|