1*4a64e381SAndroid Build Coastguard Worker /* 2*4a64e381SAndroid Build Coastguard Worker * Copyright (c) 2016-2017, The OpenThread Authors. 3*4a64e381SAndroid Build Coastguard Worker * All rights reserved. 4*4a64e381SAndroid Build Coastguard Worker * 5*4a64e381SAndroid Build Coastguard Worker * Redistribution and use in source and binary forms, with or without 6*4a64e381SAndroid Build Coastguard Worker * modification, are permitted provided that the following conditions are met: 7*4a64e381SAndroid Build Coastguard Worker * 1. Redistributions of source code must retain the above copyright 8*4a64e381SAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer. 9*4a64e381SAndroid Build Coastguard Worker * 2. Redistributions in binary form must reproduce the above copyright 10*4a64e381SAndroid Build Coastguard Worker * notice, this list of conditions and the following disclaimer in the 11*4a64e381SAndroid Build Coastguard Worker * documentation and/or other materials provided with the distribution. 12*4a64e381SAndroid Build Coastguard Worker * 3. Neither the name of the copyright holder nor the 13*4a64e381SAndroid Build Coastguard Worker * names of its contributors may be used to endorse or promote products 14*4a64e381SAndroid Build Coastguard Worker * derived from this software without specific prior written permission. 15*4a64e381SAndroid Build Coastguard Worker * 16*4a64e381SAndroid Build Coastguard Worker * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17*4a64e381SAndroid Build Coastguard Worker * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18*4a64e381SAndroid Build Coastguard Worker * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*4a64e381SAndroid Build Coastguard Worker * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 20*4a64e381SAndroid Build Coastguard Worker * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21*4a64e381SAndroid Build Coastguard Worker * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22*4a64e381SAndroid Build Coastguard Worker * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23*4a64e381SAndroid Build Coastguard Worker * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24*4a64e381SAndroid Build Coastguard Worker * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25*4a64e381SAndroid Build Coastguard Worker * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26*4a64e381SAndroid Build Coastguard Worker * POSSIBILITY OF SUCH DAMAGE. 27*4a64e381SAndroid Build Coastguard Worker */ 28*4a64e381SAndroid Build Coastguard Worker 29*4a64e381SAndroid Build Coastguard Worker /** 30*4a64e381SAndroid Build Coastguard Worker * @file 31*4a64e381SAndroid Build Coastguard Worker * This file includes definitions for Thread URIs. 32*4a64e381SAndroid Build Coastguard Worker */ 33*4a64e381SAndroid Build Coastguard Worker 34*4a64e381SAndroid Build Coastguard Worker #ifndef OTBR_AGENT_THREAD_URIS_HPP_ 35*4a64e381SAndroid Build Coastguard Worker #define OTBR_AGENT_THREAD_URIS_HPP_ 36*4a64e381SAndroid Build Coastguard Worker 37*4a64e381SAndroid Build Coastguard Worker namespace otbr { 38*4a64e381SAndroid Build Coastguard Worker 39*4a64e381SAndroid Build Coastguard Worker /** 40*4a64e381SAndroid Build Coastguard Worker * The URI Path for Address Query. 41*4a64e381SAndroid Build Coastguard Worker */ 42*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ADDRESS_QUERY "a/aq" 43*4a64e381SAndroid Build Coastguard Worker 44*4a64e381SAndroid Build Coastguard Worker /** 45*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ADDRESS_NOTIFY 46*4a64e381SAndroid Build Coastguard Worker * 47*4a64e381SAndroid Build Coastguard Worker * The URI Path for Address Notify. 48*4a64e381SAndroid Build Coastguard Worker */ 49*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ADDRESS_NOTIFY "a/an" 50*4a64e381SAndroid Build Coastguard Worker 51*4a64e381SAndroid Build Coastguard Worker /** 52*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ADDRESS_ERROR 53*4a64e381SAndroid Build Coastguard Worker * 54*4a64e381SAndroid Build Coastguard Worker * The URI Path for Address Error. 55*4a64e381SAndroid Build Coastguard Worker */ 56*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ADDRESS_ERROR "a/ae" 57*4a64e381SAndroid Build Coastguard Worker 58*4a64e381SAndroid Build Coastguard Worker /** 59*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ADDRESS_RELEASE 60*4a64e381SAndroid Build Coastguard Worker * 61*4a64e381SAndroid Build Coastguard Worker * The URI Path for Address Release. 62*4a64e381SAndroid Build Coastguard Worker */ 63*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ADDRESS_RELEASE "a/ar" 64*4a64e381SAndroid Build Coastguard Worker 65*4a64e381SAndroid Build Coastguard Worker /** 66*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ADDRESS_SOLICIT 67*4a64e381SAndroid Build Coastguard Worker * 68*4a64e381SAndroid Build Coastguard Worker * The URI Path for Address Solicit. 69*4a64e381SAndroid Build Coastguard Worker */ 70*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ADDRESS_SOLICIT "a/as" 71*4a64e381SAndroid Build Coastguard Worker 72*4a64e381SAndroid Build Coastguard Worker /** 73*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ACTIVE_GET 74*4a64e381SAndroid Build Coastguard Worker * 75*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_ACTIVE_GET 76*4a64e381SAndroid Build Coastguard Worker */ 77*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ACTIVE_GET "c/ag" 78*4a64e381SAndroid Build Coastguard Worker 79*4a64e381SAndroid Build Coastguard Worker /** 80*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ACTIVE_SET 81*4a64e381SAndroid Build Coastguard Worker * 82*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_ACTIVE_SET 83*4a64e381SAndroid Build Coastguard Worker */ 84*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ACTIVE_SET "c/as" 85*4a64e381SAndroid Build Coastguard Worker 86*4a64e381SAndroid Build Coastguard Worker /** 87*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_DATASET_CHANGED 88*4a64e381SAndroid Build Coastguard Worker * 89*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_DATASET_CHANGED 90*4a64e381SAndroid Build Coastguard Worker */ 91*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_DATASET_CHANGED "c/dc" 92*4a64e381SAndroid Build Coastguard Worker 93*4a64e381SAndroid Build Coastguard Worker /** 94*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ENERGY_SCAN 95*4a64e381SAndroid Build Coastguard Worker * 96*4a64e381SAndroid Build Coastguard Worker * The URI Path for Energy Scan 97*4a64e381SAndroid Build Coastguard Worker */ 98*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ENERGY_SCAN "c/es" 99*4a64e381SAndroid Build Coastguard Worker 100*4a64e381SAndroid Build Coastguard Worker /** 101*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ENERGY_REPORT 102*4a64e381SAndroid Build Coastguard Worker * 103*4a64e381SAndroid Build Coastguard Worker * The URI Path for Energy Report 104*4a64e381SAndroid Build Coastguard Worker */ 105*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ENERGY_REPORT "c/er" 106*4a64e381SAndroid Build Coastguard Worker 107*4a64e381SAndroid Build Coastguard Worker /** 108*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_PENDING_GET 109*4a64e381SAndroid Build Coastguard Worker * 110*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_PENDING_GET 111*4a64e381SAndroid Build Coastguard Worker */ 112*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_PENDING_GET "c/pg" 113*4a64e381SAndroid Build Coastguard Worker 114*4a64e381SAndroid Build Coastguard Worker /** 115*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_PENDING_SET 116*4a64e381SAndroid Build Coastguard Worker * 117*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_PENDING_SET 118*4a64e381SAndroid Build Coastguard Worker */ 119*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_PENDING_SET "c/ps" 120*4a64e381SAndroid Build Coastguard Worker 121*4a64e381SAndroid Build Coastguard Worker /** 122*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_SERVER_DATA 123*4a64e381SAndroid Build Coastguard Worker * 124*4a64e381SAndroid Build Coastguard Worker * The URI Path for Server Data Registration. 125*4a64e381SAndroid Build Coastguard Worker */ 126*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_SERVER_DATA "a/sd" 127*4a64e381SAndroid Build Coastguard Worker 128*4a64e381SAndroid Build Coastguard Worker /** 129*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_ANNOUNCE_BEGIN 130*4a64e381SAndroid Build Coastguard Worker * 131*4a64e381SAndroid Build Coastguard Worker * The URI Path for Announce Begin. 132*4a64e381SAndroid Build Coastguard Worker */ 133*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_ANNOUNCE_BEGIN "c/ab" 134*4a64e381SAndroid Build Coastguard Worker 135*4a64e381SAndroid Build Coastguard Worker /** 136*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_RELAY_RX 137*4a64e381SAndroid Build Coastguard Worker * 138*4a64e381SAndroid Build Coastguard Worker * The URI Path for Relay RX. 139*4a64e381SAndroid Build Coastguard Worker */ 140*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_RELAY_RX "c/rx" 141*4a64e381SAndroid Build Coastguard Worker 142*4a64e381SAndroid Build Coastguard Worker /** 143*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_RELAY_TX 144*4a64e381SAndroid Build Coastguard Worker * 145*4a64e381SAndroid Build Coastguard Worker * The URI Path for Relay TX. 146*4a64e381SAndroid Build Coastguard Worker */ 147*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_RELAY_TX "c/tx" 148*4a64e381SAndroid Build Coastguard Worker 149*4a64e381SAndroid Build Coastguard Worker /** 150*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_JOINER_FINALIZE 151*4a64e381SAndroid Build Coastguard Worker * 152*4a64e381SAndroid Build Coastguard Worker * The URI Path for Joiner Finalize 153*4a64e381SAndroid Build Coastguard Worker */ 154*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_JOINER_FINALIZE "c/jf" 155*4a64e381SAndroid Build Coastguard Worker 156*4a64e381SAndroid Build Coastguard Worker /** 157*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_JOINER_ENTRUST 158*4a64e381SAndroid Build Coastguard Worker * 159*4a64e381SAndroid Build Coastguard Worker * The URI Path for Joiner Entrust 160*4a64e381SAndroid Build Coastguard Worker */ 161*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_JOINER_ENTRUST "c/je" 162*4a64e381SAndroid Build Coastguard Worker 163*4a64e381SAndroid Build Coastguard Worker /** 164*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_LEADER_PETITION 165*4a64e381SAndroid Build Coastguard Worker * 166*4a64e381SAndroid Build Coastguard Worker * The URI Path for Leader Petition 167*4a64e381SAndroid Build Coastguard Worker */ 168*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_LEADER_PETITION "c/lp" 169*4a64e381SAndroid Build Coastguard Worker 170*4a64e381SAndroid Build Coastguard Worker /** 171*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_LEADER_KEEP_ALIVE 172*4a64e381SAndroid Build Coastguard Worker * 173*4a64e381SAndroid Build Coastguard Worker * The URI Path for Leader Keep Alive 174*4a64e381SAndroid Build Coastguard Worker */ 175*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_LEADER_KEEP_ALIVE "c/la" 176*4a64e381SAndroid Build Coastguard Worker 177*4a64e381SAndroid Build Coastguard Worker /** 178*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_PANID_CONFLICT 179*4a64e381SAndroid Build Coastguard Worker * 180*4a64e381SAndroid Build Coastguard Worker * The URI Path for PAN ID Conflict 181*4a64e381SAndroid Build Coastguard Worker */ 182*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_PANID_CONFLICT "c/pc" 183*4a64e381SAndroid Build Coastguard Worker 184*4a64e381SAndroid Build Coastguard Worker /** 185*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_PANID_QUERY 186*4a64e381SAndroid Build Coastguard Worker * 187*4a64e381SAndroid Build Coastguard Worker * The URI Path for PAN ID Query 188*4a64e381SAndroid Build Coastguard Worker */ 189*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_PANID_QUERY "c/pq" 190*4a64e381SAndroid Build Coastguard Worker 191*4a64e381SAndroid Build Coastguard Worker /** 192*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_COMMISSIONER_GET 193*4a64e381SAndroid Build Coastguard Worker * 194*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_COMMISSIONER_GET 195*4a64e381SAndroid Build Coastguard Worker */ 196*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_COMMISSIONER_GET "c/cg" 197*4a64e381SAndroid Build Coastguard Worker 198*4a64e381SAndroid Build Coastguard Worker /** 199*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_COMMISSIONER_SET 200*4a64e381SAndroid Build Coastguard Worker * 201*4a64e381SAndroid Build Coastguard Worker * The URI Path for MGMT_COMMISSIONER_SET 202*4a64e381SAndroid Build Coastguard Worker */ 203*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_COMMISSIONER_SET "c/cs" 204*4a64e381SAndroid Build Coastguard Worker 205*4a64e381SAndroid Build Coastguard Worker /** 206*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_COMMISSIONER_PETITION 207*4a64e381SAndroid Build Coastguard Worker * 208*4a64e381SAndroid Build Coastguard Worker * The URI Path for Commissioner Petition. 209*4a64e381SAndroid Build Coastguard Worker */ 210*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_COMMISSIONER_PETITION "c/cp" 211*4a64e381SAndroid Build Coastguard Worker 212*4a64e381SAndroid Build Coastguard Worker /** 213*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_COMMISSIONER_KEEP_ALIVE 214*4a64e381SAndroid Build Coastguard Worker * 215*4a64e381SAndroid Build Coastguard Worker * The URI Path for Commissioner Keep Alive. 216*4a64e381SAndroid Build Coastguard Worker */ 217*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_COMMISSIONER_KEEP_ALIVE "c/ca" 218*4a64e381SAndroid Build Coastguard Worker 219*4a64e381SAndroid Build Coastguard Worker /** 220*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_DIAGNOSTIC_GET_REQUEST 221*4a64e381SAndroid Build Coastguard Worker * 222*4a64e381SAndroid Build Coastguard Worker * The URI Path for Network Diagnostic Get Request. 223*4a64e381SAndroid Build Coastguard Worker */ 224*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_DIAGNOSTIC_GET_REQUEST "d/dg" 225*4a64e381SAndroid Build Coastguard Worker 226*4a64e381SAndroid Build Coastguard Worker /** 227*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_DIAGNOSTIC_GET_QUERY 228*4a64e381SAndroid Build Coastguard Worker * 229*4a64e381SAndroid Build Coastguard Worker * The URI Path for Network Diagnostic Get Query. 230*4a64e381SAndroid Build Coastguard Worker */ 231*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_DIAGNOSTIC_GET_QUERY "d/dq" 232*4a64e381SAndroid Build Coastguard Worker 233*4a64e381SAndroid Build Coastguard Worker /** 234*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_DIAGNOSTIC_GET_ANSWER 235*4a64e381SAndroid Build Coastguard Worker * 236*4a64e381SAndroid Build Coastguard Worker * The URI Path for Network Diagnostic Get Answer. 237*4a64e381SAndroid Build Coastguard Worker */ 238*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_DIAGNOSTIC_GET_ANSWER "d/da" 239*4a64e381SAndroid Build Coastguard Worker 240*4a64e381SAndroid Build Coastguard Worker /** 241*4a64e381SAndroid Build Coastguard Worker * @def OT_URI_PATH_DIAG_RST 242*4a64e381SAndroid Build Coastguard Worker * 243*4a64e381SAndroid Build Coastguard Worker * The URI Path for Network Diagnostic Reset. 244*4a64e381SAndroid Build Coastguard Worker */ 245*4a64e381SAndroid Build Coastguard Worker #define OT_URI_PATH_DIAGNOSTIC_RESET "d/dr" 246*4a64e381SAndroid Build Coastguard Worker 247*4a64e381SAndroid Build Coastguard Worker } // namespace otbr 248*4a64e381SAndroid Build Coastguard Worker 249*4a64e381SAndroid Build Coastguard Worker #endif // OTBR_AGENT_THREAD_URIS_HPP_ 250