Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / ot-br-posix / repo / src / dbus / common / constants.hpp
1 /*
2  *    Copyright (c) 2020, The OpenThread Authors.
3  *    All rights reserved.
4  *
5  *    Redistribution and use in source and binary forms, with or without
6  *    modification, are permitted provided that the following conditions are met:
7  *    1. Redistributions of source code must retain the above copyright
8  *       notice, this list of conditions and the following disclaimer.
9  *    2. Redistributions in binary form must reproduce the above copyright
10  *       notice, this list of conditions and the following disclaimer in the
11  *       documentation and/or other materials provided with the distribution.
12  *    3. Neither the name of the copyright holder nor the
13  *       names of its contributors may be used to endorse or promote products
14  *       derived from this software without specific prior written permission.
15  *
16  *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  *    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  *    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  *    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  *    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  *    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  *    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  *    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  *    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  *    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  *    POSSIBILITY OF SUCH DAMAGE.
27  */
28
29 /**
30  * @file
31  * This file includes definitions for d-bus server constants.
32  */
33
34 #ifndef OTBR_DBUS_CONSTANTS_HPP_
35 #define OTBR_DBUS_CONSTANTS_HPP_
36
37 #define DBUS_PROPERTY_GET_METHOD "Get"
38 #define DBUS_PROPERTY_SET_METHOD "Set"
39 #define DBUS_PROPERTY_GET_ALL_METHOD "GetAll"
40 #define DBUS_PROPERTIES_CHANGED_SIGNAL "PropertiesChanged"
41 #define DBUS_INTROSPECT_METHOD "Introspect"
42
43 #define OTBR_DBUS_SERVER_PREFIX "io.openthread.BorderRouter."
44 #define OTBR_DBUS_THREAD_INTERFACE "io.openthread.BorderRouter"
45 #define OTBR_DBUS_OBJECT_PREFIX "/io/openthread/BorderRouter/"
46
47 #define OTBR_DBUS_SCAN_METHOD "Scan"
48 #define OTBR_DBUS_ATTACH_METHOD "Attach"
49 #define OTBR_DBUS_FACTORY_RESET_METHOD "FactoryReset"
50 #define OTBR_DBUS_RESET_METHOD "Reset"
51 #define OTBR_DBUS_ADD_ON_MESH_PREFIX_METHOD "AddOnMeshPrefix"
52 #define OTBR_DBUS_REMOVE_ON_MESH_PREFIX_METHOD "RemoveOnMeshPrefix"
53 #define OTBR_DBUS_PERMIT_UNSECURE_JOIN_METHOD "PermitUnsecureJoin"
54 #define OTBR_DBUS_JOINER_START_METHOD "JoinerStart"
55 #define OTBR_DBUS_JOINER_STOP_METHOD "JoinerStop"
56 #define OTBR_DBUS_ADD_EXTERNAL_ROUTE_METHOD "AddExternalRoute"
57 #define OTBR_DBUS_REMOVE_EXTERNAL_ROUTE_METHOD "RemoveExternalRoute"
58
59 #define OTBR_DBUS_PROPERTY_MESH_LOCAL_PREFIX "MeshLocalPrefix"
60 #define OTBR_DBUS_PROPERTY_LEGACY_ULA_PREFIX "LegacyULAPrefix"
61 #define OTBR_DBUS_PROPERTY_LINK_MODE "LinkMode"
62 #define OTBR_DBUS_PROPERTY_DEVICE_ROLE "DeviceRole"
63 #define OTBR_DBUS_PROPERTY_NETWORK_NAME "NetworkName"
64 #define OTBR_DBUS_PROPERTY_PANID "PanId"
65 #define OTBR_DBUS_PROPERTY_EXTPANID "ExtPanId"
66 #define OTBR_DBUS_PROPERTY_CHANNEL "Channel"
67 #define OTBR_DBUS_PROPERTY_MASTER_KEY "MasterKey"
68 #define OTBR_DBUS_PROPERTY_CCA_FAILURE_RATE "CcaFailureRate"
69 #define OTBR_DBUS_PROPERTY_LINK_COUNTERS "LinkCounters"
70 #define OTBR_DBUS_PROPERTY_IP6_COUNTERS "Ip6Counters"
71 #define OTBR_DBUS_PROPERTY_SUPPORTED_CHANNEL_MASK "LinkSupportedChannelMask"
72 #define OTBR_DBUS_PROPERTY_RLOC16 "Rloc16"
73 #define OTBR_DBUS_PROPERTY_EXTENDED_ADDRESS "ExtendedAddress"
74 #define OTBR_DBUS_PROPERTY_ROUTER_ID "RouterID"
75 #define OTBR_DBUS_PROPERTY_LEADER_DATA "LeaderData"
76 #define OTBR_DBUS_PROPERTY_NETWORK_DATA_PRPOERTY "NetworkData"
77 #define OTBR_DBUS_PROPERTY_STABLE_NETWORK_DATA_PRPOERTY "StableNetworkData"
78 #define OTBR_DBUS_PROPERTY_LOCAL_LEADER_WEIGHT "LocalLeaderWeight"
79 #define OTBR_DBUS_PROPERTY_CHANNEL_MONITOR_SAMPLE_COUNT "ChannelMonitorSampleCount"
80 #define OTBR_DBUS_PROPERTY_CHANNEL_MONITOR_ALL_CHANNEL_QUALITIES "ChannelMonitorAllChannelQualities"
81 #define OTBR_DBUS_PROPERTY_CHILD_TABLE "ChildTable"
82 #define OTBR_DBUS_PROPERTY_NEIGHBOR_TABLE_PROEPRTY "NeighborTable"
83 #define OTBR_DBUS_PROPERTY_PARTITION_ID_PROEPRTY "PartitionID"
84 #define OTBR_DBUS_PROPERTY_INSTANT_RSSI "InstantRssi"
85 #define OTBR_DBUS_PROPERTY_RADIO_TX_POWER "RadioTxPower"
86 #define OTBR_DBUS_PROPERTY_EXTERNAL_ROUTES "ExternalRoutes"
87 #define OTBR_DBUS_PROPERTY_ACTIVE_DATASET_TLVS "ActiveDatasetTlvs"
88 #define OTBR_DBUS_PROPERTY_RADIO_REGION "RadioRegion"
89
90 #define OTBR_ROLE_NAME_DISABLED "disabled"
91 #define OTBR_ROLE_NAME_DETACHED "detached"
92 #define OTBR_ROLE_NAME_CHILD "child"
93 #define OTBR_ROLE_NAME_ROUTER "router"
94 #define OTBR_ROLE_NAME_LEADER "leader"
95
96 #endif // OTBR_DBUS_CONSTANTS_HPP_