diff --git a/include/gbinder_local_object.h b/include/gbinder_local_object.h index 83bafb7..75a56f8 100644 --- a/include/gbinder_local_object.h +++ b/include/gbinder_local_object.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2018-2019 Jolla Ltd. - * Copyright (C) 2018-2019 Slava Monich + * Copyright (C) 2018-2024 Slava Monich * * You may use this file under the terms of BSD license as follows: * @@ -64,7 +64,7 @@ gbinder_local_object_new_reply( void gbinder_local_object_set_stability( GBinderLocalObject* self, - GBINDER_STABILITY_LEVEL stability); /* Since 1.0.40 */ + GBINDER_STABILITY_LEVEL stability); /* Since 1.1.40 */ G_END_DECLS diff --git a/include/gbinder_types.h b/include/gbinder_types.h index 56cd664..48f677a 100644 --- a/include/gbinder_types.h +++ b/include/gbinder_types.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2018-2021 Jolla Ltd. - * Copyright (C) 2018-2021 Slava Monich + * Copyright (C) 2018-2024 Slava Monich * * You may use this file under the terms of BSD license as follows: * @@ -178,7 +178,7 @@ typedef enum gbinder_stability_level { GBINDER_STABILITY_VENDOR = 0x03, GBINDER_STABILITY_SYSTEM = 0x0c, GBINDER_STABILITY_VINTF = 0x3f -} GBINDER_STABILITY_LEVEL; +} GBINDER_STABILITY_LEVEL; /* Since 1.1.40 */ #define GBINDER_FOURCC(c1,c2,c3,c4) \ (((c1) << 24) | ((c2) << 16) | ((c3) << 8) | (c4)) diff --git a/src/gbinder_local_object.c b/src/gbinder_local_object.c index 72b87a1..a3ee2e5 100644 --- a/src/gbinder_local_object.c +++ b/src/gbinder_local_object.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2018-2022 Jolla Ltd. - * Copyright (C) 2018-2023 Slava Monich + * Copyright (C) 2018-2024 Slava Monich * * You may use this file under the terms of BSD license as follows: * @@ -615,7 +615,7 @@ gbinder_local_object_handle_release( void gbinder_local_object_set_stability( GBinderLocalObject* self, - GBINDER_STABILITY_LEVEL stability) + GBINDER_STABILITY_LEVEL stability) /* Since 1.1.40 */ { if (G_LIKELY(self)) { self->stability = stability; diff --git a/unit/unit_local_object/unit_local_object.c b/unit/unit_local_object/unit_local_object.c index 6ea31b8..dd5cef9 100644 --- a/unit/unit_local_object/unit_local_object.c +++ b/unit/unit_local_object/unit_local_object.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2023 Slava Monich + * Copyright (C) 2018-2024 Slava Monich * Copyright (C) 2018-2022 Jolla Ltd. * * You may use this file under the terms of BSD license as follows: @@ -140,6 +140,8 @@ test_null( gbinder_local_object_handle_decrefs(NULL); gbinder_local_object_handle_acquire(NULL, NULL); gbinder_local_object_handle_release(NULL); + gbinder_local_object_handle_release(NULL); + gbinder_local_object_set_stability(NULL, GBINDER_STABILITY_UNDECLARED); } /*==========================================================================*