Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added prototypes for implicitly declared functions in osdp_phy.c #120

Closed
wants to merge 1 commit into from
Closed
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: 10 additions & 0 deletions src/osdp_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,16 @@ uint8_t *osdp_phy_packet_get_smb(struct osdp_pd *p, const uint8_t *buf);
int osdp_phy_send_packet(struct osdp_pd *pd, uint8_t *buf,
int len, int max_len);

//ADDED PROTOTYPES for implicitly declared functions
int osdp_channel_receive(struct osdp_pd *pd);
int get_tx_buf_size(struct osdp_pd *pd);
int osdp_phy_send_packet(struct osdp_pd *pd, const uint8_t *buf, int len, int buf_size);
int phy_check_header(struct osdp_pd *pd);
int osdp_rb_pop_buf(struct osdp_rb *rb, const uint8_t *max_len, int min_len); //Note: probably needs more useful variable names
int phy_check_packet(struct osdp_pd *pd, const uint8_t *buf, int len);
Comment on lines +370 to +376
Copy link
Member

Choose a reason for hiding this comment

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

Those are all static methods which should not be exported here.




/* from osdp_common.c */
__weak int64_t osdp_millis_now(void);
int64_t osdp_millis_since(int64_t last);
Expand Down