Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions include/osdp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class OSDP_EXPORT ControlPanel : public Common {
}
}

bool setup(const struct osdp_channel *channel, int num_pd, osdp_pd_info_t *info)
bool setup(const struct osdp_channel *channel, int num_pd, const osdp_pd_info_t *info)
{
_ctx = osdp_cp_setup(channel, num_pd, info);
return _ctx != nullptr;
Expand All @@ -101,7 +101,7 @@ class OSDP_EXPORT ControlPanel : public Common {
return false;
}

int add_pd(int num_pd, osdp_pd_info_t *info)
int add_pd(int num_pd, const osdp_pd_info_t *info)
{
return osdp_cp_add_pd(_ctx, num_pd, info);
}
Expand All @@ -112,12 +112,12 @@ class OSDP_EXPORT ControlPanel : public Common {
}

[[deprecated]]
int send_command(int pd, struct osdp_cmd *cmd)
int send_command(int pd, const struct osdp_cmd *cmd)
{
return osdp_cp_submit_command(_ctx, pd, cmd);
}

int submit_command(int pd, struct osdp_cmd *cmd)
int submit_command(int pd, const struct osdp_cmd *cmd)
{
return osdp_cp_submit_command(_ctx, pd, cmd);
}
Expand Down Expand Up @@ -189,7 +189,7 @@ class OSDP_EXPORT PeripheralDevice : public Common {
}
}

bool setup(struct osdp_channel *channel, osdp_pd_info_t *info)
bool setup(struct osdp_channel *channel, const osdp_pd_info_t *info)
{
_ctx = osdp_pd_setup(channel, info);
return _ctx != nullptr;
Expand Down
Loading