1 /* 2 * Copyright (C) 2019 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 ART_LIBARTPALETTE_INCLUDE_PALETTE_PALETTE_METHOD_LIST_H_ 18 #define ART_LIBARTPALETTE_INCLUDE_PALETTE_PALETTE_METHOD_LIST_H_ 19 20 #include <stddef.h> 21 #include <stdint.h> 22 23 // Methods in version 1 API 24 #define PALETTE_METHOD_LIST(M) \ 25 M(PaletteGetVersion, /*out*/int32_t* version) \ 26 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \ 27 M(PaletteSchedGetPriority, int32_t tid, /*out*/int32_t* java_priority) \ 28 M(PaletteWriteCrashThreadStacks, const char* stacks, size_t stacks_len) \ 29 M(PaletteTraceEnabled, /*out*/int32_t* enabled) \ 30 M(PaletteTraceBegin, const char* name) \ 31 M(PaletteTraceEnd) \ 32 M(PaletteTraceIntegerValue, const char* name, int32_t value) 33 34 #endif // ART_LIBARTPALETTE_INCLUDE_PALETTE_PALETTE_METHOD_LIST_H_ 35