# Any idb\_event::renaming\_struc replacement?

**URL:** <https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285>\
**Category:** C++ SDK & IDAPython\
**Created:** [April 10, 2025, 6:52pm UTC](https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285 "2025-04-10T18:52:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bes](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bes](https://community.hex-rays.com/u/bes)\
**Post date:** [April 10, 2025, 6:52pm UTC](https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285/1 "2025-04-10T18:52:19Z")

</div>

Is there some `idb_event::renaming_struc` replacement in IDA9+ C++ SDK? I wanted to do additional renaming when name of type is changed.

---

<div class="post-metadata">

**Author:** ![igor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/igor/32/35_2.png) [@igor](https://community.hex-rays.com/u/igor)\
**Post date:** [April 14, 2025, 10:31am UTC](https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285/2 "2025-04-14T10:31:03Z")

</div>

Please have a look at `local_types_changed`

---

<div class="post-metadata">

**Author:** ![bes](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bes](https://community.hex-rays.com/u/bes)\
**Post date:** [April 14, 2025, 10:50am UTC](https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285/3 "2025-04-14T10:50:53Z")

</div>

There is param `name (const char *)` in `local_types_changed` event, is it a new or old name? If new, have I any chance to find old name?

---

<div class="post-metadata">

**Author:** ![igor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/igor/32/35_2.png) [@igor](https://community.hex-rays.com/u/igor)\
**Post date:** [April 15, 2025, 3:00pm UTC](https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285/4 "2025-04-15T15:00:48Z")

</div>

It seems to be the new name (if available), except for the case of `LTC_DELETED`. Unfortunately, currently there doesn’t seem to be a way to get the old name.

---

<div class="post-metadata">

**Author:** ![bes](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bes](https://community.hex-rays.com/u/bes)\
**Post date:** [April 15, 2025, 3:34pm UTC](https://community.hex-rays.com/t/any-idb-event-renaming-struc-replacement/285/5 "2025-04-15T15:34:33Z")

</div>

Thanks Igor. Hope an extended `local_types_changed` callback will appeared in a future IDA version
