1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_IPC_PROXY_H 17 #define OHOS_IPC_PROXY_H 18 19 enum { 20 GET_SYSTEM_ABILITY_TRANSACTION = 1, 21 ADD_SYSTEM_ABILITY_TRANSACTION = 2, 22 }; 23 24 enum { 25 CLIENT_OP_ADD = 1, 26 CLIENT_OP_SUB = 2, 27 CLIENT_OP_PRINT = 3, 28 }; 29 30 enum { 31 SERVER_OP_ADD = 1, 32 SERVER_OP_SUB = 2, 33 SERVER_OP_MULTI = 3, 34 SERVER_OP_ADD_SERVICE = 4, 35 }; 36 37 #define IPC_MAX_SIZE 128 38 39 enum { 40 SERVER_SA_ID1 = 15 41 }; 42 43 #define OP_A 12 44 #define OP_B 17 45 46 #endif // OHOS_IPC_PROXY_H