Skip to content

Commit

Permalink
fix: Missing discovery delete wrapper for secure mode (#521)
Browse files Browse the repository at this point in the history
Signed-off-by: tylerg2471 <[email protected]>
  • Loading branch information
Tylerg2471 authored Nov 19, 2024
1 parent 6bae00d commit b4a60c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/c/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,9 @@ static void startConfigured (devsdk_service_t *svc, const devsdk_timeout *deadli
svc->discovery_wrapper = (auth_wrapper_t){ svc, svc->secretstore, edgex_device_handler_discoveryv2};
edgex_rest_server_register_handler (svc->daemon, EDGEX_DEV_API3_DISCOVERY, DevSDK_Post, &svc->discovery_wrapper, http_auth_wrapper);

svc->discovery_delete_wrapper = (auth_wrapper_t){ svc, svc->secretstore, edgex_device_handler_discovery_delete};
edgex_rest_server_register_handler (svc->daemon, EDGEX_DEV_API3_DISCOVERY_DELETE, DevSDK_Delete, &svc->discovery_delete_wrapper, http_auth_wrapper);

svc->config_wrapper = (auth_wrapper_t){ svc, svc->secretstore, edgex_device_handler_configv2};
edgex_rest_server_register_handler (svc->daemon, EDGEX_DEV_API3_CONFIG, DevSDK_Get, &svc->config_wrapper, http_auth_wrapper);

Expand Down
1 change: 1 addition & 0 deletions src/c/service.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ struct devsdk_service_t
auth_wrapper_t callback_watcher_name_wrapper;
auth_wrapper_t device_name_wrapper;
auth_wrapper_t discovery_wrapper;
auth_wrapper_t discovery_delete_wrapper;
auth_wrapper_t metrics_wrapper;
auth_wrapper_t config_wrapper;
auth_wrapper_t secret_wrapper;
Expand Down

0 comments on commit b4a60c1

Please sign in to comment.