1 /* 2 * Copyright 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MMC_DAEMON_DBUS_CONSTANTS_H_ 18 #define MMC_DAEMON_DBUS_CONSTANTS_H_ 19 20 namespace mmc { 21 22 // DBus constants. 23 constexpr char kMmcServiceName[] = "org.chromium.mmc.CodecManager"; 24 constexpr char kMmcServiceInterface[] = "org.chromium.mmc.CodecManager"; 25 constexpr char kMmcServicePath[] = "/org/chromium/mmc/CodecManager"; 26 const char kMmcServiceError[] = "org.chromium.mmc.CodecManager.Error"; 27 constexpr char kCodecInitMethod[] = "CodecInit"; 28 constexpr char kCodecCleanUpMethod[] = "CodecCleanUp"; 29 30 // Socket constants. 31 const char kMmcSocketName[] = "/run/mmc/sockets/"; 32 // The maximum number of socket pending connections. 33 // MMC daemon expects at most two clients, decoder and encoder of one codec. 34 constexpr int kClientMaximum = 2; 35 // Socket default maximum buffer size. 36 constexpr int kMaximumBufferSize = 32768; 37 38 // Thread constants. 39 constexpr char kWorkerThreadName[] = "bt_mmc_worker_thread"; 40 constexpr int kThreadCheckTimeout = 1; 41 } // namespace mmc 42 43 #endif // MMC_DAEMON_DBUS_CONSTANTS_H_ 44