Skip to content

feat: add proprietary object functions to device object list#1343

Merged
skarg merged 4 commits into
masterfrom
feature/device-object-list-add-proprietary-objects
May 13, 2026
Merged

feat: add proprietary object functions to device object list#1343
skarg merged 4 commits into
masterfrom
feature/device-object-list-add-proprietary-objects

Conversation

@skarg
Copy link
Copy Markdown
Collaborator

@skarg skarg commented May 12, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for extending the Device object’s object-function table at runtime (aimed at proprietary object types) by switching the server-basic Device object list storage to a key-sorted container and adding tests around the new APIs.

Changes:

  • Replaced the server-basic Object_Table implementation with a Keylist to enable dynamic lookup/indexing and adding of object-function entries.
  • Added new exported APIs for finding/indexing/adding/initializing object-function entries, plus a new unit test for those APIs.
  • Updated create/delete object tests to validate object validity rather than relying on instance/count expectations.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/bacnet/basic/server/bacnet_device.c Migrates object-function table to Keylist and updates object-list iteration to use index-based access.
src/bacnet/basic/object/device.h Exposes new object-function table APIs via the public Device header.
test/bacnet/basic/server/bacnet_device/src/main.c Adds tests for the new object-function APIs and adjusts create/delete assertions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/bacnet/basic/server/bacnet_device.c
Comment thread src/bacnet/basic/server/bacnet_device.c
Comment thread src/bacnet/basic/server/bacnet_device.c Outdated
Comment thread src/bacnet/basic/object/device.h
Comment thread test/bacnet/basic/server/bacnet_device/src/main.c
@skarg skarg merged commit fc72ae8 into master May 13, 2026
36 checks passed
@skarg skarg deleted the feature/device-object-list-add-proprietary-objects branch May 13, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants