Skip to content

Commit 3d9579c

Browse files
committed
close support
1 parent 1cdb1e9 commit 3d9579c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/viam/sdk/resource/resource.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ Name Resource::get_resource_name() const {
2626
return get_resource_name(kResource);
2727
}
2828

29+
// default behavior is to just return
30+
void Resource::close() {}
31+
2932
} // namespace sdk
3033
} // namespace viam

src/viam/sdk/resource/resource.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class Resource {
2525
/// @brief Return the resource's name.
2626
virtual std::string name() const;
2727

28+
/// @brief Closes a resource
29+
virtual void close();
30+
2831
private:
2932
std::string name_;
3033

0 commit comments

Comments
 (0)