11/*
22 * CallstackLibrary - Library creating human-readable call stacks.
33 *
4- * Copyright (C) 2022 - 2024 mhahnFr
4+ * Copyright (C) 2022 - 2025 mhahnFr
55 *
66 * This file is part of the CallstackLibrary.
77 *
@@ -185,7 +185,7 @@ struct callstack_frame* callstack_getBinariesCached(struct callstack* self);
185185 * @param self The callstack object.
186186 * @return The number of frames in the given callstack.
187187 */
188- static inline size_t callstack_getFrameCount (struct callstack * self ) {
188+ static inline size_t callstack_getFrameCount (const struct callstack * self ) {
189189 return self -> backtraceSize ;
190190}
191191
@@ -195,7 +195,7 @@ static inline size_t callstack_getFrameCount(struct callstack * self) {
195195 * @param self The callstack object.
196196 * @return The type of the callstack.
197197 */
198- static inline enum callstack_type callstack_getType (struct callstack * self ) {
198+ static inline enum callstack_type callstack_getType (const struct callstack * self ) {
199199 return self -> translationStatus ;
200200}
201201
@@ -205,7 +205,7 @@ static inline enum callstack_type callstack_getType(struct callstack * self) {
205205 * @param self The callstack object.
206206 * @return Whether the callstack is already translated.
207207 */
208- static inline bool callstack_isTranslated (struct callstack * self ) {
208+ static inline bool callstack_isTranslated (const struct callstack * self ) {
209209 return self -> translationStatus != NONE && self -> translationStatus != FAILED ;
210210}
211211
0 commit comments